/* Admission form — Bahari tokens from the public site */
.form-lyout {
    font-family: var(--font-body, Inter, sans-serif);
    background: var(--paper, #faf6ee);
    color: var(--ink, #10222c);
}

.header {
    background: var(--bahari-deep, #0b3b4d);
    color: #fff;
    padding: 22px 16px 20px;
    text-align: center;
}
.header-content { position: relative; z-index: 1; }
.header-logo {
    height: 64px;
    width: auto;
    margin-bottom: 8px;
}
.header h1 {
    font-family: var(--font-display, Fraunces, Georgia, serif);
    font-size: 1.5rem;
    color: var(--brass-light, #d4af6a);
    margin: 0 0 4px;
    font-weight: 600;
}
.header p {
    margin: 0;
    color: var(--paper-deep, #f1e9d8);
    font-size: 0.95rem;
}

.lang-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    padding: 6px 14px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 13px;
}
.lang-btn.active,
.lang-btn:hover {
    background: var(--brass, #b8863b);
    border-color: var(--brass, #b8863b);
    color: var(--bahari-deep, #0b3b4d);
}

.progress-container {
    background: #fff;
    border-bottom: 1px solid var(--line, #e4dbc8);
    padding: 16px;
}
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.progress-line {
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--line, #e4dbc8);
    z-index: 0;
}
.progress-fill {
    height: 100%;
    width: 0;
    background: var(--bahari, #1c6e8c);
    transition: width .35s ease;
}
.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line, #e4dbc8);
    color: var(--ink-soft, #4a5f68);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}
.step-circle.active {
    background: var(--bahari, #1c6e8c);
    border-color: var(--bahari, #1c6e8c);
    color: #fff;
}
.step-circle.completed {
    background: var(--bahari-deep, #0b3b4d);
    border-color: var(--bahari-deep, #0b3b4d);
    color: var(--brass-light, #d4af6a);
}
.step-label {
    font-size: 11px;
    color: var(--ink-soft, #4a5f68);
    max-width: 72px;
}

.form-container {
    max-width: 800px;
    margin: 24px auto 40px;
    background: #fff;
    border: 1px solid var(--line, #e4dbc8);
    border-radius: 0px;
}
.form-step {
    display: none;
    padding: 28px;
}
.form-step.active {
    display: block;
}
.sub-step { display: none; }
.sub-step.active { display: block; }

.step-title,
.sub-title {
    font-family: var(--font-display, Fraunces, Georgia, serif);
    color: var(--bahari-deep, #0b3b4d);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sub-title { font-size: 1.05rem; margin-bottom: 16px; }
.step-description {
    color: var(--ink-soft, #4a5f68);
    margin-bottom: 22px;
    font-size: 14px;
}

.form-group { margin-bottom: 16px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink, #10222c);
    font-weight: 600;
    font-size: 13px;
}
.form-label.required::after {
    content: ' *';
    color: var(--coral, #c1614a);
}
.form-input,
.form-select,
textarea.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line, #e4dbc8);
    border-radius: 0px;
    font-size: 14px;
    background: #fff;
    color: var(--ink, #10222c);
    font-family: inherit;
}
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--bahari, #1c6e8c);
    box-shadow: 0 0 0 3px rgba(28,110,140,.12);
}
.form-input.error,
.form-select.error {
    border-color: var(--coral, #c1614a);
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line, #e4dbc8);
    border-radius: 0px;
    cursor: pointer;
    background: #fff;
    min-width: 110px;
}
.radio-option:hover,
.radio-option.selected {
    border-color: var(--bahari, #1c6e8c);
    background: rgba(28,110,140,.06);
}
.radio-option.error { border-color: var(--coral, #c1614a); }

.level-cards,
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.level-card,
.payment-card {
    border: 1px solid var(--line, #e4dbc8);
    border-radius: 0px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    background: #fff;
}
.level-card:hover,
.payment-card:hover,
.level-card.selected,
.payment-card.selected {
    border-color: var(--bahari, #1c6e8c);
}
.level-icon,
.payment-icon { font-size: 22px; color: var(--bahari, #1c6e8c); margin-bottom: 8px; }
.level-title,
.payment-title { font-weight: 600; color: var(--ink, #10222c); margin-bottom: 4px; }
.level-description,
.payment-description { font-size: 13px; color: var(--ink-soft, #4a5f68); }
.level-ages {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 0px;
    background: var(--paper-deep, #f1e9d8);
    color: var(--bahari-deep, #0b3b4d);
    font-size: 12px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line, #e4dbc8);
}
.btn {
    padding: 10px 18px;
    border-radius: 0px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.btn-primary {
    background: var(--brass, #b8863b);
    color: var(--bahari-deep, #0b3b4d);
}
.btn-primary:hover { background: var(--brass-light, #d4af6a); }
.btn-secondary {
    background: transparent;
    color: var(--bahari, #1c6e8c);
    border-color: var(--bahari, #1c6e8c);
}
.btn-submit {
    background: var(--bahari, #1c6e8c);
    color: #fff;
}
.btn-submit:hover { background: var(--bahari-deep, #0b3b4d); }

.error-message { color: var(--coral, #c1614a); font-size: 12px; margin-top: 4px; display: none; }
.form-input.error + .error-message,
.form-select.error + .error-message { display: block; }

.alert { padding: 12px 14px; margin-bottom: 16px; border-radius: 0px; border: 1px solid; }
.alert-danger { color: #7a2e22; background: #f8e8e4; border-color: #e8c4bb; }
.alert-success { color: #1c4a38; background: #e6f3ec; border-color: #b7d8c6; }
.alert-warning { color: #6a4b12; background: #f7edd4; border-color: #e4d3a4; }

.photo-upload-section {
    border: 1px dashed var(--bahari, #1c6e8c);
    border-radius: 0px;
    padding: 20px;
    text-align: center;
    margin: 16px 0;
    background: var(--paper, #faf6ee);
}
.photo-upload-section.dragover { background: var(--paper-deep, #f1e9d8); }
#studentPhotoInput { display: none; }
.upload-icon { font-size: 28px; color: var(--bahari, #1c6e8c); margin-bottom: 8px; }
.photo-preview-container { display: none; margin: 16px 0; text-align: center; }
.photo-preview-container.show { display: block; }
.photo-preview-box {
    max-width: 180px;
    margin: 0 auto;
    border: 2px solid var(--bahari, #1c6e8c);
    border-radius: 8px;
    overflow: hidden;
}
.photo-preview-image { width: 100%; height: 220px; object-fit: cover; display: block; }
.photo-preview-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.btn-change-photo,
.btn-remove-photo {
    border: none;
    padding: 8px 12px;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
}
.btn-change-photo { background: var(--bahari, #1c6e8c); }
.btn-remove-photo { background: var(--coral, #c1614a); }
.photo-requirements {
    background: var(--paper, #faf6ee);
    border-left: 3px solid var(--bahari, #1c6e8c);
    padding: 12px 14px;
    border-radius: 0px;
    margin: 12px 0;
    font-size: 13px;
    color: var(--ink-soft, #4a5f68);
}

.contract-text {
    height: 280px;
    overflow: auto;
    border: 1px solid var(--line, #e4dbc8);
    padding: 12px;
    margin-bottom: 16px;
    background: var(--paper, #faf6ee);
}
.conditional-field { display: none; }

#nmbDetails, #crdbDetails, #generalBankDetails {
    background: var(--paper, #faf6ee);
    padding: 16px;
    border-radius: 0px;
    border-left: 3px solid var(--bahari, #1c6e8c);
}

@media (max-width: 768px) {
    .form-container { margin: 16px 12px 32px; }
    .form-step { padding: 18px 14px; }
    .form-row { grid-template-columns: 1fr; }
    .form-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .level-cards, .payment-methods { grid-template-columns: 1fr; }
    .header-logo { height: 48px; }
    .header h1 { font-size: 1.2rem; }
    .step-circle { width: 32px; height: 32px; font-size: 12px; }
    .step-label { font-size: 10px; max-width: 58px; }
}

/* Vertical "View all annual fees" tab on the left edge */
.export-btn-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
}
.fees-btn-export {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bahari-deep, #0b3d4c);
    color: #fff;
    padding: 16px 10px;
    border-radius: 0 8px 8px 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-height: 160px;
    border: 1px solid var(--bahari, #1c6e8c);
    border-left: none;
}
.fees-btn-export:hover {
    background: var(--bahari, #1c6e8c);
    color: #fff;
    padding-right: 14px;
}
.fees-btn-export i {
    font-size: 16px;
    writing-mode: horizontal-tb;
    color: var(--brass-light, #d4af6a);
}
.fees-btn-export span {
    letter-spacing: .12em;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .export-btn-container {
        top: auto;
        bottom: 16px;
        left: 12px;
        transform: none;
    }
    .fees-btn-export {
        writing-mode: horizontal-tb;
        flex-direction: row;
        min-height: 0;
        padding: 10px 14px;
        border-radius: 0px;
        font-size: 12px;
    }
}
