/* UBT Summer Camp — Maroon #A02842 | Navy #00205F | Aqua #00B8D9 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --ubt-maroon: #A02842;
    --ubt-maroon-dark: #7c1d2e;
    --ubt-blue: #00205F;
    --ubt-blue-primary: #25295C;
    --ubt-aqua: #00B8D9;
    --ubt-aqua-light: #7EE8FC;
    --ubt-aqua-dark: #0097B2;
    --kid-blue: #3B82F6;
    --kid-blue-dark: #2563EB;
    --kid-blue-soft: #EFF6FF;
    --kid-orange: #F97316;
    --kid-orange-dark: #EA580C;
    --kid-orange-soft: #FFF7ED;
    --kid-green: #22C55E;
    --kid-green-dark: #16A34A;
    --kid-green-soft: #F0FDF4;
    /* UniQuest logo palette */
    --uq-cyan: #00AEEF;
    --uq-cyan-dark: #0088C2;
    --uq-cyan-light: #5EC9F5;
    --uq-blue: #0072BC;
    --uq-blue-dark: #005A96;
    --uq-lime: #8CC63F;
    --uq-lime-dark: #6FA82E;
    --uq-lime-light: #B5E080;
    --uq-orange: #FBB03B;
    --uq-orange-dark: #E09A20;
    --uq-pink: #ED1E79;
    --uq-pink-dark: #C41865;
    --uq-pink-light: #F56BA8;
    --kid-cyan: var(--uq-cyan);
    --kid-cyan-dark: var(--uq-cyan-dark);
    --kid-cyan-soft: #E8F7FD;
    --kid-lime: var(--uq-lime);
    --kid-lime-dark: var(--uq-lime-dark);
    --kid-lime-soft: #F3FAE8;
    --kid-pink: var(--uq-pink);
    --kid-pink-dark: var(--uq-pink-dark);
    --kid-pink-soft: #FDE8F2;
    --ubt-font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    --ubt-text-base: 1rem;
    --ubt-text-sm: 0.875rem;
    --ubt-text-xs: 0.8125rem;
    --ubt-text-lg: 1.125rem;
    --ubt-text-xl: 1.25rem;
    --ubt-text-2xl: 1.5rem;
    --ubt-text-3xl: 1.875rem;
}

/* Unified typography — single font family and readable scale across UbtSc */
.ubt-page-bg {
    font-family: var(--ubt-font-family);
    font-size: var(--ubt-text-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ubt-page-bg h1,
.ubt-page-bg h2,
.ubt-page-bg h3,
.ubt-page-bg h4,
.ubt-page-bg h5,
.ubt-page-bg h6,
.ubt-page-bg input,
.ubt-page-bg select,
.ubt-page-bg textarea,
.ubt-page-bg button {
    font-family: var(--ubt-font-family);
}

.ubt-heading-page {
    font-size: var(--ubt-text-2xl);
    font-weight: 700;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .ubt-heading-page {
        font-size: var(--ubt-text-3xl);
    }
}

.ubt-heading-section {
    font-size: var(--ubt-text-lg);
    font-weight: 700;
    line-height: 1.35;
}

/* Camp listing — full-width bilingual headings */
.camp-listing-heading .camp-listing-title,
.camp-listing-heading .camp-listing-subtitle {
    display: block;
}

.camp-listing-heading .camp-listing-title .bi-en,
.camp-listing-heading .camp-listing-title .bi-ar,
.camp-listing-heading .camp-listing-subtitle .bi-en,
.camp-listing-heading .camp-listing-subtitle .bi-ar {
    display: block;
    line-height: 1.35;
}

/* Camp listing — shared prose column (title + body same width/alignment) */
.camp-listing-prose {
    width: 100%;
    text-align: left;
}

.camp-listing-prose .camp-listing-title.bi-text,
.camp-listing-prose .camp-listing-subtitle.bi-text {
    display: block !important;
    width: 100%;
    text-align: inherit;
}

.camp-listing-prose .camp-listing-title .bi-en,
.camp-listing-prose .camp-listing-title .bi-ar,
.camp-listing-prose .camp-listing-subtitle .bi-en,
.camp-listing-prose .camp-listing-subtitle .bi-ar {
    display: block;
    width: 100%;
    line-height: 1.35;
    text-align: inherit;
}

.camp-listing-prose .camp-listing-body {
    display: block;
    width: 100%;
    margin: 0;
    text-align: inherit;
}

.camp-listing-prose .camp-listing-body .bi-en,
.camp-listing-prose .camp-listing-body .bi-ar {
    display: block;
    width: 100%;
    line-height: 1.65;
    text-align: inherit;
    text-align-last: left;
}

/* Camp listing — heading block centered (EN + AR) */
.camp-listing-heading .camp-listing-prose {
    text-align: center;
}

.camp-listing-heading .camp-listing-title .bi-en,
.camp-listing-heading .camp-listing-title .bi-ar,
.camp-listing-heading .camp-listing-subtitle .bi-en,
.camp-listing-heading .camp-listing-subtitle .bi-ar {
    text-align: center;
}

html.lang-ar .camp-listing-heading .camp-listing-prose {
    direction: rtl;
}

/* Camp listing — body panel alignment */
html.lang-ar .ubt-accent-card .camp-listing-prose {
    direction: rtl;
    text-align: right;
}

html.lang-ar .ubt-accent-card .camp-listing-prose .camp-listing-body .bi-ar {
    text-align: right;
    text-align-last: right;
}

/* Always show both languages (e.g. fine print under camp cards) */
.bi-dual .bi-en,
.bi-dual .bi-ar {
    display: block !important;
    line-height: 1.55;
}

.bi-dual .bi-ar + .bi-en {
    margin-top: 0.35rem;
}

/* Fine print under camp cards — English above, Arabic below */
.camp-listing-fineprint.bi-dual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.camp-listing-fineprint.bi-dual .bi-en,
.camp-listing-fineprint.bi-dual .bi-ar {
    display: block !important;
    width: 100%;
    margin-top: 0 !important;
    line-height: 1.55;
    text-align: center;
}

.camp-listing-fineprint.bi-dual .bi-ar {
    direction: rtl;
}

/* Normalize Tailwind text utilities inside UbtSc */
.ubt-page-bg .text-xs {
    font-size: var(--ubt-text-xs);
}

.ubt-page-bg .text-sm {
    font-size: var(--ubt-text-sm);
}

.ubt-page-bg .text-base {
    font-size: var(--ubt-text-base);
}

.ubt-page-bg .text-lg {
    font-size: var(--ubt-text-lg);
}

.ubt-page-bg .text-xl {
    font-size: var(--ubt-text-xl);
}

.ubt-page-bg .text-2xl {
    font-size: var(--ubt-text-2xl);
}

.ubt-page-bg .text-3xl {
    font-size: var(--ubt-text-3xl);
}

/* Page background — soft tri-color wash */
.ubt-page-bg {
    background-color: #f4fafc;
    background-image:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 184, 217, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 95% 5%, rgba(160, 40, 66, 0.07), transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 32, 95, 0.06), transparent 55%),
        linear-gradient(160deg, #f0fafc 0%, #ffffff 45%, #f8fbff 100%);
}

/* Header — navy with aqua shimmer */
.ubt-header {
    position: relative;
    background: linear-gradient(120deg, var(--ubt-blue) 0%, #1a3d6e 55%, #0d5f7a 100%);
}

.ubt-header-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ubt-maroon) 0%, var(--ubt-aqua) 50%, var(--ubt-maroon) 100%);
}

/* Footer — premium */
.ubt-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #061528 0%, var(--ubt-blue) 38%, #0c3d5c 72%, #0a2248 100%);
}

.ubt-footer-stripe {
    height: 3px;
    background: linear-gradient(90deg, var(--ubt-maroon), var(--kid-orange), var(--ubt-aqua), var(--kid-green), var(--ubt-aqua), var(--ubt-maroon));
    background-size: 200% 100%;
    animation: ubt-footer-stripe-shift 12s ease infinite;
}

@keyframes ubt-footer-stripe-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ubt-footer-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.35;
}

.ubt-footer-glow--left {
    width: 22rem;
    height: 22rem;
    background: var(--ubt-aqua);
    bottom: -6rem;
    left: -6rem;
}

.ubt-footer-glow--right {
    width: 18rem;
    height: 18rem;
    background: var(--ubt-maroon);
    top: 2rem;
    right: -4rem;
    opacity: 0.2;
}

.ubt-footer-heading {
    font-size: var(--ubt-text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ubt-aqua-light);
    margin-bottom: 1.25rem;
}

.ubt-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ubt-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.ubt-footer-links a i {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ubt-aqua-light);
    transition: background 0.2s, color 0.2s;
}

.ubt-footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

html.lang-ar .ubt-footer-links a:hover {
    transform: translateX(-3px);
}

.ubt-footer-links a:hover i {
    background: rgba(0, 184, 217, 0.2);
    color: #fff;
}

