/* =========================================================================
   KALPAVRIKSHALAYA TWO-PAGE ADMISSION FORM - SIMPLE & ELEGANT DESIGN
   ========================================================================= */

/* Top Right Daisy in Hero */
.reg-hero-daisy {
    position: absolute;
    right: 5%;
    top: 25%;
    pointer-events: none;
    opacity: 0.9;
}

/* Wave Divider */
.reg-wave-divider {
    background: transparent;
    margin-top: -1px;
    margin-bottom: 0;
}
.reg-wave-divider svg {
    height: 38px;
    display: block;
    width: 100%;
}

/* Main Form Section */
.reg-main-section {
    padding: 50px 0 90px;
    background: #F8FAFC;
}

.reg-container {
    max-width: 980px;
    margin: 0 auto;
}

/* =========================================================================
   TWO-PAGE STEPPER BAR
   ========================================================================= */
.admission-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    position: relative;
}

.stepper-step {
    flex: 1;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(12, 54, 112, 0.04);
}

.stepper-step:hover {
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.stepper-step.active {
    border-color: var(--childit-navy, #0c3670);
    background: #F0F7FF;
    box-shadow: 0 6px 18px rgba(12, 54, 112, 0.08);
}

.stepper-step.completed {
    border-color: #10B981;
    background: #F0FDF4;
}

.stepper-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #475569;
    font-family: var(--font-heading, sans-serif);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.stepper-step.active .stepper-num {
    background: var(--childit-navy, #0c3670);
    color: #FFFFFF;
}

.stepper-step.completed .stepper-num {
    background: #10B981;
    color: #FFFFFF;
}

.stepper-info {
    display: flex;
    flex-direction: column;
}

.stepper-page-tag {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748B;
}

.stepper-step.active .stepper-page-tag {
    color: var(--childit-navy, #0c3670);
}

.stepper-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.3;
}

.stepper-arrow {
    font-size: 1.4rem;
    color: #94A3B8;
}

/* =========================================================================
   FORM PAGES (PAGE 1 & PAGE 2 TRANSITIONS)
   ========================================================================= */
.form-page {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: pageFadeIn 0.35s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   OFFICIAL PHYSICAL ADMISSION FORM BANNER CARD
   ========================================================================= */
.form-official-header {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px 32px;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(12, 54, 112, 0.05);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.form-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.form-brand-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-school-name {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--childit-navy, #0c3670);
    line-height: 1.2;
}

.form-school-tagline {
    font-size: 0.92rem;
    color: #059669;
    font-weight: 700;
}

.form-school-sub {
    font-size: 0.84rem;
    color: #64748B;
    margin-top: 2px;
}

.form-doc-title-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FEF3C7;
    color: #92400E;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.88rem;
    margin-top: 10px;
    align-self: flex-start;
}

.form-child-photo-slot {
    text-align: center;
}

.photo-upload-frame {
    width: 125px;
    height: 150px;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.photo-upload-frame:hover {
    border-color: var(--childit-navy, #0c3670);
    background: #F0F7FF;
}

.photo-upload-frame input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
    width: 100%;
    height: 100%;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    text-align: center;
}

.photo-placeholder-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.photo-placeholder-text {
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 700;
    line-height: 1.2;
}

.photo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    position: absolute;
    inset: 0;
}

.form-instructions-box {
    margin-top: 18px;
    padding: 14px 18px;
    background: #FFFDF5;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    font-size: 0.84rem;
    color: #78350F;
    line-height: 1.5;
}

.form-instructions-title {
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-instructions-list {
    margin: 0;
    padding-left: 20px;
}

/* =========================================================================
   SECTION CARDS (CLEAN & ELEGANT)
   ========================================================================= */
.reg-section-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 26px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(12, 54, 112, 0.04);
}

.reg-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #F1F5F9;
}

.reg-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.reg-icon-blue   { background: #EFF6FF; color: #1D4ED8; }
.reg-icon-orange { background: #FFF7ED; color: #EA580C; }
.reg-icon-green  { background: #F0FDF4; color: #16A34A; }
.reg-icon-pink   { background: #FDF2F8; color: #DB2777; }
.reg-icon-purple { background: #FAF5FF; color: #9333EA; }
.reg-icon-yellow { background: #FEFCE8; color: #CA8A04; }

.reg-section-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-family: var(--font-heading, sans-serif);
    font-weight: 800;
    color: var(--childit-navy, #0c3670);
    line-height: 1.2;
}

.reg-section-sub {
    font-size: 0.84rem;
    color: #64748B;
    margin-top: 2px;
    display: block;
}

/* Form Controls */
.reg-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 16px;
}

.reg-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 16px;
}

.reg-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 16px;
}

.reg-form-group {
    margin-bottom: 16px;
}

.reg-form-group.no-mb {
    margin-bottom: 0;
}

.reg-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.reg-label .required {
    color: #EF4444;
    margin-left: 2px;
}

.reg-input,
.reg-select,
.reg-textarea {
    width: 100%;
    padding: 11px 16px;
    font-family: var(--font-body, sans-serif);
    font-size: 0.95rem;
    color: #1E293B;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.reg-input:focus,
.reg-select:focus,
.reg-textarea:focus {
    outline: none;
    border-color: var(--childit-navy, #0c3670);
    box-shadow: 0 0 0 3px rgba(12, 54, 112, 0.12);
}

.reg-input::placeholder,
.reg-textarea::placeholder {
    color: #94A3B8;
}

.reg-input.is-invalid,
.reg-select.is-invalid,
.reg-textarea.is-invalid {
    border-color: #EF4444 !important;
    background: #FEF2F2;
}

/* Parent Box Sub-section with Photo slot */
.parent-profile-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
}

.parent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
}

.parent-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--childit-navy, #0c3670);
    display: flex;
    align-items: center;
    gap: 8px;
}

.parent-layout-with-photo {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: flex-start;
}

.parent-photo-mini-frame {
    width: 100px;
    height: 120px;
    border: 2px dashed #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.parent-photo-mini-frame:hover {
    border-color: var(--childit-navy, #0c3670);
}

.parent-photo-mini-frame input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
    width: 100%;
    height: 100%;
}

/* Radio / Toggle Pills */
.reg-radio-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.reg-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #F1F5F9;
    border: 1.5px solid #CBD5E1;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reg-radio-pill input[type="radio"] {
    accent-color: var(--childit-navy, #0c3670);
    transform: scale(1.1);
}

.reg-radio-pill:has(input[type="radio"]:checked) {
    background: #EFF6FF;
    border-color: var(--childit-navy, #0c3670);
    color: var(--childit-navy, #0c3670);
}

/* =========================================================================
   PAGE 2: SIBLING DETAILS TABLE
   ========================================================================= */
.sibling-table-wrap {
    overflow-x: auto;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 14px;
}

.sibling-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sibling-table th {
    background: #F8FAFC;
    color: #475569;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1.5px solid #E2E8F0;
    white-space: nowrap;
}

.sibling-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.sibling-table .sibling-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 0.88rem;
}

.sibling-table .sibling-input:focus {
    border-color: var(--childit-navy, #0c3670);
    outline: none;
}

.btn-remove-row {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-remove-row:hover {
    background: #FCA5A5;
}

.btn-add-sibling {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1.5px dashed #93C5FD;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-sibling:hover {
    background: #DBEAFE;
}

/* =========================================================================
   CHECKLIST SECTION WITH DYNAMIC REVEAL UPLOAD SECTION
   ========================================================================= */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.checklist-card {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.checklist-card.checked {
    background: #FFFFFF;
    border-color: #3B82F6;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.08);
}

.checklist-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.checklist-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--childit-navy, #0c3670);
    cursor: pointer;
    transform: scale(1.15);
}

.checklist-title-wrap {
    display: flex;
    flex-direction: column;
}

.checklist-item-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1E293B;
}

.checklist-item-sub {
    font-size: 0.78rem;
    color: #64748B;
}

.checklist-badge-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #64748B;
}

.checklist-card.checked .checklist-badge-tag {
    background: #DBEAFE;
    color: #1D4ED8;
}

/* Upload Image Section (Hidden by Default, Displayed on Click) */
.checklist-upload-section {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1.5px dashed #CBD5E1;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.checklist-card.checked .checklist-upload-section {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-upload-dropzone {
    border: 2px dashed #93C5FD;
    border-radius: 12px;
    background: #F0F7FF;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doc-upload-dropzone:hover {
    background: #E0E7FF;
    border-color: #3B82F6;
}

.doc-upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.doc-dropzone-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #DBEAFE;
    color: #1D4ED8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.doc-dropzone-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1E3A8A;
}

.doc-dropzone-hint {
    font-size: 0.78rem;
    color: #64748B;
}

.doc-preview-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #3B82F6;
    display: none;
}

.doc-file-status {
    font-size: 0.82rem;
    font-weight: 700;
    color: #059669;
    display: none;
    align-items: center;
    gap: 4px;
}

/* =========================================================================
   DECLARATION & SIGNATURE
   ========================================================================= */
.declaration-terms-box {
    background: #FFFDF5;
    border: 1px solid #FDE68A;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
    font-size: 0.92rem;
    color: #78350F;
    line-height: 1.65;
}

.declaration-preamble {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #92400E;
}

.declaration-clauses {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.declaration-clauses li {
    padding-left: 4px;
}

.decl-agree-checkbox-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #FDE68A;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #92400E;
    cursor: pointer;
}

.decl-agree-checkbox-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #D97706;
    cursor: pointer;
}

.sig-pad-box {
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    padding: 8px;
    display: inline-block;
    width: 100%;
}

.sig-pad-box canvas {
    width: 100%;
    height: 130px;
    background: #FAF5FF;
    border-radius: 8px;
    cursor: crosshair;
    display: block;
}

.sig-tools-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.sig-clear-btn {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.sig-hint {
    font-size: 0.76rem;
    color: #94A3B8;
}

/* =========================================================================
   FORM NAVIGATION BUTTONS (NEXT / BACK / SUBMIT)
   ========================================================================= */
.form-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
    padding-top: 24px;
    border-top: 1.5px solid #E2E8F0;
    flex-wrap: wrap;
}

.btn-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #334155;
    border: 1.5px solid #CBD5E1;
    padding: 14px 26px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-nav-back:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
}

.btn-nav-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--childit-navy, #0c3670);
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
    border-radius: 9999px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(12, 54, 112, 0.25);
    margin-left: auto;
}

.btn-nav-next:hover {
    background: #09254d;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(12, 54, 112, 0.35);
}

.btn-nav-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    padding: 15px 36px;
    border-radius: 9999px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    margin-left: auto;
}

