﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
}

body {
    background-color: #f5f8f9;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    margin: auto;
    padding: 32px 0px;
}

.school-header {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.header-info {
    display: flex;
    gap: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admission-form-fee-link {
    color: #0a91e8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.admission-form-fee-link:hover {
    text-decoration: underline;
}

.school-info h2 {
    font-size: 18px;
    color: #242a33;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.school-info p {
    opacity: 0.9;
    color: #58677d;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.35px;
}

.download-btn {
    border: none;
    padding: 12px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    border-radius: 8px;
    background: #0a91e8;
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.35px;
}

    .download-btn:hover {
        background: #0070bb;
    }

.header h1 {
    border-radius: 8px;
    background: #fff;
    text-align: center;
    color: #101113;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    margin: 0;
    padding: 16px;
}

.progress-container {
    margin: 50px 16px 24px 16px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-text {
    color: #4a5565;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.35px;
    display: block;
    top: -20px;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 8px;
    width: 100%;
    z-index: 1;
    border-radius: 33554400px;
    background: #e9eff7;
}

.progress {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 8px;
    width: 13%;
    background-color: #3498db;
    z-index: 2;
    transition: width 0.4s ease;
    border-radius: 33554400px;
}

.step {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #777;
    z-index: 3;
    transition: all 0.3s ease;
}

    .step.active {
        background-color: #3498db;
        color: white;
        transform: scale(1.1);
    }

    .step.completed {
        background-color: #2ecc71;
        color: white;
    }

.step-label {
    position: absolute;
    top: 50px;
    font-size: 12px;
    color: #777;
    text-align: center;
    width: 100px;
    left: -30px;
}

.step.active .step-label {
    color: #3498db;
    font-weight: bold;
}

.step.completed .step-label {
    color: #2ecc71;
}

.form-container {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .form-step.active {
        display: block;
    }

        .form-step.active#step-1 ~ .button-container #prev-btn {
            visibility: hidden;
            pointer-events: none;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    margin-bottom: 12px;
    color: #242a33;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.step-complete {
    color: #4a5565;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.35px;
    top: -20px;
    position: relative;
}

.required-note {
    margin-bottom: 28px;
    color: #58677d;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.35px;
}

.optional-note {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 12px 15px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #555;
}

.student-details-wrapper {
    display: flex;
    gap: 56px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-column {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

/* Required-field marker is now shown by ValidationEngine_v1.js's own
   auto-injected .astericSign (see CustomjQueryValidation.css), driven by
   each field's isRequired="true" attribute, so this page no longer needs
   its own star rule. */

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    transition: border 0.3s ease;
    border-radius: 8px;
    border: 1px solid #c1d0e5;
    background: #fff;
}

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

.phone-input {
    display: flex;
}

.country-code {
    flex: 0 0 80px;
    padding: 12px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    text-align: center;
    font-weight: bold;
    color: #555;
}

.phone-number {
    flex: 1;
    border-radius: 0 6px 6px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

    .checkbox-group label {
        margin: 0;
    }

    .checkbox-group input {
        width: auto;
        margin-right: 6px;
    }

.photo-upload {
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9eff7;
}

    .photo-upload:hover {
        border-color: #3498db;
    }

    .photo-upload i {
        font-size: 20px;
        color: #58677d;
        margin-right: 4px;
    }

    .photo-upload p {
        color: #58677d;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 16px;
        letter-spacing: -0.35px;
    }

.image-preview {
    margin-top: 15px;
    text-align: center;
}

#student-photo-upload {
    display: block;
    background: transparent;
}

.form-group.student-photo {
    border-radius: 16px;
    border: 1px solid #c1d0e5;
    background: #fff;
    width: 250px;
    height: 300px;
    padding: 24px;
    margin: 0;
    text-align: center;
}

    .form-group.student-photo .image-preview {
        width: 150px;
        margin: auto;
        margin-top: 10px;
    }

#student-photo-upload span {
    display: block;
    padding: 8px 16px;
    background: #0a91e8;
    color: #fff;
    border-radius: 8px;
    margin: 12px 0px;
}

    #student-photo-upload span:hover {
        background: #0679c5;
    }

.student-details-wrapper {
    width: 100%;
}

.form-group.student-photo .photo-upload i {
    font-size: 40px;
    color: #101113;
    margin-right: 0;
    background: #e9eff7;
    padding: 44px;
    border-radius: 10px;
}

.form-group.student-photo .photo-upload {
    padding: 0;
}

.preview-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: none;
}

.section-title {
    font-size: 16px;
    color: #242a33;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

    .checkbox-item input {
        width: auto;
        margin-right: 10px;
    }

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.document-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px 30px;
    text-align: center;
}

.document-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.document-name {
    font-weight: 600;
    color: #242a33;
    font-size: 16px;
    line-height: 120%;
    margin: 0;
}

.remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

    .remove-btn:hover {
        background-color: #c0392b;
    }

.uploaded-file {
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-size: 14px;
    color: #333;
}

.upload-btn {
    color: #242a33;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    width: 55%;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: auto;
    background: transparent;
    border: 1px solid #c1d0e5;
    margin-top: 12px;
}

    .upload-btn:hover {
        background-color: #2980b9;
        color: #fff;
    }

.upload-note {
    font-size: 14px;
    color: #58677d;
    margin-top: 12px;
    text-align: center;
}
/* Accordion Styles for Step 8 */
.accordion-container {
    margin-top: 20px;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f8f9fa;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    transition: background-color 0.3s;
    position: relative;
}

.edit-btn {
    position: absolute;
    background: transparent;
    border: none;
    right: 50px;
    top: 22px;
    cursor: pointer;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header.active {
    background-color: #e9eff7;
    color: #242a33;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

    .accordion-content.show {
        padding: 20px;
        max-height: 1000px;
    }

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.review-item {
    margin-bottom: 12px;
}

.review-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

.review-value {
    color: #333;
    font-size: 16px;
}

.success-container {
    text-align: center;
    max-width: 640px;
    margin: auto;
}

.success-icon {
    font-size: 80px;
    color: #2ecc71;
    line-height: 0;
    margin-bottom: 12px;
}

.success-title {
    font-size: 20px;
    color: #242a33;
    margin-bottom: 12px;
    line-height: 24px;
}

.success-message {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #58677d;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.45px;
}

.tracking-id {
    padding: 24px;
    margin: 30px auto;
    border-radius: 16px;
    border: 1px solid #c1d0e5;
    background: #f5f7f9;
}

.tracking-label {
    font-size: 14px;
    color: #03304d;
    margin-bottom: 8px;
    font-weight: 600;
}

.tracking-value {
    font-size: 20px;
    color: #0a91e8;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 24px;
}

.next-steps {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
}

.next-steps-title {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
}

.next-steps-list {
    list-style-type: none;
}

    .next-steps-list li {
        margin-bottom: 12px;
        padding-left: 25px;
        position: relative;
    }

        .next-steps-list li:before {
            content: "•";
            color: #3498db;
            font-size: 20px;
            position: absolute;
            left: 0;
        }

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .action-btn.pdf {
        background-color: #0a91e8;
        color: white;
    }

        .action-btn.pdf:hover {
            background-color: #097bc7;
        }

    .action-btn.print {
        background-color: transparent;
        color: #242a33;
        border: 1px solid #c1d0e5;
    }

        .action-btn.print:hover {
            background-color: #0a91e8;
            color: white;
        }

.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #555;
}

    .contact-info a {
        color: #3498db;
        text-decoration: none;
    }

        .contact-info a:hover {
            text-decoration: underline;
        }

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    color: #fff;
    background: #0a91e8;
}

    .btn-prev:hover {
        background-color: #0070bb;
    }

.btn-next,
.btn-submit {
    background-color: #3498db;
    color: white;
}

    .btn-next:hover,
    .btn-submit:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    }