.ubt-footer-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ubt-footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.ubt-footer-info li i {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ubt-footer-pill {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: var(--ubt-text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.ubt-footer-contact-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.875rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(12px);
    transition: background 0.25s, transform 0.2s;
}

a.ubt-footer-contact-card:hover {
    background: linear-gradient(135deg, rgba(0, 184, 217, 0.15) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-2px);
}

.ubt-footer-contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ubt-aqua) 0%, var(--ubt-aqua-dark) 100%);
    box-shadow: 0 4px 14px rgba(0, 184, 217, 0.35);
}

.ubt-footer-bottom {
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
}

/* UniQuest Summer Handbook download */
.ubt-handbook-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    border-radius: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ubt-handbook-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.65rem;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.ubt-handbook-btn__text {
    font-size: 0.875rem;
}

.ubt-handbook-btn__arrow {
    font-size: 0.8rem;
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ubt-handbook-btn--nav {
    padding: 0.55rem 0.95rem 0.55rem 0.65rem;
    color: var(--ubt-blue);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 250, 252, 0.98) 100%);
    border: 1.5px solid rgba(0, 184, 217, 0.35);
    box-shadow: 0 8px 24px rgba(0, 32, 95, 0.08), 0 0 0 1px rgba(0, 184, 217, 0.06);
}

.ubt-handbook-btn--nav .ubt-handbook-btn__icon {
    color: #fff;
    background: linear-gradient(135deg, var(--ubt-blue) 0%, var(--ubt-aqua-dark) 100%);
    box-shadow: 0 4px 12px rgba(0, 32, 95, 0.2);
}

.ubt-handbook-btn--nav:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 184, 217, 0.55);
    box-shadow: 0 12px 28px rgba(0, 184, 217, 0.18);
    color: var(--ubt-blue);
}

.ubt-handbook-btn--nav:hover .ubt-handbook-btn__arrow {
    opacity: 1;
    transform: translateY(1px);
}

.ubt-handbook-btn--success {
    width: 100%;
    max-width: 28rem;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ubt-blue) 0%, #1a4a7a 45%, var(--ubt-aqua-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 32px rgba(0, 32, 95, 0.22), 0 0 0 1px rgba(0, 184, 217, 0.15);
}

.ubt-handbook-btn--success .ubt-handbook-btn__icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.05rem;
    color: var(--ubt-blue);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ubt-handbook-btn--success .ubt-handbook-btn__text {
    font-size: 0.95rem;
}

.ubt-handbook-btn--success:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 184, 217, 0.28);
    color: #fff;
}

.ubt-handbook-btn--success:hover .ubt-handbook-btn__arrow {
    opacity: 1;
    transform: translateY(2px);
}

@media (max-width: 639px) {
    .ubt-handbook-btn--nav {
        width: 100%;
        justify-content: center;
    }

    .ubt-handbook-btn--nav .ubt-handbook-btn__text {
        font-size: 0.8125rem;
    }
}

/* Hero sections (camps + wizard) */
.ubt-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ubt-blue) 0%, #1a4a7a 40%, var(--ubt-aqua-dark) 100%);
    color: #fff;
}

.ubt-hero::before,
.ubt-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ubt-hero::before {
    width: 28rem;
    height: 28rem;
    top: -40%;
    right: -8%;
    background: radial-gradient(circle, rgba(0, 184, 217, 0.35) 0%, transparent 70%);
}

.ubt-hero::after {
    width: 20rem;
    height: 20rem;
    bottom: -50%;
    left: -5%;
    background: radial-gradient(circle, rgba(160, 40, 66, 0.2) 0%, transparent 70%);
}

.ubt-hero-inner {
    position: relative;
    z-index: 1;
}

.ubt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: var(--ubt-text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 184, 217, 0.2);
    border: 1px solid rgba(126, 232, 252, 0.45);
    color: var(--ubt-aqua-light);
    margin-bottom: 0.75rem;
}

.ubt-schedule-bar {
    background: linear-gradient(90deg, var(--ubt-aqua-dark) 0%, var(--ubt-aqua) 50%, var(--ubt-aqua-dark) 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Accent cards */
.ubt-accent-surface {
    background: linear-gradient(135deg, rgba(0, 32, 95, 0.04) 0%, rgba(0, 184, 217, 0.08) 100%);
}

.ubt-accent-card {
    background: linear-gradient(135deg, rgba(0, 32, 95, 0.04) 0%, rgba(0, 184, 217, 0.08) 100%);
    border: 1px solid rgba(0, 184, 217, 0.2);
    box-shadow: 0 4px 24px -8px rgba(0, 184, 217, 0.15);
}

/* Camp listing — full-page accent wash (matches top panel) */
.ubt-page-bg main:has(.camp-listing-shell) {
    display: flex;
    flex-direction: column;
}

.camp-listing-shell {
    background: linear-gradient(135deg, rgba(0, 32, 95, 0.04) 0%, rgba(0, 184, 217, 0.08) 100%);
    flex: 1;
    width: 100%;
}

.ubt-accent-card h3 i {
    color: var(--ubt-aqua);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-label.required-field::after {
    content: none;
}

.form-required-star {
    color: #dc2626;
    font-weight: 700;
    margin-inline-start: 0.15rem;
}

/* Wizard labels — left (LTR) / right (RTL), asterisk inline in markup */
#registrationWizard .form-group .form-label.bi-text,
.child-form-grid .form-label.bi-text {
    display: block !important;
    text-align: start;
    width: 100%;
}

html.lang-en #registrationWizard .form-group .form-label.bi-text,
html.lang-en .child-form-grid .form-label.bi-text {
    text-align: left;
}

html.lang-ar #registrationWizard .form-group .form-label.bi-text,
html.lang-ar .child-form-grid .form-label.bi-text {
    text-align: right;
}

.ubt-age-group-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .ubt-age-group-options {
        grid-template-columns: 1fr 1fr;
    }
}

.ubt-age-group-option {
    transition: border-color 0.2s ease, background-color 0.2s ease;
    margin: 0;
    min-height: 3.25rem;
    align-items: center !important;
}

.ubt-age-group-option.is-selected {
    border-color: var(--ubt-aqua);
    background: rgba(0, 184, 217, 0.06);
}

.ubt-age-group-option:has(input:checked) {
    border-color: var(--ubt-aqua);
    background: rgba(0, 184, 217, 0.06);
}

.ubt-age-group-option input {
    accent-color: var(--ubt-maroon);
    flex-shrink: 0;
}

/* Child wizard form — uniform field alignment */
.child-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.child-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .child-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.child-form-row--full {
    display: block;
}

.child-form-grid .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    min-width: 0;
}

.child-form-grid .form-group--full {
    width: 100%;
}

.child-form-grid .form-group--spacer {
    display: none;
}

@media (min-width: 768px) {
    .child-form-grid .form-group--spacer {
        display: block;
        visibility: hidden;
        pointer-events: none;
    }
}

.child-form-grid .form-label {
    min-height: 2.5rem;
    display: block;
    line-height: 1.3;
    margin-bottom: 0 !important;
    text-align: start;
    width: 100%;
}

html.lang-ar .child-form-grid .form-label {
    text-align: right;
}

.child-form-grid .form-label.bi-text {
    align-items: unset;
}

.child-form-grid .form-control-slot {
    display: block;
    width: 100%;
}

.child-form-grid .form-control-slot > .ubt-gloss-select-wrap,
.child-form-grid .form-control-slot > .ubt-gender-readonly {
    width: 100%;
}

.child-form-grid .form-input,
.child-form-grid .ubt-gender-readonly .form-input {
    min-height: 2.75rem;
    box-sizing: border-box;
    border: 1px solid rgba(0, 184, 217, 0.35);
    border-radius: 0.875rem;
    padding: 0.72rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 250, 252, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 8px -4px rgba(0, 32, 95, 0.1);
}

.child-form-grid .ubt-gloss-select {
    width: 100%;
    min-height: 2.75rem;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    border: 1px solid rgba(0, 184, 217, 0.35);
    border-radius: 0.875rem;
    padding: 0.72rem 2.5rem 0.72rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ubt-blue);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 250, 252, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 8px -4px rgba(0, 32, 95, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

html.lang-ar .child-form-grid .ubt-gloss-select {
    padding: 0.72rem 1rem 0.72rem 2.5rem;
}

.child-form-grid .ubt-gloss-select:hover:not(:disabled) {
    border-color: rgba(0, 184, 217, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 4px 14px -6px rgba(0, 184, 217, 0.28);
}

.child-form-grid .ubt-gloss-select option {
    color: var(--ubt-blue);
    font-weight: 500;
}

.child-form-grid .ubt-gloss-select option[value=""] {
    color: #94a3b8;
}

.child-form-grid .ubt-gloss-select-wrap--gender::after {
    color: var(--ubt-aqua-dark);
    opacity: 0.9;
    font-size: 0.7rem;
}

.child-form-grid .form-input:focus,
.child-form-grid .ubt-gloss-select:focus {
    border-color: var(--ubt-aqua);
    box-shadow: 0 0 0 2px rgba(0, 184, 217, 0.15);
}

.child-form-grid .form-group.error .form-input,
.child-form-grid .form-group.error .ubt-gloss-select,
.child-form-grid .form-group.error .ubt-gloss-select-wrap .ubt-gloss-select {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15);
}

.child-form-grid .child-dob-field:disabled {
    background: #f1f5f9;
}

.child-form-grid .ubt-gloss-select-wrap {
    width: 100%;
}

.child-dob-hint {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
    margin: 0.35rem 0 0;
    min-height: 1rem;
}

.child-dob-hint.is-warning,
.child-dob-hint.is-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.child-dob-hint.is-ok {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.child-dob-hint.is-warning {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.child-dob-hint.is-info {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.form-group.error .ubt-age-group-options {
    border-radius: 0.5rem;
    outline: 2px solid #fca5a5;
    outline-offset: 2px;
}

.child-dob-field:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Child health disclosure */
.ubt-health-disclosure {
    background: linear-gradient(180deg, rgba(0, 184, 217, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 1rem;
    padding: 1.25rem 1rem 0.5rem;
}

.ubt-health-disclosure__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 1rem;
    text-align: center;
}

.ubt-health-disclosure__legal {
    font-size: 0.82rem;
    line-height: 1.65;
    color: #b91c1c;
    margin: 0.75rem 0 1.25rem;
    padding: 0.75rem 0.9rem;
    background: rgba(254, 242, 242, 0.65);
    border-radius: 0.75rem;
    border: 1px dashed rgba(248, 113, 113, 0.35);
}

.ubt-yes-no-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.ubt-yes-no-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
}

.ubt-yes-no-option input[type="radio"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #00b8d9;
    cursor: pointer;
}

.ubt-health-disclosure textarea.child-medical-details {
    min-height: 6.5rem;
    resize: vertical;
}

.form-group.error .ubt-yes-no-options {
    outline: 2px solid rgba(248, 113, 113, 0.35);
    outline-offset: 4px;
    border-radius: 0.5rem;
}

.form-group.error .ubt-health-disclosure__legal {
    border-color: #f87171;
}

.form-group.error .child-dob-hint,
.form-group.error .ubt-age-group-options {
    outline: 1px solid #dc2626;
    outline-offset: 4px;
    border-radius: 0.5rem;
}

.form-input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    padding: 0.625rem 0.25rem;
    color: #334155;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-bottom-color: var(--ubt-aqua);
    box-shadow: 0 2px 0 -1px rgba(0, 184, 217, 0.35);
}

.form-group.error .form-input {
    border-bottom-color: #f87171;
}

.form-group .error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

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

.form-group.error .error-msg.email-duplicate-error {
    display: none;
}

.form-group .error-msg.email-duplicate-error.is-visible {
    display: block;
}

/* ── Premium glossy dropdowns ── */
.ubt-gloss-select-wrap {
    position: relative;
}

.ubt-gloss-select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--ubt-text-xs);
    color: var(--ubt-aqua-dark);
    pointer-events: none;
    opacity: 0.85;
}

.ubt-gloss-select-wrap--select2::after {
    display: none;
}

.ubt-gloss-select-wrap--select2 .select2-container {
    width: 100% !important;
}

html.lang-ar .ubt-gloss-select-wrap::after {
    right: auto;
    left: 1rem;
}

.ubt-gloss-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    border: 1px solid rgba(0, 184, 217, 0.35);
    border-radius: 0.875rem;
    padding: 0.72rem 2.5rem 0.72rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ubt-blue);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 250, 252, 0.98) 45%, rgba(230, 245, 250, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 184, 217, 0.08),
        0 4px 18px -6px rgba(0, 32, 95, 0.12),
        0 0 0 1px rgba(0, 184, 217, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

html.lang-ar .ubt-gloss-select {
    padding: 0.72rem 1rem 0.72rem 2.5rem;
}

.ubt-gloss-select:hover:not(:disabled) {
    border-color: rgba(0, 184, 217, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 6px 22px -8px rgba(0, 184, 217, 0.35),
        0 0 0 1px rgba(0, 184, 217, 0.12);
}

.ubt-gloss-select:focus {
    outline: none;
    border-color: var(--ubt-aqua);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 3px rgba(0, 184, 217, 0.22),
        0 8px 28px -10px rgba(0, 184, 217, 0.45);
}

.ubt-gloss-select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ubt-camp-select-panel {
    margin-top: 2rem;
    padding: 1.35rem 1.35rem 1.5rem;
    border-radius: 1.125rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 248, 255, 0.92) 100%);
    border: 1px solid rgba(0, 184, 217, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 14px 44px -18px rgba(0, 32, 95, 0.2);
}

.ubt-camp-select-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    color: var(--ubt-blue);
}

