/* ==========================================================================
   ADMISSION PORTAL - COMPLETE STYLESHEET
   Lakshya Private Tuitions
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --cobalt-blue: #0047AB;
    --dark-blue: #0B2C8A;
    --electric-blue: #0066FF;
    --cobalt-light: #EEF4FF;
    --accent-red: #DC3545;
    --accent-green: #28A745;
    --pure-white: #FFFFFF;
    --off-white: #F8F9FC;

    /* Text */
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --text-light: #94A3B8;

    /* Glass / Border */
    --glass-border: rgba(0, 71, 171, 0.12);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 43, 107, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 43, 107, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 43, 107, 0.14);
    --shadow-xl: 0 20px 60px rgba(0, 43, 107, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-med: all 0.35s ease;
}

/* --------------------------------------------------------------------------
   BASE PAGE STYLES
   -------------------------------------------------------------------------- */
.admission-portal-page {
    background: linear-gradient(135deg, #EEF4FF 0%, #F0F4FF 40%, #E8EEFF 100%);
    min-height: 100vh;
    font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   ADMISSION MAIN CONTAINER
   -------------------------------------------------------------------------- */
.admission-main-container {
    padding: 40px 0 80px 0;
    position: relative;
    overflow: hidden;
}

/* Floating background subject icons */
.portal-header {
    background: #0047AB;
}

.portal-branding {
    display: flex;
    align-items: center;
    gap: 40px;

    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.lpt-badge {
    background: white;
    border-radius: 240px;
    padding: 18px 24px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .20),
        0 8px 20px rgba(0, 71, 171, .35);
}

.lpt-badge-img {
    height: 2000px;
    /* bigger */
    width: 2000;
}

.powered-by-text {
    color: rgba(255, 255, 255, .85);
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.vedantu-logo-img {
    height: 200px;
    /* bigger */
    width: auto;
    object-fit: contain;

    /* remove if image already white */
    filter:
        brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
   LAYOUT GRID
   -------------------------------------------------------------------------- */
.admission-form-container {
    position: relative;
    z-index: 1;
}

.admission-layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   PROGRESS BAR (TOP)
   -------------------------------------------------------------------------- */
.progress-bar-wrapper {
    background: var(--pure-white);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-title {
    font-family: var(--font-inter);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cobalt-blue);
}

.progress-percentage-label {
    font-family: var(--font-inter);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pure-white);
    background: var(--electric-blue);
    padding: 3px 10px;
    border-radius: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 71, 171, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cobalt-blue), var(--electric-blue));
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   LEFT SIDEBAR STEPPER
   -------------------------------------------------------------------------- */
.admission-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-sticky-card {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--cobalt-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.step-item:hover {
    background: var(--cobalt-light);
}

.step-item.active {
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
}

.step-item.completed {
    background: rgba(40, 167, 69, 0.08);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 71, 171, 0.1);
    color: var(--cobalt-blue);
    font-family: var(--font-inter);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.step-item.active .step-number {
    background: rgba(255, 255, 255, 0.25);
    color: var(--pure-white);
}

.step-item.completed .step-number {
    background: var(--accent-green);
    color: var(--pure-white);
}

.step-label {
    font-family: var(--font-inter);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.step-item.active .step-label {
    color: var(--pure-white);
}

.step-item.completed .step-label {
    color: var(--accent-green);
}

/* --------------------------------------------------------------------------
   RIGHT CONTENT AREA CARD
   -------------------------------------------------------------------------- */
.admission-form-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
    padding: 48px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   FORM
   -------------------------------------------------------------------------- */
.admission-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

/* --------------------------------------------------------------------------
   STEP PANELS
   -------------------------------------------------------------------------- */
.form-step-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-step-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   PANEL HEADER
   -------------------------------------------------------------------------- */
.panel-header {
    margin-bottom: 36px;
    border-bottom: 1px dashed rgba(0, 71, 171, 0.15);
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.panel-header-icon {
    width: 48px;
    height: 48px;
    background: var(--cobalt-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--cobalt-blue);
    flex-shrink: 0;
}

.panel-header-text {
    flex: 1;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cobalt-blue);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.panel-header p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --------------------------------------------------------------------------
   FORM FIELDS
   -------------------------------------------------------------------------- */
.form-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}

.thirds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.mt-30 {
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-inter);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.required-star {
    color: var(--accent-red);
    margin-left: 3px;
}

.form-group.required label::after {
    content: ' *';
    color: var(--accent-red);
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-inter);
    font-size: 0.92rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 71, 171, 0.15);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--electric-blue);
    background: var(--pure-white);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input.invalid,
.form-group.invalid .form-input {
    border-color: var(--accent-red);
    background: rgba(220, 53, 69, 0.02);
}

.error-msg {
    font-family: var(--font-inter);
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 500;
    display: none;
}

.form-group.invalid .error-msg {
    display: block;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-input {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.field-sub-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: -2px;
    margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   GENDER RADIO CARDS
   -------------------------------------------------------------------------- */
.radio-cards-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-card-label {
    flex: 1;
    min-width: 90px;
    cursor: pointer;
    position: relative;
}

.radio-card-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1.5px solid rgba(0, 71, 171, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-inter);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.radio-card-label input[type="radio"]:checked+.radio-card-inner {
    border-color: var(--electric-blue);
    background: rgba(0, 102, 255, 0.06);
    color: var(--electric-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
}

.radio-card-label:hover .radio-card-inner {
    border-color: rgba(0, 71, 171, 0.3);
}

/* --------------------------------------------------------------------------
   SECTION 3: TOGGLE SAME AS PERMANENT
   -------------------------------------------------------------------------- */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--cobalt-light);
    border-radius: var(--radius-sm);
}

.toggle-track {
    position: relative;
    width: 46px;
    height: 26px;
    background: rgba(0, 71, 171, 0.15);
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
    margin: 0;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--pure-white);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-checkbox:checked+.toggle-track {
    background-color: var(--electric-blue);
}

.toggle-checkbox:checked+.toggle-track .toggle-thumb {
    transform: translateX(24px);
}

.toggle-label {
    font-family: var(--font-inter);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   SECTION 4: COURSE CHECKBOX CARDS
   -------------------------------------------------------------------------- */
.field-section-label {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    display: block;
    margin-bottom: 12px;
}

.required-indicator {
    color: var(--accent-red);
}

.courses-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.course-checkbox-card {
    position: relative;
    cursor: pointer;
    display: block;
    user-select: none;
}

.course-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.course-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(0, 71, 171, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.course-cb-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 71, 171, 0.05);
    border-radius: var(--radius-sm);
    color: var(--cobalt-blue);
    font-size: 1.4rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.course-cb-text {
    display: flex;
    flex-direction: column;
}

.course-cb-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: -0.3px;
}

.course-cb-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 1px;
}

.course-checkbox-card:hover .course-card-content {
    border-color: rgba(0, 71, 171, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.course-checkbox-card input[type="checkbox"]:checked+.course-card-content {
    border-color: var(--electric-blue);
    background: rgba(0, 102, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.course-checkbox-card input[type="checkbox"]:checked+.course-card-content .course-cb-icon-box {
    background: var(--electric-blue);
    color: var(--pure-white);
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

.required-checkbox-group.invalid .courses-checkbox-grid {
    border: 1px dashed var(--accent-red);
    border-radius: var(--radius-md);
    padding: 8px;
}

.required-checkbox-group .inline-error {
    margin-bottom: 8px;
    margin-top: -6px;
}

/* --------------------------------------------------------------------------
   SECTION 6: DRAG AND DROP DOCUMENT UPLOAD
   -------------------------------------------------------------------------- */
.upload-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upload-box-group {
    display: flex;
    flex-direction: column;
}

.upload-guideline {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: -6px;
    margin-bottom: 12px;
}

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    border: 2px dashed rgba(0, 71, 171, 0.25);
    border-radius: var(--radius-md);
    background: rgba(248, 249, 250, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.upload-icon {
    font-size: 2.2rem;
    color: var(--cobalt-blue);
    transition: transform 0.3s;
}

.upload-zone-text {
    font-family: var(--font-inter);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.upload-zone-text strong {
    color: var(--electric-blue);
    font-weight: 700;
}

.custom-file-upload:hover {
    background: rgba(0, 71, 171, 0.03);
    border-color: var(--electric-blue);
}

.custom-file-upload:hover .upload-icon {
    transform: translateY(-4px);
}

.custom-file-upload.drag-active {
    background: rgba(0, 102, 255, 0.08);
    border-color: var(--electric-blue);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.1);
}

.file-preview-card {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #e8f5e9;
    border: 1.5px solid #a5d6a7;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    animation: slideInUp 0.3s ease;
}

.file-preview-details {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.file-icon {
    font-size: 1.6rem;
    color: #2e7d32;
    flex-shrink: 0;
}

.file-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.file-name {
    font-family: var(--font-inter);
    font-size: 0.9rem;
    font-weight: 600;
    color: #1b5e20;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: #4caf50;
}

.remove-file-btn {
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
}

.remove-file-btn:hover {
    transform: scale(1.15);
}

.upload-box-group.invalid .custom-file-upload {
    border-color: var(--accent-red);
    background-color: rgba(220, 53, 69, 0.02);
}

/* --------------------------------------------------------------------------
   SECTION 7: SCROLLABLE TERMS BOX
   -------------------------------------------------------------------------- */
.terms-scroll-box {
    width: 100%;
    height: 220px;
    overflow-y: scroll;
    border: 1.5px solid rgba(0, 71, 171, 0.15);
    background: rgba(248, 249, 250, 0.7);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-dark);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.03);
}

.terms-scroll-box::-webkit-scrollbar {
    width: 8px;
}

.terms-scroll-box::-webkit-scrollbar-track {
    background: #e2e8f5;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.terms-scroll-box::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 10px;
}

.terms-scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

.terms-scroll-box h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cobalt-blue);
    margin-bottom: 12px;
}

.terms-intro {
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 16px;
    background: rgba(0, 71, 171, 0.04);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.terms-list-styled {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 16px;
}

.terms-list-styled li {
    padding-bottom: 4px;
}

.terms-list-styled strong {
    color: var(--dark-blue);
}

.scroll-helper-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--cobalt-blue);
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 8px;
}

.scroll-helper-info.reached-bottom {
    color: #2e7d32;
}

.scroll-helper-info ion-icon {
    font-size: 1.1rem;
    animation: bounceUpDown 1.5s infinite;
}

.scroll-helper-info.reached-bottom ion-icon {
    animation: none;
}

@keyframes bounceUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* Consent Checkboxes */
.consent-checkboxes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px dashed rgba(0, 71, 171, 0.15);
    padding-top: 20px;
}

.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-inter);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    user-select: none;
    position: relative;
    padding: 4px 0;
}

.consent-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 71, 171, 0.2);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
    margin-top: 1px;
}

