* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.form-header h1 {
    position: relative;
}

.form-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.student-info {
    margin-top: 15px;
    font-size: 0.95em;
    opacity: 0.9;
    margin-left: 0px !important;
}

.student-info p {
    margin: 5px 0;
}

.form-section {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-section h2 {
    color: #333;
    margin: 0;
    padding: 20px 25px;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
    border: 1px solid #b0aeae;
    background: #ffffff;
    border-radius: 10px;
}

.form-section h2:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

/* Updated accordion icon using Font Awesome */
.form-section h2::after {
    content: "\f078";
    /* Font Awesome chevron-down icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9em;
    color: #667eea;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 10px;
    float: right;
}

.form-section.collapsed h2::after {
    transform: rotate(-180deg);
}

.form-section h2:active {
    transform: scale(0.99);
}

.section-content {
    padding: 25px;
    max-height: 10000px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.3s ease-in-out;
    background: #fff;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid #e3e2e2;
}

.form-section.collapsed .section-content {
    max-height: 0;
    padding: 0 25px;
    opacity: 0;
}

.education-subsection {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.education-subsection h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Form Subsections (for grouped sections like Background Information) */
.form-subsection {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #a0aec0;
}

.form-subsection:first-of-type {
    margin-top: 0;
}

.form-subsection h3 {
    color: #667eea;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1.15em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.label-text {
    flex: 1;
}

.verification-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}

.verification-status.done {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.verification-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.verification-status.conflict {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verification-status::before {
    content: '●';
    margin-right: 5px;
    font-size: 1.2em;
}

.verification-reason {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #856404;
}

.verification-reason strong {
    display: block;
    margin-bottom: 5px;
    color: #721c24;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.conditional-section {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 2px dashed #667eea;
}

.multi-entry-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    position: relative;
}

.multi-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.multi-entry-header h4 {
    color: #667eea;
    font-size: 1.1em;
}

.btn-remove {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #e84118;
    transform: translateY(-2px);
}

.btn-add {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.btn-add:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn-submit {
    background: linear-gradient(90deg, #1150B2 0%, #5694F7 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.btn-submit:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
    margin-bottom: 10px;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader p {
    color: white;
    margin-top: 20px;
    font-size: 1.2em;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .container {
        border-radius: 0;
    }

    form {
        padding: 20px;
    }

    .form-section {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5em;
    }
}

/* Score fields for language tests */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.score-field {
    display: flex;
    flex-direction: column;
}

.score-field label {
    font-size: 0.85em;
    margin-bottom: 5px;
}

.score-field input {
    padding: 8px;
}

/* University course item styling */
.university-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

/* File Upload Styling */
.file-upload-wrapper {
    margin-top: 15px;
    margin-bottom: 20px;
}

.file-upload-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
}

.file-upload-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload-input {
    display: none;
}

.file-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-upload-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.file-upload-button::before {
    content: '\f0c6';
    /* Font Awesome paperclip icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.1em;
}

.file-name-display {
    flex: 1;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
    font-size: 0.9em;
    color: #666;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.file-name-display.has-file {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.file-name-display::before {
    content: '\f15b';
    /* Font Awesome file icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 8px;
}

.file-name-display.empty::before {
    content: '\f07b';
    /* Font Awesome folder icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}

.file-remove-button {
    padding: 8px 12px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.file-remove-button:hover {
    background: #e84118;
}

.file-upload-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}