.ubt-camp-select-label .ubt-camp-select-title {
    display: inline-block !important;
    margin: 0 !important;
    min-height: 0 !important;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.ubt-camp-select-label i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--ubt-aqua) 0%, var(--ubt-aqua-dark) 100%);
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 184, 217, 0.4);
}

.ubt-camp-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.ubt-price-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Select2 — glossy camp multi-select */
.select2-container--default.ubt-gloss-select2 {
    width: 100% !important;
}

.select2-container--default.ubt-gloss-select2 .select2-selection--multiple {
    position: relative;
    border: 1px solid rgba(0, 184, 217, 0.35) !important;
    border-radius: 0.875rem !important;
    padding: 0.55rem 2.35rem 0.55rem 0.65rem !important;
    min-height: 3.35rem !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 248, 252, 0.95) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 184, 217, 0.06),
        0 4px 20px -8px rgba(0, 32, 95, 0.14) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.select2-container--default.ubt-gloss-select2 .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
}

.select2-container--default.ubt-gloss-select2 .select2-selection--multiple .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding-left: 0.25rem;
}

.select2-container--default.ubt-gloss-select2 .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, var(--ubt-blue) 0%, var(--ubt-aqua-dark) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
    padding: 0.3rem 0.65rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 3px 10px rgba(0, 32, 95, 0.2) !important;
}

.select2-container--default.ubt-gloss-select2 .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 0.35rem !important;
    border-right: none !important;
}

.select2-container--default.ubt-gloss-select2.select2-container--focus .select2-selection--multiple,
.select2-container--default.ubt-gloss-select2.select2-container--open .select2-selection--multiple {
    border-color: var(--ubt-aqua) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 3px rgba(0, 184, 217, 0.2),
        0 10px 32px -12px rgba(0, 184, 217, 0.45) !important;
}

.select2-container--default.ubt-gloss-select2--locked,
.select2-container--default.ubt-gloss-select2--locked .select2-selection--multiple {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.75;
    background: #f1f5f9 !important;
}

.select2-container--default.ubt-gloss-select2:not(.ubt-gloss-select2--single) .select2-selection--multiple::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--ubt-aqua-dark);
    pointer-events: none;
    opacity: 0.9;
}

.select2-container--default.ubt-gloss-select2--single .select2-selection--single {
    border: 1px solid rgba(0, 184, 217, 0.35) !important;
    border-radius: 0.875rem !important;
    min-height: 3.1rem !important;
    height: auto !important;
    padding: 0.35rem 0.25rem !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 248, 252, 0.95) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 184, 217, 0.06),
        0 4px 20px -8px rgba(0, 32, 95, 0.14) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.select2-container--default.ubt-gloss-select2--single .select2-selection__rendered {
    padding: 0.45rem 2rem 0.45rem 0.85rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--ubt-blue) !important;
    line-height: 1.4 !important;
}

html.lang-ar .select2-container--default.ubt-gloss-select2--single .select2-selection__rendered {
    padding: 0.45rem 0.85rem 0.45rem 2rem !important;
}

.select2-container--default.ubt-gloss-select2--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0.65rem !important;
    width: 1.5rem !important;
}

.select2-container--default.ubt-gloss-select2--single .select2-selection__arrow b {
    border-color: var(--ubt-aqua-dark) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-left: -5px !important;
    margin-top: -2px !important;
}

.select2-container--default.ubt-gloss-select2--single.select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent var(--ubt-aqua-dark) transparent !important;
    border-width: 0 5px 6px 5px !important;
}

.select2-container--default.ubt-gloss-select2--single.select2-container--focus .select2-selection--single,
.select2-container--default.ubt-gloss-select2--single.select2-container--open .select2-selection--single {
    border-color: var(--ubt-aqua) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 3px rgba(0, 184, 217, 0.2),
        0 10px 32px -12px rgba(0, 184, 217, 0.45) !important;
}

.ubt-gloss-dropdown {
    border: 1px solid rgba(0, 184, 217, 0.25) !important;
    border-radius: 0.875rem !important;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%) !important;
    box-shadow:
        0 20px 50px -12px rgba(0, 32, 95, 0.22),
        0 0 0 1px rgba(0, 184, 217, 0.08) !important;
    padding: 0.35rem 0 !important;
}

.ubt-gloss-dropdown .select2-search--dropdown {
    padding: 0.65rem 0.75rem 0.45rem !important;
}

.ubt-gloss-dropdown .select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(0, 184, 217, 0.28) !important;
    border-radius: 0.625rem !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500;
    color: var(--ubt-blue);
    background: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0, 32, 95, 0.04);
}

