/* GIA Enrolment Portal Styles */

/* Reset and base styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.enrolment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    overflow: visible; /* Allow content to be visible */
    background: #f5f5f5;
    width: 100%;
    box-sizing: border-box;
}

.enrolment-container .language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.enrolment-container .language-switcher .language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.enrolment-container .language-switcher .language-current:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.enrolment-container .language-switcher .language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.enrolment-container .language-switcher .language-dropdown.show {
    display: block;
}

.enrolment-container .language-switcher .language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.enrolment-container .language-switcher .language-option:last-child {
    border-bottom: none;
}

.enrolment-container .language-switcher .language-option:hover {
    background-color: #f8f9fa;
}

.enrolment-container .language-switcher .language-option.active {
    background-color: #667eea;
    color: white;
}

.enrolment-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.enrolment-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.enrolment-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    margin-right: 15px;
}

.category-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.category-code {
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 5px;
}

.category-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.associated-categories {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.associated-categories strong {
    color: #333;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: block;
}

.category-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    margin: 2px 4px 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.info-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-text {
    color: #666;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

/* Banner Image Styles */
.application-banner {
    width: 100%;
    text-align: center;
    margin: 0 0 30px 0;
    background: #f8f9fa;
    padding: 20px 0;
    border-radius: 8px;
    display: block !important;
    min-height: 100px;
    visibility: visible !important;
    opacity: 1 !important;
}

.application-banner .banner-image {
    max-width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    z-index: auto !important;
}

/* Application Form Styles */
.application-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    background: #f5f5f5;
    min-height: 100vh;
    padding-top: 20px;
}

.application-header .language-switcher {
    position: absolute;
    bottom: 15px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.application-header .language-switcher .language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.application-header .language-switcher .language-current:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.application-header .language-switcher .language-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    z-index: 1000;
    margin-bottom: 5px;
}

.application-header .language-switcher .language-dropdown.show {
    display: block;
}

.application-header .language-switcher .language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.application-header .language-switcher .language-option:last-child {
    border-bottom: none;
}

.application-header .language-switcher .language-option:hover {
    background-color: #f8f9fa;
}

.application-header .language-switcher .language-option.active {
    background-color: #667eea;
    color: white;
}

.application-header {
    text-align: center;
    margin: 40px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    position: relative;
    z-index: 5;
    padding-bottom: 50px;
}

.application-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.application-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    opacity: 0.9;
}

.application-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible; /* Allow content to be visible */
    position: relative; /* Ensure proper positioning context */
    display: block; /* Ensure form is block-level */
    min-height: 100px; /* Ensure form has minimum height */
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.section-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.required {
    color: #e74c3c;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.checkbox-group input[type="checkbox"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    line-height: 1.5;
    color: #495057;
    font-weight: 500;
}

/* Special Awards Styling */
.special-awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.special-awards-grid .form-group {
    margin-bottom: 0;
}

.special-awards-grid .form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    font-weight: 500;
    color: #495057;
}

.special-awards-grid .form-group label:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.special-awards-grid .form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #667eea;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.special-awards-grid .form-group input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.special-awards-grid .form-group input[type="checkbox"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Participation Fee Section */
.fee-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.fee-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.fee-waived-icon {
    color: #28a745;
    font-size: 1.2em;
}

.fee-status-text {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1em;
}