.checkbox-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--pure-white);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.consent-checkbox-input:checked+.checkbox-checkmark {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
}

.consent-checkbox-input:checked+.checkbox-checkmark::after {
    display: block;
}

.custom-checkbox-container:hover .checkbox-checkmark {
    border-color: var(--electric-blue);
}

.required-asterisk {
    color: var(--accent-red);
}

.consent-checkboxes-wrapper .inline-error {
    margin-top: -8px;
    margin-bottom: 4px;
    margin-left: 32px;
}

/* --------------------------------------------------------------------------
   SECTION 8: SUBMISSION SUMMARY
   -------------------------------------------------------------------------- */
.submission-summary-card {
    background: rgba(0, 71, 171, 0.03);
    border: 1.5px solid rgba(0, 71, 171, 0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.submission-summary-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cobalt-blue);
    margin-bottom: 14px;
}

.summary-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    font-family: var(--font-inter);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 71, 171, 0.05);
    padding-bottom: 6px;
}

.summary-label {
    font-weight: 600;
    color: var(--dark-blue);
    width: 160px;
    flex-shrink: 0;
}

.summary-value {
    color: var(--text-dark);
}

/* Signature */
.signature-input {
    font-size: 1.15rem;
    font-weight: 600;
}

.signature-style-preview {
    margin-top: 12px;
    padding: 16px 24px;
    border: 1.5px dashed rgba(0, 71, 171, 0.15);
    background: #fafbff;
    border-radius: var(--radius-sm);
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.8rem;
    color: #0d2374;
    text-align: center;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

.signature-style-preview.signed {
    font-family: 'Caveat', cursive;
    background: #f1f5ff;
    border-color: var(--electric-blue);
}

/* --------------------------------------------------------------------------
   FORM ACTION BUTTONS
   -------------------------------------------------------------------------- */
.form-action-buttons-box {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.form-action-buttons-box .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--electric-blue);
    color: var(--electric-blue);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Step Navigation */
.form-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 36px;
    border-top: 1px solid rgba(0, 71, 171, 0.08);
}