.ubt-gloss-dropdown .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--ubt-aqua) !important;
    box-shadow: 0 0 0 3px rgba(0, 184, 217, 0.15);
}

.ubt-gloss-dropdown .select2-results__options {
    max-height: 16rem;
}

.ubt-camp-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.ubt-camp-option__icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--ubt-aqua-dark);
    font-size: 0.85rem;
    opacity: 0.9;
}

.ubt-camp-option__text {
    line-height: 1.4;
}

.ubt-camp-option--placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.ubt-gloss-dropdown .select2-results__option {
    padding: 0.7rem 1rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ubt-blue);
    border-bottom: 1px solid rgba(0, 184, 217, 0.06);
    transition: background 0.15s ease;
}

.ubt-gloss-dropdown .select2-results__option:last-child {
    border-bottom: none;
}

.ubt-gloss-dropdown .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(90deg, rgba(0, 184, 217, 0.15) 0%, rgba(0, 32, 95, 0.06) 100%) !important;
    color: var(--ubt-blue) !important;
}

.ubt-gloss-dropdown .select2-results__option[aria-selected=true] {
    background: linear-gradient(135deg, var(--ubt-aqua-dark) 0%, var(--ubt-blue) 100%) !important;
    color: #fff !important;
}

/* Legacy Select2 (non-gloss class) — keep compatible */
.select2-container--default .select2-selection--multiple {
    border: 2px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 8px !important;
    min-height: 48px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, var(--ubt-blue) 0%, var(--ubt-aqua-dark) 100%) !important;
    border: none !important;
    color: white !important;
    border-radius: 0.5rem !important;
    padding: 4px 10px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--ubt-aqua) !important;
    box-shadow: 0 0 0 2px rgba(0, 184, 217, 0.2) !important;
}

/* Step indicator — aqua = active, maroon = completed, blue base */
.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--ubt-aqua) 0%, var(--ubt-aqua-dark) 100%);
    color: white;
    border-color: var(--ubt-aqua);
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0, 184, 217, 0.45);
}

.step-item.completed .step-circle {
    background: linear-gradient(135deg, var(--ubt-maroon) 0%, var(--ubt-maroon-dark) 100%);
    color: white;
    border-color: var(--ubt-maroon);
}

.step-item.completed + .step-line,
.step-line.completed {
    background: linear-gradient(90deg, var(--ubt-maroon), var(--ubt-aqua)) !important;
}

/* RTL support */
[dir="rtl"] .fa-arrow-left::before { content: "\f061"; }
[dir="rtl"] .fa-arrow-right::before { content: "\f060"; }

/* Animations */
.wizard-step {
    animation: fadeSlideIn 0.4s ease-out;
}

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

/* ── Kids camp cards: cyan · lime · pink (borderless) ── */
.camp-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.12);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
}

.camp-card:hover {
    transform: translateY(-6px);
}

.camp-card-hero {
    position: relative;
    padding: 0.7rem 0.9rem 2rem;
    color: #fff;
    min-height: 5.5rem;
    overflow: hidden;
}

.camp-card-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.25rem;
}

.camp-card-hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.camp-card-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.camp-card--cyan .camp-card-hero-bg {
    background: linear-gradient(145deg, var(--uq-cyan-light) 0%, var(--uq-cyan) 42%, var(--uq-blue) 100%);
}

.camp-card--lime .camp-card-hero-bg {
    background: linear-gradient(145deg, var(--uq-lime-light) 0%, var(--uq-lime) 45%, var(--uq-lime-dark) 100%);
}

.camp-card--pink .camp-card-hero-bg {
    background: linear-gradient(145deg, var(--uq-pink-light) 0%, var(--uq-pink) 45%, var(--uq-orange) 100%);
}

.camp-card-hero-bg::after {
    content: '';
    position: absolute;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    top: -3rem;
    right: -2rem;
}

.camp-card-number,
.camp-card-emoji,
.camp-card-hero-center,
.camp-card-price {
    position: relative;
    z-index: 1;
}

.camp-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.28);
    margin-bottom: 0.5rem;
}

.camp-card-emoji {
    flex-shrink: 0;
    width: 2.1rem;
    font-size: 2rem;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.camp-card-emoji-spacer {
    flex-shrink: 0;
    width: 2.1rem;
}

.camp-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    width: 100%;
    text-align: center;
    margin: 0;
}

.camp-card-dates {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.92;
}

.camp-card-price {
    position: absolute;
    bottom: 0.45rem;
    right: 0.8rem;
    z-index: 2;
    display: inline-block;
    padding: 0.24rem 0.68rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.22);
}

.camp-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.camp-card-topics-label {
    font-size: var(--ubt-text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

.camp-card--cyan .camp-card-topics-label { color: var(--uq-blue-dark); }
.camp-card--lime .camp-card-topics-label { color: var(--uq-lime-dark); }
.camp-card--pink .camp-card-topics-label { color: var(--uq-pink-dark); }

.camp-topic-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.camp-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    padding: 0.45rem 0.6rem;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.72);
}

.camp-topic-icon {
    font-size: 1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.camp-topic-cn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
    background: #EF4444;
    color: #fff;
    font-size: var(--ubt-text-xs);
    font-weight: 800;
    flex-shrink: 0;
}

/* Select button — no extra borders */
.camp-select-btn {
    display: block;
    margin-top: 1rem;
    cursor: pointer;
    user-select: none;
}

.camp-select-btn-face {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.camp-card--cyan .camp-select-btn-face {
    background: linear-gradient(135deg, var(--uq-cyan-light), var(--uq-blue));
    box-shadow: 0 6px 18px -4px rgba(0, 174, 239, 0.5);
}

.camp-card--lime .camp-select-btn-face {
    background: linear-gradient(135deg, var(--uq-lime-light), var(--uq-lime-dark));
    box-shadow: 0 6px 18px -4px rgba(140, 198, 63, 0.5);
}

.camp-card--pink .camp-select-btn-face {
    background: linear-gradient(135deg, var(--uq-pink-light), var(--uq-pink-dark));
    box-shadow: 0 6px 18px -4px rgba(237, 30, 121, 0.5);
}

.camp-select-btn:hover .camp-select-btn-face {
    transform: scale(1.02);
}

.camp-select-off,
.camp-select-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.camp-select-on { display: none; }

.camp-select-btn:has(.camp-checkbox:checked) .camp-select-off { display: none; }
.camp-select-btn:has(.camp-checkbox:checked) .camp-select-on { display: inline-flex; align-items: center; gap: 0.5rem; }

.camp-card.selected {
    transform: translateY(-8px) scale(1.02);
}

.camp-card--cyan.selected {
    box-shadow: 0 20px 48px -12px rgba(0, 174, 239, 0.42);
}

.camp-card--lime.selected {
    box-shadow: 0 20px 48px -12px rgba(140, 198, 63, 0.42);
}

.camp-card--pink.selected {
    box-shadow: 0 20px 48px -12px rgba(237, 30, 121, 0.42);
}

.camp-card.selected .camp-select-btn-face {
    opacity: 0.95;
}

.child-panel-locked {
    opacity: 0.92;
}
.child-panel-locked .child-field:not([type="hidden"]),
.child-panel-locked .ubt-gloss-select-wrap:not(.ubt-gender-readonly),
.child-panel-locked .ubt-locked-camps-display {
    pointer-events: none;
}
.ubt-gender-readonly input[readonly] {
    opacity: 1;
    color: #334155;
    background: #f8fafc;
    cursor: default;
}
.child-panel-locked .child-tab-btn {
    pointer-events: auto;
}

.ubt-locked-camps-display {
    padding: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(160, 40, 66, 0.06), rgba(0, 32, 95, 0.04));
    border: 1px solid rgba(160, 40, 66, 0.15);
}
.ubt-locked-camp-pill {
    display: inline-block;
    margin: 0.25rem 0.35rem 0.25rem 0;
    opacity: 1;
}

.camp-card--locked {
    opacity: 0.88;
    pointer-events: none;
    position: relative;
}
.camp-card--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}
.camp-card--locked .camp-select-btn-face {
    background: #e2e8f0 !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}
.camp-card--paid-enrolled {
    box-shadow: 0 0 0 2px rgba(160, 40, 66, 0.35);
}
.camp-card--paid-enrolled .camp-select-btn-face .camp-select-off::before {
    content: '🔒 ';
}

.camp-capacity-block {
    margin: 0 0 1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.875rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    border: 1px solid rgba(0, 32, 95, 0.08);
}

.camp-capacity-heading {
    margin: 0 0 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.camp-capacity-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem 0.65rem;
    font-size: 0.78rem;
    color: #334155;
    padding: 0.35rem 0;
}

.camp-capacity-row + .camp-capacity-row {
    border-top: 1px dashed rgba(100, 116, 139, 0.25);
    margin-top: 0.25rem;
    padding-top: 0.55rem;
}

.camp-capacity-label {
    flex: 0 0 auto;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 0.68rem;
}

.camp-capacity-label.bi-text {
    display: inline;
}

.camp-capacity-meter {
    flex: 1 1 2.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #e2e8f0;
    min-width: 2.5rem;
    overflow: hidden;
}

.camp-capacity-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ubt-aqua) 0%, var(--ubt-aqua-dark) 100%);
}