.btn-nav-submit:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
}

.btn-nav-submit:disabled,
.btn-nav-next:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* =========================================================================
   SUCCESS POPUP MODAL (POPUP CONFIRMATION)
   ========================================================================= */
.reg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 29, 55, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reg-success-modal {
    background: #FFFFFF;
    border-radius: 26px;
    padding: 40px 36px;
    max-width: 580px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-modal-overlay.active .reg-success-modal {
    transform: scale(1) translateY(0);
}

.modal-rainbow-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, #FF5722, #FFD200, #4CD137, #00A8FF, #FF2A6D);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    background: #F1F5F9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.modal-success-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    margin: 0 auto 18px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.2);
    animation: iconPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iconPop {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--childit-navy, #0c3670);
    margin: 0 0 10px;
}

.modal-lead {
    font-size: 0.96rem;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 22px;
}

.modal-ref-card {
    background: #F0FDF4;
    border: 2px dashed #86EFAC;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-ref-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #166534;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.modal-ref-code {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.9rem;
    font-weight: 800;
    color: #14532D;
    letter-spacing: 1px;
}

.modal-summary-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 18px;
    text-align: left;
    margin-bottom: 24px;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-summary-row {
    display: flex;
    justify-content: space-between;
}

.modal-summary-lbl {
    color: #64748B;
}

.modal-summary-val {
    font-weight: 700;
    color: #1E293B;
}

.modal-actions-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn-print {
    background: var(--childit-yellow, #FFD200);
    color: #0c3670;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-print:hover {
    background: #e6bd00;
}

.modal-btn-home {
    background: #F1F5F9;
    color: #334155;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-home:hover {
    background: #E2E8F0;
}

/* =========================================================================
   RESPONSIVE MOBILE BREAKPOINTS
   ========================================================================= */
@media (max-width: 768px) {
    .reg-main-section {
        padding: 30px 0 60px;
    }

    .admission-stepper {
        flex-direction: column;
        gap: 10px;
    }

    .stepper-step {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
    }

    .form-official-header {
        padding: 20px 18px;
    }

    .form-header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .form-doc-title-pill {
        align-self: center;
    }

    .photo-upload-frame {
        margin: 0 auto;
    }

    .reg-grid-2,
    .reg-grid-3,
    .reg-grid-4 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .parent-layout-with-photo {
        grid-template-columns: 1fr;
    }

    .parent-photo-mini-frame {
        margin: 0 auto 14px;
    }

    .reg-section-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .doc-upload-dropzone {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-nav-bar {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .btn-nav-back,
    .btn-nav-next,
    .btn-nav-submit {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .reg-success-modal {
        padding: 30px 20px;
    }

    .reg-confirm-modal {
        max-height: 94vh;
        border-radius: 18px;
    }

    .confirm-modal-header,
    .confirm-modal-body,
    .confirm-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .confirm-notice-box {
        margin-left: 18px;
        margin-right: 18px;
    }

    .confirm-modal-footer {
        flex-direction: column-reverse;
    }

    .btn-confirm-edit,
    .btn-confirm-submit {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================================
   CONFIRMATION REVIEW MODAL ("Kindly confirm the details to submit the form")
   ========================================================================= */
.reg-confirm-modal {
    background: #FFFFFF;
    border-radius: 26px;
    max-width: 840px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(10, 29, 55, 0.35);
    position: relative;
    overflow: hidden;
    transform: scale(0.94) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-modal-overlay.active .reg-confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-modal-header {
    padding: 24px 30px 18px;
    border-bottom: 1.5px solid #E2E8F0;
    position: relative;
    background: #FFFFFF;
}

.confirm-modal-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--childit-navy, #0c3670);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirm-notice-box {
    margin: 16px 30px 0;
    background: #FFFBEB;
    border: 1.5px solid #FCD34D;
    border-left: 6px solid #F59E0B;
    border-radius: 12px;
    padding: 14px 18px;
}

.confirm-notice-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #92400E;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-notice-sub {
    font-size: 0.88rem;
    color: #B45309;
    margin: 0;
    line-height: 1.4;
}

.confirm-modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.confirm-section-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 20px;
}

.confirm-section-title {
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--childit-navy, #0c3670);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    font-size: 0.9rem;
}

.confirm-item {
    display: flex;
    flex-direction: column;
}

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

.confirm-lbl {
    font-size: 0.76rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.confirm-val {
    font-size: 0.94rem;
    font-weight: 700;
    color: #1E293B;
    word-break: break-word;
}

.confirm-val-highlight {
    color: #0c3670;
    background: #E0F2FE;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.confirm-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.confirm-badge-attached {
    background: #DCFCE7;
    color: #166534;
}

.confirm-badge-none {
    background: #F1F5F9;
    color: #94A3B8;
}

.confirm-sig-preview {
    max-height: 80px;
    max-width: 220px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFF;
    padding: 4px;
    object-fit: contain;
}

.confirm-modal-footer {
    padding: 18px 30px;
    border-top: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-confirm-edit {
    background: #F1F5F9;
    color: #475569;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1.5px solid #CBD5E1;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-confirm-edit:hover {
    background: #E2E8F0;
    color: #1E293B;
}

.btn-confirm-submit {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-confirm-submit:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