.btn-submit {
    background-color: #2ecc71;
}

    .btn-submit:hover {
        background-color: #27ae60;
        box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
    }

.btn-skip {
    background-color: #95a5a6;
    color: white;
}

    .btn-skip:hover {
        background-color: #7f8c8d;
    }

.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.address-same {
    margin-bottom: 20px;
}

.exam-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.exam-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

    .exam-title input {
        width: auto;
        margin-right: 10px;
    }

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    #printable-form,
    #printable-form * {
        visibility: visible;
    }

    #printable-form {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }

    .no-print {
        display: none !important;
    }
}

/* Printable Form Styles */
.printable-form {
    display: none;
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: white;
}

.print-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #1a5f7a;
    padding-bottom: 20px;
}

    .print-header h1 {
        color: #1a5f7a;
        font-size: 28px;
        margin-bottom: 10px;
    }

    .print-header h2 {
        color: #2c3e50;
        font-size: 20px;
        margin-bottom: 5px;
    }

.print-section {
    margin-bottom: 25px;
    page-break-inside: avoid;
}

.print-section-title {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c3e50;
}

.print-row {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.print-label {
    font-weight: bold;
    width: 200px;
    color: #555;
}

.print-value {
    flex: 1;
    color: #333;
}

@media (max-width: 768px) {
    .form-column {
        min-width: 100%;
    }

    .step-label {
        display: none;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .school-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .checkbox-grid,
    .documents-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .print-row {
        flex-direction: column;
    }

    .print-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .student-details-wrapper {
        flex-wrap: wrap;
        gap: 24px;
    }

    .form-group.student-photo {
        width: 100%;
    }
}