.camp-capacity-row--full .camp-capacity-meter-fill {
    background: linear-gradient(90deg, #f87171 0%, var(--ubt-maroon) 100%);
}

.camp-capacity-full-badge {
    flex: 0 0 auto;
    display: inline-block;
    margin-inline-start: 0;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--ubt-maroon);
}

.camp-capacity-remaining {
    margin-left: 0.25rem;
    color: #0f766e;
    font-weight: 600;
}

.camp-card--capacity-full {
    opacity: 0.82;
}

.camp-card--capacity-full .camp-select-btn-face {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

.child-camp-capacity-hint {
    margin-top: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(0, 184, 217, 0.15);
}

.child-camp-capacity-hint--warning {
    color: #9f1239;
    background: rgba(160, 40, 66, 0.06);
    border-color: rgba(160, 40, 66, 0.2);
}

.step-item .step-circle {
    cursor: pointer;
}
.step-item:not(.active):not(.completed) .step-circle {
    cursor: default;
}

#childTabsNav,
.child-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem;
    scrollbar-width: thin;
}

#stickyNextBar.translate-y-full {
    transform: translateY(100%);
}

/* White logo on blue header (blue PNG → white) */
.ubt-logo-white {
    filter: brightness(0) invert(1);
}

.ubt-nav-logo {
    display: block;
    max-width: min(42vw, 9rem);
    object-fit: contain;
}

.uniquest-nav-logo {
    display: block;
    max-width: min(42vw, 10rem);
    object-fit: contain;
}

.returning-parent-link {
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    transition: opacity 0.2s;
}

.returning-parent-link:hover {
    opacity: 0.85;
}

.returning-parent-cta {
    color: var(--ubt-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.returning-parent-link:hover .returning-parent-cta {
    color: var(--ubt-aqua-dark);
}

.camp-top-banner {
    width: 100%;
}

.camp-top-banner__handbook {
    z-index: 1;
}

@media (min-width: 640px) {
    .camp-top-banner__handbook .ubt-handbook-btn--nav {
        white-space: nowrap;
    }
}

@media (min-width: 768px) {
    .ubt-nav-logo {
        max-width: 14rem;
    }

    .uniquest-nav-logo {
        max-width: 16rem;
    }
}

@media (min-width: 1024px) {
    .ubt-nav-logo {
        max-width: 18rem;
    }

    .uniquest-nav-logo {
        max-width: 20rem;
    }
}

/* EN / AR radio switcher */
.lang-radio-group {
    display: inline-flex;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #fff;
}

.lang-radio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    background: #fff;
    color: var(--ubt-blue);
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
}

.lang-radio-btn.active {
    background: linear-gradient(135deg, var(--ubt-maroon) 0%, #b83250 100%);
    color: #fff;
}

.lang-radio-btn:hover:not(.active) {
    background: rgba(0, 184, 217, 0.12);
    color: var(--ubt-aqua-dark);
}

/* Bilingual text — show ONE language based on EN/AR selection */
.bi-text {
    display: inline-flex;
    flex-direction: column;
}

.bi-text .bi-en,
.bi-text .bi-ar {
    display: block;
    line-height: 1.35;
}

html.lang-en .bi-ar {
    display: none !important;
}

html.lang-ar .bi-en {
    display: none !important;
}

html.lang-ar .bi-text {
    text-align: right;
}

html.lang-en .bi-dual .bi-ar,
html.lang-ar .bi-dual .bi-en {
    display: block !important;
}

.form-label.bi-text {
    display: block !important;
    width: 100%;
    margin-bottom: 0.35rem;
}

/* Wizard — premium summary & payment */
.wizard-summary-shell {
    border: 1px solid #e8edf5;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 40%);
}

.wizard-summary-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--ubt-blue) 0%, #1a4a7a 50%, var(--ubt-aqua-dark) 100%);
    color: #fff;
}

.wizard-reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wizard-summary-grid {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-summary-card {
    border-radius: 1rem;
    border: 1px solid #e8edf5;
    background: #fff;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 24px -8px rgba(0, 32, 95, 0.08);
}

.wizard-summary-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-summary-card.parent h4 { color: var(--ubt-maroon); }
.wizard-summary-card.child h4 { color: var(--ubt-blue); }
.wizard-summary-card.dropoff h4 { color: var(--ubt-aqua-dark); }

.wizard-summary-meta {
    display: grid;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #475569;
}

.wizard-summary-meta strong {
    color: #1e293b;
    font-weight: 600;
}

.wizard-camp-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.35rem;
    border-radius: 0.625rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 0.8125rem;
}

.wizard-total-panel {
    margin-top: 0.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--ubt-blue) 0%, var(--ubt-aqua-dark) 45%, var(--ubt-maroon) 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 40px -12px rgba(0, 184, 217, 0.35);
}

.wizard-total-panel .amount {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0.25rem;
}

.wizard-payment-shell {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 20px 60px -20px rgba(0, 32, 95, 0.18);
}

.wizard-payment-hero {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(160deg, var(--ubt-blue) 0%, #1a4a7a 40%, var(--ubt-aqua-dark) 75%, var(--ubt-maroon) 130%);
    color: #fff;
}

.wizard-payment-icon-ring {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 184, 217, 0.15);
    border: 2px solid rgba(126, 232, 252, 0.5);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(0, 184, 217, 0.3);
}

.wizard-payment-body {
    padding: 2rem 1.75rem 2.25rem;
}

.wizard-payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.wizard-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wizard-status-chip.saved {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.wizard-status-chip.pending {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.wizard-paid-notice {
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(90deg, rgba(160, 40, 66, 0.08), rgba(0, 184, 217, 0.1));
    border: 1px solid rgba(0, 184, 217, 0.25);
    font-size: 0.8125rem;
    color: #475569;
}

/* Tri-color gradient bar utility */
.ubt-gradient-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--ubt-maroon), var(--ubt-aqua), var(--ubt-blue));
    border-radius: 9999px;
}

/* Primary buttons with aqua hover glow */
.btn-ubt-aqua {
    background: linear-gradient(135deg, var(--ubt-aqua) 0%, var(--ubt-aqua-dark) 100%);
    color: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-ubt-aqua:hover {
    box-shadow: 0 6px 20px rgba(0, 184, 217, 0.45);
    transform: translateY(-1px);
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Disclosure agreement — bar on wizard (checkbox outside); full text in modal */
.ubt-disclosure-bar {
    background: #fce7f3;
    border: 1px solid #f9a8d4;
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.ubt-disclosure-bar__actions {
    flex-shrink: 0;
}

.ubt-disclosure-bar__accept {
    width: 100%;
    padding-top: 0.35rem;
}

.ubt-disclosure-bar--checkout {
    align-items: center;
}

.ubt-disclosure-bar--checkout .ubt-disclosure-bar__actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ubt-disclosure-bar--checkout .ubt-disclosure-bar__accept {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ubt-disclosure-bar--checkout .ubt-disclosure-check {
    justify-content: center;
    text-align: center;
}

.ubt-disclosure-bar--checkout .ubt-disclosure-error {
    text-align: center;
}

.ubt-disclosure-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    border: 1.5px solid #b91c1c;
    background: #fff;
    color: #991b1b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.ubt-disclosure-read-btn i {
    font-size: 0.85rem;
}

.ubt-disclosure-read-btn:hover {
    background: #991b1b;
    color: #fff;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.25);
}

.ubt-disclosure-read-btn:focus-visible {
    outline: 2px solid var(--ubt-blue);
    outline-offset: 2px;
}

.ubt-disclosure-panel {
    background: #fce7f3;
    border: 1px solid #f9a8d4;
    border-radius: 0;
    padding: 1.25rem 1.5rem;
}

.ubt-disclosure-panel--document {
    background: #fdf2f8;
}

.ubt-disclosure-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #991b1b;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.ubt-disclosure-check .bi-text {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.ubt-disclosure-check input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--ubt-maroon);
    flex-shrink: 0;
}

.ubt-disclosure-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.ubt-agreement-document .ubt-agreement-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.ubt-agreement-document .ubt-agreement-body {
    color: #b91c1c;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.ubt-agreement-document .ubt-agreement-body + .ubt-agreement-body {
    margin-top: 0.75rem;
}

.ubt-agreement-section + .ubt-agreement-section {
    padding-top: 1rem;
    border-top: 1px dashed #f9a8d4;
}

/* Disclosure modal */
.ubt-disclosure-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ubt-disclosure-modal.hidden {
    display: none !important;
}

.ubt-disclosure-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.ubt-disclosure-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 42rem;
    max-height: min(90vh, 720px);
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ubt-disclosure-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #fce7f3;
    background: #fdf2f8;
}

.ubt-disclosure-modal-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.35rem;
    line-height: 1;
}

.ubt-disclosure-modal-body {
    overflow-y: auto;
    margin: 0;
    border: none;
    border-radius: 0;
}