.fee-description {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.fee-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.fee-note p {
    margin: 0 0 10px 0;
    color: #856404;
}

.fee-note p:last-child {
    margin-bottom: 0;
}

/* Fee Required Icon */
.fee-required-icon {
    color: #dc3545;
    font-size: 1.2em;
}

/* Fee Breakdown */
.fee-breakdown {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.fee-breakdown h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.fee-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.fee-label {
    font-weight: 500;
    color: #495057;
}

.fee-amount {
    font-weight: 600;
    color: #dc3545;
    font-size: 1.1em;
}

/* Category Pricing */
.category-pricing {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.category-pricing h5 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1em;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

/* RSA Only Information Section */
.rsa-info-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.rsa-criteria,
.rsa-benefits,
.rsa-requirements {
    margin-bottom: 25px;
}

.rsa-criteria:last-child,
.rsa-benefits:last-child,
.rsa-requirements:last-child {
    margin-bottom: 0;
}

.rsa-criteria h3,
.rsa-benefits h3,
.rsa-requirements h3 {
    color: #667eea;
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #667eea;
}

.rsa-criteria ul,
.rsa-benefits ul,
.rsa-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.rsa-criteria li,
.rsa-benefits li,
.rsa-requirements li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.4;
}

.rsa-requirements p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* RSA Form Sections - Now using standard enhanced-section styles */

.form-help {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

/* Founder Entry Styles */
.founder-entry {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.founder-entry h4 {
    color: #495057;
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 600;
}

.btn-remove-founder {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-remove-founder:hover {
    background: #c82333;
}

.btn-add-founder {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-add-founder:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-add-founder:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Investor Entry Styles */
.investor-entry {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.investor-entry h4 {
    color: #495057;
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.checkbox-group:hover {
    border-color: #667eea;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    flex: 1;
}

/* Enhanced Section Styles */
.enhanced-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    display: block;
    float: none;
    clear: both;
}

.enhanced-section h2 {
    color: #667eea;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enhanced-section h2 i {
    color: #667eea;
    font-size: 1.1em;
}

.section-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-top: 15px;
}

.section-content .form-group {
    margin-bottom: 20px;
}

.section-content .form-group:last-child {
    margin-bottom: 0;
}

.section-content .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.section-content .form-row:last-child {
    margin-bottom: 0;
}

.section-content .form-row .form-group {
    margin-bottom: 0;
}

/* Enhanced form inputs */
.section-content input[type="text"],
.section-content input[type="email"],
.section-content input[type="tel"],
.section-content input[type="url"],
.section-content select,
.section-content textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.95em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-content input[type="text"]:focus,
.section-content input[type="email"]:focus,
.section-content input[type="tel"]:focus,
.section-content input[type="url"]:focus,
.section-content select:focus,
.section-content textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.section-content label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

/* Enhanced checkbox groups in sections */
.section-content .checkbox-group {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-content .checkbox-group:hover {
    border-color: #667eea;
    background-color: #f0f2ff;
}

.section-content .checkbox-group:last-child {
    margin-bottom: 0;
}

/* Override any conflicting styles from other CSS files */
.enrolment-container .application-form .form-section,
.enrolment-container .application-form .enhanced-section,
.enrolment-container .application-form .form-actions {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Ensure proper form container styling */
.enrolment-container .application-form {
    position: relative !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.enrolment-container .application-form .form-section,
.enrolment-container .application-form .enhanced-section {
    margin: 10px 0 !important;
    padding: 15px !important;
    position: relative !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.form-actions .btn-cancel,
.form-actions .btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.form-actions .btn-cancel {
    background: #6c757d;
    color: white;
}

.form-actions .btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.form-actions .btn-submit {
    background: #667eea;
    color: white;
}

.form-actions .btn-submit:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Organization Type Note Styling */
.organization-type-note {
    font-size: 0.85rem !important;
    color: #666;
    line-height: 1.4;
    margin-top: 8px;
}

.note-table {
    border-collapse: collapse;
    width: 100%;
}

.note-table td {
    vertical-align: top;
    padding: 0;
    border: none;
}

.note-prefix {
    width: 2.5em;
    font-weight: bold;
    color: #333;
}

.note-content {
    padding-left: 0.5em;
    word-wrap: break-word;
}

/* Organization type note styling */
.form-note {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.organization-type-note {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
    font-style: italic;
}

/* Success Page Styles */
.success-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 30px;
}

.success-content h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 600;
}

.success-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: #495057;
    font-weight: 600;
    min-width: 150px;
}

.detail-item span {
    color: #333;
    font-weight: 500;
}

.participant-code {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.success-message {
    margin: 30px 0;
    text-align: left;
}

.success-message p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.important-notes {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.important-notes h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.important-notes ul {
    color: #856404;
    margin: 0;
    padding-left: 20px;
}

.important-notes li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.success-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.success-actions .btn-primary {
    background: #667eea;
    color: white;
}

.success-actions .btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.success-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.success-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Total Fee Section */
.total-fee-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #e8f4fd;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.total-fee-section h4 {
    margin: 0 0 15px 0;
    color: #007bff;
    font-size: 1.2em;
    font-weight: 600;
}

.total-fee-display {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.fee-calculation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.fee-calculation:last-child {
    border-bottom: none;
}

.fee-calculation.total-line {
    border-top: 2px solid #007bff;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1em;
}

.fee-calculation .fee-label {
    font-weight: 500;
    color: #495057;
}

.fee-calculation .fee-amount {
    font-weight: 600;
    color: #007bff;
}

.fee-calculation.total-line .fee-label,
.fee-calculation.total-line .fee-amount {
    color: #007bff;
    font-size: 1.1em;
}