.btn-step-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
}

#prevStepBtn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

#submitAdmissionBtn:disabled {
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Inline Error */
.inline-error {
    color: var(--accent-red);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   LOADING SPINNER OVERLAY
   -------------------------------------------------------------------------- */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 43, 107, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-card {
    background: var(--pure-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 450px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: scaleUpIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spinner-ring {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(0, 71, 171, 0.1);
    border-top: 5px solid var(--electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

.spinner-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cobalt-blue);
}

.spinner-card p {
    font-size: 0.92rem;
    color: var(--text-gray);
}

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

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

/* --------------------------------------------------------------------------
   SUCCESS MODAL
   -------------------------------------------------------------------------- */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 43, 107, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.success-modal-card {
    background: var(--pure-white);
    padding: 50px 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 550px;
    width: 90%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleUpIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-box {
    font-size: 5rem;
    color: #2e7d32;
    line-height: 1;
    margin-bottom: 16px;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--cobalt-blue);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.success-lead {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 24px;
}

.receipt-box {
    background: #f1f8e9;
    border: 1.5px solid #c5e1a5;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-inter);
    font-size: 0.92rem;
}

.receipt-row span {
    font-weight: 500;
    color: #33691e;
}

.receipt-row strong {
    color: #1b5e20;
    font-weight: 700;
}

.success-next-steps {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.success-modal-actions {
    width: 100%;
}

.success-modal-actions .btn {
    width: 100%;
}

/* Confetti */
.confetti-holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes scaleUpIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(15px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .admission-layout-grid {
        grid-template-columns: 200px 1fr;
        gap: 24px;
    }

    .admission-form-card {
        padding: 32px;
    }

    .courses-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admission-main-container {
        padding: 20px 0 60px 0;
    }

    .admission-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .admission-sidebar {
        display: none;
    }

    .admission-form-card {
        padding: 24px 16px;
        min-height: auto;
        border-radius: var(--radius-lg);
    }

    .form-fields-grid,
    .thirds-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .progress-bar-wrapper {
        position: sticky;
        top: 100px;
        z-index: 999;
        margin-bottom: 20px;
        border-radius: var(--radius-md);
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0, 71, 171, 0.08);
        border: 1px solid rgba(0, 71, 171, 0.08);
        border-top: 3px solid var(--electric-blue);
    }

    .progress-info {
        margin-bottom: 6px;
    }

    .progress-title {
        font-size: 0.92rem;
    }

    .progress-percentage-label {
        font-size: 0.78rem;
    }

    .panel-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .panel-header h2 {
        font-size: 1.3rem;
    }

    .form-input {
        padding: 12px 16px;
        font-size: 0.9rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .courses-checkbox-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .course-card-content {
        padding: 12px 14px;
    }

    .custom-file-upload {
        height: 100px;
    }

    .upload-zone-text {
        font-size: 0.82rem;
    }

    .form-step-navigation {
        flex-direction: row !important;
        gap: 12px;
        padding-top: 24px;
    }

    .btn-step-nav {
        flex: 1;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .form-action-buttons-box {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .form-action-buttons-box .btn {
        width: 100%;
    }

    .signature-style-preview {
        font-size: 1.4rem;
        min-height: 55px;
        padding: 12px 16px;
    }

    .terms-scroll-box {
        padding: 16px;
        height: 180px;
        font-size: 0.82rem;
    }

    .consent-checkboxes-wrapper {
        gap: 10px;
        padding-top: 16px;
    }

    .custom-checkbox-container {
        font-size: 0.82rem;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .admission-form-card {
        padding: 20px 12px;
        border-radius: var(--radius-md);
    }

    .progress-bar-wrapper {
        top: 100px;
        padding: 10px 12px;
        margin-bottom: 16px;
    }
}