.ubt-disclosure-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.ubt-disclosure-modal-close-btn {
    padding: 0.55rem 1.35rem;
    border-radius: 0.5rem;
    border: none;
    background: var(--ubt-blue);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ubt-disclosure-modal-close-btn:hover {
    background: var(--ubt-blue-primary, #1a4a7a);
}

.ubt-disclosure-modal-dialog:focus {
    outline: none;
}

#btnSubmit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Payment invoice: structured sections ── */
.invoice-document {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.1);
}

/* Header */
.invoice-header-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #00205F 0%, #1a4a7a 50%, #0097B2 100%);
    border-bottom: 3px solid #A02842;
}

.invoice-header-minimal .invoice-logo-ubt {
    height: 2.75rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.invoice-header-minimal .invoice-logo-uniquest {
    height: 2.5rem;
    width: auto;
}

.invoice-ref {
    padding: 1.25rem 2rem;
    text-align: start;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

/* Invoice body — intro + details (after logo header) */
.invoice-content {
    padding: 0 2rem 1.75rem;
    background: #fff;
}

.invoice-intro {
    padding: 1.75rem 0 1.25rem;
}

.invoice-intro__grid {
    display: grid;
    gap: 1.25rem 2rem;
    align-items: start;
}

@media (min-width: 640px) {
    .invoice-intro__grid {
        grid-template-columns: 1fr auto;
    }
}

.invoice-intro__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ubt-aqua-dark);
}

.invoice-intro__title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    color: #00205F;
}

.invoice-intro__title.bi-text {
    display: block !important;
}

.invoice-intro__subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
}

.invoice-intro__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

@media (min-width: 640px) {
    .invoice-intro__meta {
        align-items: flex-end;
        text-align: end;
        min-width: 14rem;
    }
}

.invoice-intro__number {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #A02842;
    letter-spacing: 0.01em;
    word-break: break-all;
}

.invoice-intro__datetime {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}

.invoice-intro__badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.15rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.invoice-intro__badge--paid {
    color: #A02842;
    background: #fce8ec;
    border: 1px solid #f5d0d8;
}

.invoice-intro__badge--pending {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.invoice-rule {
    margin: 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.invoice-details {
    padding: 1.35rem 0 1.5rem;
}

.invoice-details__grid {
    display: grid;
    gap: 1.5rem 2rem;
}

@media (min-width: 640px) {
    .invoice-details__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .invoice-details__block--end {
        text-align: end;
        justify-self: end;
        max-width: 100%;
    }
}

.invoice-details__label {
    margin: 0 0 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.invoice-details__label.bi-text {
    display: block !important;
}

.invoice-details__name,
.invoice-details__value {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.invoice-details__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
}

.invoice-details__order-no {
    color: #A02842;
    font-weight: 800;
}

.invoice-details__line {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.invoice-details__line.bi-text {
    display: block !important;
}

/* Legacy meta bar (unused) */
.invoice-meta-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    padding: 1.15rem 2rem;
    text-align: start;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.invoice-meta-bar--foot {
    margin-top: 0;
    grid-template-columns: 1fr;
    border-bottom: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: #f8fafc;
}

.invoice-meta-bar__item--wide {
    grid-column: 1 / -1;
}

.invoice-meta-bar__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.invoice-meta-bar__item--primary .invoice-meta-bar__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00205F;
}

.invoice-meta-bar__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.invoice-meta-bar__label.bi-text {
    display: block !important;
}

.invoice-meta-bar__value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
    word-break: break-word;
}

.invoice-meta-bar__item--primary .invoice-meta-bar__value,
.invoice-meta-bar--foot .invoice-meta-bar__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
}

.invoice-meta-bar__status {
    color: #15803d;
}

@media (max-width: 639px) {
    .invoice-meta-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.invoice-sheet {
    padding: 1.5rem 2rem 1.75rem;
    background: #fff;
}

.invoice-content .invoice-table-block {
    margin-top: 0.25rem;
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .invoice-parties {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .invoice-party--bill-to {
        text-align: end;
        justify-self: end;
        max-width: 100%;
    }
}

.invoice-party__label {
    margin: 0 0 0.4rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.invoice-party__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.invoice-party__line {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.invoice-table-block {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.invoice-table-wrap {
    overflow-x: auto;
    border: none;
    border-radius: 0;
}

.invoice-lines {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.invoice-lines col.invoice-lines__col-num { width: 2.5rem; }
.invoice-lines col.invoice-lines__col-child { width: 22%; }
.invoice-lines col.invoice-lines__col-camp { width: 18%; }
.invoice-lines col.invoice-lines__col-period { width: 32%; }
.invoice-lines col.invoice-lines__col-amt { width: 14%; }

.invoice-lines thead th {
    padding: 0.65rem 0.85rem;
    text-align: start;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: bottom;
}

.invoice-lines thead th .bi-en,
.invoice-lines thead th .bi-ar,
.invoice-lines tfoot td .bi-en,
.invoice-lines tfoot td .bi-ar {
    display: block;
    line-height: 1.3;
}

.invoice-lines tbody td {
    padding: 0.7rem 0.85rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.invoice-lines tbody tr:last-child td {
    border-bottom: 1px solid #e2e8f0;
}

.invoice-lines__num {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.invoice-lines__amt-head,
.invoice-lines__amt {
    text-align: end !important;
    white-space: nowrap;
    font-weight: 600;
    color: #0f172a;
}

.invoice-lines__period {
    color: #64748b;
    font-size: 0.78rem;
}

.invoice-lines tfoot td {
    padding: 0.65rem 0.85rem;
    font-weight: 600;
    color: #475569;
    background: #fafbfc;
    text-align: start;
}

.invoice-lines tfoot td.invoice-lines__amt {
    text-align: end !important;
}

.invoice-lines__subtotal td {
    border-top: 1px solid #e2e8f0;
}

.invoice-lines__total td {
    background: #f1f5f9;
    border-top: 2px solid #00205F;
    font-weight: 800;
    color: #00205F;
}

.invoice-lines__total-sar {
    display: block;
    font-size: 1rem;
    color: #A02842;
}

.invoice-lines__total-usd {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.1rem;
}

.invoice-payment-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.invoice-payment-foot__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.invoice-payment-foot__label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.invoice-payment-foot__value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}

.invoice-page-wrap {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.invoice-ref__label {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.invoice-ref__value {
    margin: 0.5rem 0 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 700;
    color: #00205F;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.invoice-ref__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0.85rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.invoice-ref__paid {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #15803d;
}

.invoice-ref__date {
    color: #94a3b8;
}

.invoice-block {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1.15rem;
}

.invoice-block__title {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

/* Legacy header (unused) — kept for compatibility */
.invoice-header {
    display: grid;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, #00205F 0%, #163d6b 48%, #007a94 100%);
    color: #fff;
    border-bottom: 4px solid #A02842;
}

@media (min-width: 768px) {
    .invoice-header {
        grid-template-columns: 1fr auto;
        align-items: start;
        padding: 2rem 2.25rem;
        gap: 2rem;
    }
}

.invoice-header__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 560px) {
    .invoice-header__brand {
        flex-direction: row;
        align-items: center;
    }
}

.invoice-logos {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.invoice-logo-ubt {
    height: 2.35rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.invoice-logo-uniquest {
    height: 2.1rem;
    width: auto;
}

.invoice-org {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.88;
}

.invoice-doc-title {
    margin: 0.2rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .invoice-doc-title {
        font-size: 1.45rem;
    }
}

.invoice-program {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.invoice-header__identity {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .invoice-header__identity {
        align-items: flex-end;
        min-width: 16rem;
    }
}

.invoice-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(160, 40, 66, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.28);
    width: fit-content;
}

.invoice-header__facts {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    width: 100%;
}

@media (min-width: 480px) {
    .invoice-header__facts {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .invoice-header__facts {
        grid-template-columns: 1fr;
        text-align: end;
    }
}

.invoice-header__fact {
    margin: 0;
}

.invoice-header__fact dt {
    margin: 0;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.72;
}

.invoice-header__fact dd {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Body + sections */
.invoice-body {
    padding: 0;
    gap: 0;
    background: #fff;
}

@media (min-width: 768px) {
    .invoice-body {
        padding: 1.5rem 1.75rem 1.75rem;
        gap: 1.5rem;
    }
}

.invoice-section {
    background: #fff;
    border-radius: 0.875rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.invoice-section--core {
    border-left: 4px solid var(--ubt-aqua);
}

.invoice-section__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(90deg, rgba(0, 32, 95, 0.04) 0%, rgba(0, 184, 217, 0.05) 100%);
    border-bottom: 1px solid #e2e8f0;
}

.invoice-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.55rem;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ubt-blue) 0%, var(--ubt-aqua-dark) 100%);
}

.invoice-section__icon--maroon {
    background: linear-gradient(135deg, var(--ubt-maroon) 0%, #c42e4d 100%);
}

.invoice-section__icon--aqua {
    background: linear-gradient(135deg, var(--ubt-aqua-dark) 0%, var(--ubt-aqua) 100%);
}

.invoice-section__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ubt-blue);
    line-height: 1.3;
}

.invoice-section__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.4;
}

.invoice-section__body {
    padding: 1.15rem;
}

.invoice-section__body--stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Key-value grids */
.invoice-kv-grid {
    display: grid;
    gap: 0.85rem 1.25rem;
    margin: 0;
}

.invoice-kv-grid--2 {
    grid-template-columns: 1fr;
}

.invoice-kv-grid--3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .invoice-kv-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .invoice-kv-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.invoice-kv {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.invoice-kv--highlight {
    background: linear-gradient(135deg, rgba(0, 32, 95, 0.04) 0%, rgba(0, 184, 217, 0.08) 100%);
    border-color: rgba(0, 184, 217, 0.2);
}

.invoice-kv--full {
    grid-column: 1 / -1;
}

.invoice-kv dt {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.invoice-kv dd {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.invoice-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
}

.invoice-mono--truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.invoice-amount-primary {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ubt-maroon);
}

.invoice-amount-secondary {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
}

.invoice-status-ok {
    color: #15803d !important;
    font-weight: 700 !important;
}

/* Child enrollment cards */
.invoice-child-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fafbfc;
}

.invoice-child-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, rgba(0, 32, 95, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid #e2e8f0;
}

.invoice-child-card__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ubt-blue);
}

.invoice-child-card__meta {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.invoice-child-card__subtotal {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ubt-maroon);
    white-space: nowrap;
}

.invoice-camp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.invoice-camp-list__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.invoice-camp-list__item:last-child {
    border-bottom: none;
}

.invoice-camp-list__name {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.invoice-camp-list__dates {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.invoice-camp-list__price {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ubt-blue);
    white-space: nowrap;
}

/* Payment summary bar */
.invoice-summary-bar {
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.invoice-summary-bar__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.invoice-summary-bar__row strong {
    color: #0f172a;
    font-weight: 700;
}

.invoice-summary-bar__row--total {
    background: linear-gradient(90deg, rgba(0, 32, 95, 0.05) 0%, rgba(160, 40, 66, 0.06) 100%);
    border-bottom: none;
    padding: 1rem;
}

.invoice-summary-total {
    display: block;
    font-size: 1.2rem;
    color: var(--ubt-maroon);
}

.invoice-summary-usd {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.1rem;
}

.invoice-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.5;
    color: #94a3b8;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

@page {
    size: A4 portrait;
    margin: 10mm 12mm;
}

@media print {
    body.ubt-page-bg {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ubt-header,
    .ubt-footer,
    .no-print {
        display: none !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .invoice-page-wrap {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .invoice-document {
        width: 100% !important;
        max-width: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    .invoice-header-minimal {
        padding: 8mm 10mm !important;
        background: #00205F !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .invoice-content {
        padding: 0 10mm 6mm !important;
    }

    .invoice-intro {
        padding: 6mm 0 4mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .invoice-details {
        padding: 4mm 0 5mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .invoice-intro__badge--paid {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .invoice-meta-bar {
        padding: 5mm 10mm !important;
        break-inside: avoid;
    }

    .invoice-sheet {
        padding: 6mm 10mm !important;
    }

    .invoice-table-block {
        break-inside: auto;
        border-radius: 0 !important;
    }

    .invoice-table-wrap {
        overflow: visible !important;
        break-inside: auto;
    }

    .invoice-lines {
        font-size: 9pt !important;
    }

    .invoice-lines thead {
        display: table-header-group;
    }

    .invoice-lines tfoot {
        display: table-footer-group;
    }

    .invoice-lines tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .invoice-parties {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .invoice-meta-bar--foot {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .invoice-footer {
        padding: 4mm 10mm !important;
        break-inside: avoid;
    }

    .invoice-screen-only {
        display: none !important;
    }
}

/* ── Add Child CTA ── */
.ubt-btn-add-child {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #A02842 0%, #c42e4d 50%, #7c1d2e 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px -6px rgba(160, 40, 66, 0.55);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ubt-btn-add-child:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -8px rgba(160, 40, 66, 0.6);
}

.ubt-btn-add-child:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px -6px rgba(160, 40, 66, 0.35);
}

.ubt-btn-add-child:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px -6px rgba(160, 40, 66, 0.35);
}

.ubt-btn-add-child i {
    font-size: 1rem;
}

.ubt-children-step-header {
    background: linear-gradient(180deg, rgba(0, 32, 95, 0.04) 0%, rgba(0, 184, 217, 0.06) 100%);
}

.child-tabs-shell {
    margin-bottom: 1rem;
    padding: 0.4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 255, 0.95) 100%);
    border: 1px solid rgba(0, 184, 217, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.child-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem 0.5rem 0.5rem;
    border: 1px solid rgba(0, 32, 95, 0.1);
    border-radius: 9999px;
    background: #fff;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 10px -6px rgba(0, 32, 95, 0.15);
}

.child-tab-btn:hover:not(.active) {
    border-color: rgba(0, 184, 217, 0.45);
    color: var(--ubt-blue);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -10px rgba(0, 184, 217, 0.4);
}

.child-tab-btn.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--ubt-blue) 0%, var(--ubt-aqua-dark) 52%, var(--ubt-aqua) 100%);
    box-shadow:
        0 10px 28px -10px rgba(0, 32, 95, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.child-tab-btn--locked.active {
    background: linear-gradient(135deg, #6b1a2c 0%, var(--ubt-maroon) 50%, #c42e4d 100%);
}

.child-tab-btn__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(145deg, #e8f4f8 0%, #dbeafe 100%);
    color: var(--ubt-blue);
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.child-tab-btn.active .child-tab-btn__avatar {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.child-tab-btn__text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 11rem;
}

.child-tab-btn__name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.child-tab-btn__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    opacity: 0.9;
}

.child-tab-btn.active .child-tab-remove {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
    color: #fff;
}

.child-tab-btn.active .child-tab-remove:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* ── Child panel (active tab) ── */
.child-panel {
    border-radius: 1rem;
    transition: background 0.25s, box-shadow 0.25s;
}

.child-panel--active {
    padding: 1.25rem;
    margin: -0.25rem;
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 45%, #fef2f4 100%);
    border: 2px solid rgba(0, 184, 217, 0.35);
    box-shadow:
        0 0 0 4px rgba(0, 184, 217, 0.08),
        0 12px 32px -12px rgba(0, 32, 95, 0.12);
}

.child-panel--active .ubt-camp-select-panel {
    border-color: rgba(0, 184, 217, 0.45);
    box-shadow: 0 4px 16px -8px rgba(0, 184, 217, 0.25);
}

/* ── Child tab remove (X) ── */
.child-tab-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-inline-start: 0.15rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1;
    color: #fff;
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.child-tab-remove:hover {
    background: #b91c1c;
    transform: scale(1.08);
}

.child-tab-remove i {
    font-size: 0.75rem;
    pointer-events: none;
}

/* ── Select2: red remove on chips ── */
.select2-container--default.ubt-gloss-select2 .select2-selection--multiple .select2-selection__choice {
    padding-right: 0.35rem !important;
}

.select2-container--default.ubt-gloss-select2 .select2-selection--multiple .select2-selection__choice__remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-right: 0.4rem !important;
    margin-left: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 9999px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
    background: #dc2626 !important;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.5) !important;
    transition: background 0.15s !important;
}

.select2-container--default.ubt-gloss-select2 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    background: #b91c1c !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.2rem !important;
    height: 1.2rem !important;
    margin-right: 0.35rem !important;
    border-radius: 9999px !important;
    color: #fff !important;
    background: #dc2626 !important;
    font-weight: 700 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #b91c1c !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — all screens (mobile → tablet → desktop → TV)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Global: prevent horizontal scroll, safe areas on notched devices */
.ubt-page-bg {
    overflow-x: clip;
}

.ubt-page-bg main {
    min-width: 0;
}

@supports (padding: max(0px)) {
    .ubt-page-bg {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    #stickyNextBar > div:last-child,
    #attendanceToast {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
}

/* ── Header ── */
.ubt-header-inner {
    min-height: 3.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .ubt-header-inner {
        min-height: 4.5rem;
    }
}

@media (min-width: 768px) {
    .ubt-header-inner {
        min-height: 5.25rem;
    }
}

@media (min-width: 1024px) {
    .ubt-header-inner {
        min-height: 6rem;
    }
}

.lang-radio-btn {
    min-width: 2.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .lang-radio-btn {
        min-width: 2.75rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ── Footer ── */
@media (max-width: 639px) {
    .ubt-footer-main {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .ubt-footer-pill {
        font-size: 0.75rem;
    }

    .ubt-footer-contact-card {
        flex-wrap: wrap;
    }
}

/* ── Hero sections ── */
@media (max-width: 639px) {
    .ubt-hero::before {
        width: 16rem;
        height: 16rem;
    }

    .ubt-hero::after {
        width: 12rem;
        height: 12rem;
    }
}

/* ── Wizard step indicator ── */
.step-indicator-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
}

.step-indicator-shell #stepIndicator {
    gap: 0.15rem;
}

@media (max-width: 639px) {
    .step-item .step-circle {
        width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 0.65rem !important;
    }

    .step-line {
        margin-left: 0.15rem !important;
        margin-right: 0.15rem !important;
        min-width: 0.35rem;
    }
}

.step-indicator-mobile {
    letter-spacing: 0.02em;
}

/* ── Child tabs ── */
.child-tabs-shell {
    position: relative;
}

.child-tabs-shell::before,
.child-tabs-shell::after {
    content: '';
    position: absolute;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 1.25rem;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.child-tabs-shell::before {
    left: 0;
    background: linear-gradient(to right, rgba(240, 249, 255, 0.98), transparent);
}

.child-tabs-shell::after {
    right: 0;
    background: linear-gradient(to left, rgba(240, 249, 255, 0.98), transparent);
}

.child-tabs-shell.is-scrollable::before,
.child-tabs-shell.is-scrollable::after {
    opacity: 1;
}

@media (max-width: 639px) {
    .child-tab-btn {
        padding: 0.45rem 0.7rem 0.45rem 0.45rem;
        font-size: 0.75rem;
    }

    .child-tab-btn__text {
        max-width: 7.5rem;
    }

    .child-tab-btn__avatar {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.65rem;
    }

    .ubt-children-step-header .ubt-children-step-toolbar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .ubt-btn-add-child {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .child-tab-btn__text {
        max-width: 9rem;
    }
}

/* ── Camp cards & capacity ── */
@media (max-width: 479px) {
    .camp-capacity-label {
        font-size: 0.62rem;
    }

    .camp-card-hero {
        padding: 0.6rem 0.75rem 1.75rem;
        min-height: 5rem;
    }

    .camp-card-emoji {
        font-size: 1.65rem;
        width: 1.85rem;
    }
}

/* ── Line items (checkout / summary) ── */
.ubt-line-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    word-break: break-word;
}

.ubt-line-item__label {
    min-width: 0;
}

.ubt-line-item__value {
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .ubt-line-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .ubt-line-item__value {
        text-align: end;
    }
}

/* Mobile-only invoice totals (desktop uses table tfoot) */
.invoice-totals-mobile {
    display: none;
}

/* ── Invoice: mobile card layout ── */
@media (max-width: 639px) {
    .invoice-header-minimal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem 1rem 1.25rem;
    }

    .invoice-header-minimal .invoice-logo-ubt {
        height: 2.25rem;
    }

    .invoice-header-minimal .invoice-logo-uniquest {
        height: 2rem;
    }

    .invoice-content {
        padding: 0 1rem 1.25rem;
    }

    .invoice-intro {
        padding: 1.25rem 0 1rem;
    }

    .invoice-intro__grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .invoice-intro__meta {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .invoice-details__grid {
        gap: 1.25rem;
    }

    .invoice-details__block {
        padding: 0.85rem 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        background: #fafbfc;
    }

    .invoice-details__line {
        word-break: break-word;
    }

    .invoice-details__block--end {
        text-align: start !important;
        justify-self: stretch !important;
    }

    .invoice-table-wrap {
        overflow-x: visible;
    }

    .invoice-lines {
        table-layout: auto;
    }

    .invoice-lines colgroup,
    .invoice-lines thead {
        display: none;
    }

    .invoice-lines tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        background: #fafbfc;
    }

    .invoice-lines tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.35rem 0;
        border-bottom: none;
        text-align: end;
    }

    .invoice-lines tbody td::before {
        content: attr(data-label);
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #94a3b8;
        text-align: start;
        flex-shrink: 0;
    }

    .invoice-lines tbody td.invoice-lines__num::before {
        content: '#';
    }

    .invoice-lines tbody td.invoice-lines__amt {
        font-weight: 700;
        color: #A02842;
    }

    .invoice-lines tfoot {
        display: none !important;
    }

    .invoice-totals-mobile {
        display: block;
        margin-top: 0.35rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        overflow: hidden;
        background: #fff;
    }

    .invoice-totals-mobile__row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        background: #fafbfc;
        border-bottom: 1px solid #e2e8f0;
    }

    .invoice-totals-mobile__row--total {
        background: #f1f5f9;
        border-bottom: none;
        border-top: 2px solid #00205F;
    }

    .invoice-totals-mobile__label {
        font-size: 0.875rem;
        font-weight: 600;
        color: #475569;
        flex: 1;
        min-width: 0;
    }

    .invoice-totals-mobile__row--total .invoice-totals-mobile__label {
        font-weight: 800;
        color: #00205F;
    }

    .invoice-totals-mobile__value {
        flex-shrink: 0;
        text-align: end;
        font-weight: 700;
        color: #0f172a;
        white-space: nowrap;
    }

    .invoice-totals-mobile__sar {
        display: block;
        font-size: 1.05rem;
        font-weight: 800;
        color: #A02842;
    }

    .invoice-totals-mobile__usd {
        display: block;
        font-size: 0.72rem;
        font-weight: 500;
        color: #64748b;
        margin-top: 0.15rem;
    }

    .invoice-details__order-no {
        word-break: break-all;
    }
}

/* ── Attendance: mobile card layout ── */
@media (max-width: 767px) {
    .attendance-table-wrap {
        overflow-x: visible;
        padding: 0.75rem;
    }

    .attendance-table thead {
        display: none;
    }

    .attendance-table tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        padding: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.875rem;
        background: #fafbfc;
        box-shadow: 0 2px 8px -4px rgba(0, 32, 95, 0.08);
    }

    .attendance-table tbody td {
        display: block;
        padding: 0.35rem 0 !important;
        text-align: start !important;
        border: none;
    }

    .attendance-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #94a3b8;
        margin-bottom: 0.2rem;
    }

    .attendance-table tbody td[data-label="Action"] {
        margin-top: 0.65rem;
        padding-top: 0.65rem !important;
        border-top: 1px dashed #e2e8f0;
    }

    .attendance-table tbody td[data-label="Action"]::before {
        margin-bottom: 0.45rem;
    }
}

/* ── Wizard summary cards ── */
@media (max-width: 639px) {
    .wizard-summary-card {
        padding: 1rem !important;
    }

    .wizard-summary-card p {
        word-break: break-word;
    }
}

/* ── Payment / wizard payment step ── */
@media (max-width: 639px) {
    .wizard-payment-shell {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .wizard-payment-hero {
        padding: 1.5rem 1rem !important;
    }

    .wizard-payment-body {
        padding: 1.25rem 1rem !important;
    }
}

/* ── Disclosure modal ── */
@media (max-width: 639px) {
    .ubt-disclosure-modal {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .ubt-disclosure-modal-dialog {
        max-height: min(92vh, 100%);
        border-radius: 1rem 1rem 0 0;
        width: 100%;
    }

    .ubt-disclosure-read-btn {
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
}

/* ── Select2 mobile fixes ── */
@media (max-width: 767px) {
    .select2-container {
        max-width: 100% !important;
    }

    .select2-dropdown {
        max-width: calc(100vw - 2rem) !important;
    }

    .select2-container--default .select2-selection--multiple {
        min-height: 2.75rem;
    }
}

/* ── Failed transaction summary ── */
@media (max-width: 639px) {
    .ubt-page-bg .flex.justify-between.items-start.gap-3,
    .ubt-page-bg .flex.justify-between.items-center.gap-3 {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .ubt-page-bg .flex.justify-between.items-start.gap-3 > span:last-child,
    .ubt-page-bg .flex.justify-between.items-center.gap-3 > span:last-child {
        max-width: 100% !important;
        text-align: start !important;
    }
}

/* ── Large screens / TV (1920px+) — readable line length ── */
@media (min-width: 1920px) {
    .ubt-page-bg main section.max-w-7xl,
    .ubt-page-bg main .max-w-7xl {
        max-width: 90rem;
    }

    .ubt-page-bg main section.max-w-6xl,
    .ubt-page-bg main .max-w-6xl {
        max-width: 72rem;
    }

    .ubt-page-bg main section.max-w-5xl,
    .ubt-page-bg main .max-w-5xl {
        max-width: 64rem;
    }

    .ubt-page-bg main section.max-w-4xl,
    .ubt-page-bg main .max-w-4xl {
        max-width: 56rem;
    }

    .invoice-page-wrap {
        max-width: 56rem;
    }
}

@media (min-width: 2560px) {
    :root {
        --ubt-text-base: 1.0625rem;
        --ubt-text-lg: 1.1875rem;
        --ubt-text-xl: 1.3125rem;
        --ubt-text-2xl: 1.625rem;
        --ubt-text-3xl: 2rem;
    }
}

/* ── Touch targets (44px minimum on mobile) ── */
@media (max-width: 767px) and (pointer: coarse) {
    .form-input,
    .ubt-gloss-select,
    .step-item .step-circle,
    .child-tab-btn,
    .camp-select-btn,
    #btnNext,
    #btnPrev,
    #btnSubmit,
    #btnProceedExisting,
    #btnPaySecurely,
    .mark-btn {
        min-height: 2.75rem;
    }

    .ubt-disclosure-check input[type="checkbox"] {
        width: 1.25rem;
        height: 1.25rem;
    }
}

