@charset "UTF-8";
/* =====================================================================
   सुविशुद्ध बाल संस्कारारोपण शिविर
   Design system derived from the "सुप्रभ उवाच" logo:
     saffron ring  -> primary            #E08A3C
     brown letters -> ink / headings     #4A2410 .. #C08A57
     peacock plume -> accent             #0E7A45 / #1B3FA0 / #E8B53C
     grey disc     -> warm neutral wash  #F4EADC
   ===================================================================== */

:root {
    --saffron:        #e08a3c;
    --saffron-deep:   #c96f22;
    --saffron-light:  #f3b978;
    --saffron-wash:   #fdf1e2;

    --brown-900:      #3d1d0c;
    --brown-700:      #5b2e12;
    --brown-500:      #8f5a2e;
    --brown-300:      #c08a57;

    --peacock:        #0e7a45;
    --peacock-deep:   #0a5c34;
    --peacock-wash:   #eaf5ee;
    --plume-blue:     #1b3fa0;
    --gold:           #e8b53c;

    --cream:          #fdf8f1;
    --sand:           #f4eadc;
    --paper:          #ffffff;
    --line:           #e8d8c2;
    --ink:            #2c1c10;
    --muted:          #7a6552;

    --danger:         #a4231f;
    --danger-wash:    #fdeceb;

    --radius:         16px;
    --radius-sm:      10px;
    --shadow:         0 1px 2px rgba(61, 29, 12, .05), 0 10px 30px -12px rgba(61, 29, 12, .18);
    --shadow-lg:      0 2px 4px rgba(61, 29, 12, .06), 0 24px 60px -20px rgba(61, 29, 12, .28);

    --font-head:      "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
    --font-body:      "Noto Sans Devanagari", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;

    --maxw:           1140px;
}

/* ------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--cream);
    /* A faint saffron glow top-left and peacock tint bottom-right, so the
       page never reads as flat white behind the cards. */
    background-image:
        radial-gradient(1100px 520px at 8% -6%,  rgba(224, 138, 60, .16), transparent 62%),
        radial-gradient(900px 480px at 100% 102%, rgba(14, 122, 69, .10), transparent 60%);
    background-attachment: fixed;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--brown-900);
    line-height: 1.35;
    margin: 0 0 .5em;
    font-weight: 700;
    /* Long unbroken Devanagari compounds - संस्कारारोपण, कार्यक्रम - are wider
       than a 360px phone. Let them break rather than run off the screen. */
    overflow-wrap: break-word;
}

a { color: var(--saffron-deep); }

p { margin: 0 0 1em; }

:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------- ornament helpers */

/* The thin saffron/peacock rule that echoes the ring in the logo. */
.rule-line {
    height: 3px;
    border: 0;
    margin: 0;
    background: linear-gradient(90deg, var(--saffron) 0%, var(--gold) 28%, var(--peacock) 62%, var(--saffron-deep) 100%);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--saffron-deep);
    text-transform: none;
    margin: 0 0 .6rem;
}

/* Small diamond flourish used either side of a section title. */
.section-head { text-align: center; margin-bottom: 2.2rem; }

.section-head h2 {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem);
    margin-bottom: .35rem;
}

.section-head .flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--saffron);
}

.section-head .flourish::before,
.section-head .flourish::after {
    content: "";
    height: 1px;
    width: clamp(40px, 12vw, 110px);
    background: linear-gradient(90deg, transparent, var(--saffron));
}

.section-head .flourish::after { background: linear-gradient(90deg, var(--saffron), transparent); }

.section-head .sub { color: var(--muted); margin: .5rem 0 0; }

/* ------------------------------------------------------------ topbar */

.topbar {
    background: linear-gradient(90deg, var(--brown-900), var(--brown-700) 55%, var(--saffron-deep));
    color: #fdeed9;
    font-size: .82rem;
}

.topbar .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding-block: 7px;
}

.topbar strong { color: #fff; font-weight: 600; }

.topbar a { color: #ffe6c4; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.topbar-right { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .9rem; }

/* --------------------------------------------- language toggle */

.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 230, 196, .4);
    border-radius: 999px;
    overflow: hidden;
    line-height: 1;
}

.lang-switch a {
    padding: .28rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    color: #ffe6c4;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.lang-switch a + a { border-left: 1px solid rgba(255, 230, 196, .4); }

.lang-switch a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }

/* The active language reads as a pressed segment, not a link. */
.lang-switch a.on {
    background: #fff3e2;
    color: var(--brown-900);
    cursor: default;
}

/* ------------------------------------------------------------ header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 248, 241, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.brand img { width: 58px; height: 58px; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-text b {
    font-family: var(--font-head);
    font-size: 1.02rem;
    color: var(--brown-900);
}

.brand-text span { font-size: .74rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .35rem; }

.nav a {
    padding: .45rem .7rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--brown-700);
    text-decoration: none;
}

.nav a:hover { background: var(--saffron-wash); color: var(--saffron-deep); }

.nav .btn { margin-left: .4rem; }

/* ------------------------------------------------------------ buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1.4rem;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-deep) 100%);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(201, 111, 34, .75);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(201, 111, 34, .8); }

.btn-ghost {
    background: transparent;
    color: var(--brown-700);
    border: 1.5px solid var(--line);
}

.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron-deep); background: var(--saffron-wash); }

.btn-lg { padding: .9rem 1.9rem; font-size: 1.02rem; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* -------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding-block: clamp(2.2rem, 1rem + 4vw, 4.2rem); }

/* Faint concentric rings behind the hero, echoing the logo's disc. */
.hero::before {
    content: "";
    position: absolute;
    top: -28%;
    right: -14%;
    width: min(760px, 85vw);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(224, 138, 60, .18);
    box-shadow: inset 0 0 0 22px rgba(224, 138, 60, .06), 0 0 0 44px rgba(14, 122, 69, .05);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.5rem, 4vw, 3.2rem);
    align-items: center;
}

/* Grid items default to min-width:auto, so a single long word can push a
   column wider than its track - and .hero clips the overflow, silently cutting
   the heading off on a phone. This is the fix for that. */
.hero .wrap > * { min-width: 0; }

.hero h1 {
    font-size: clamp(1.5rem, .95rem + 2.9vw, 3.2rem);
    margin: .1rem 0 .35rem;
    background: linear-gradient(100deg, var(--brown-900) 12%, var(--brown-500) 52%, var(--saffron-deep) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lede {
    font-family: var(--font-head);
    font-size: clamp(1rem, .92rem + .45vw, 1.2rem);
    color: var(--brown-700);
    margin-bottom: 1.1rem;
}

.hero .kicker {
    display: inline-block;
    background: var(--peacock-wash);
    color: var(--peacock-deep);
    border: 1px solid rgba(14, 122, 69, .25);
    border-radius: 999px;
    padding: .18rem .8rem;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: .9rem;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .42rem .95rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--brown-700);
    box-shadow: 0 1px 2px rgba(61, 29, 12, .05);
}

.chip svg { width: 16px; height: 16px; flex: none; color: var(--saffron-deep); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

/* --- the framed portrait, built to mirror the logo's saffron ring --- */

.portrait { position: relative; justify-self: center; width: min(360px, 78vw); }

.portrait-ring {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 10px;
    background: conic-gradient(from 210deg, var(--saffron) 0deg, var(--gold) 90deg, var(--saffron-light) 165deg, var(--saffron-deep) 260deg, var(--saffron) 360deg);
    box-shadow: var(--shadow-lg);
}

.portrait-ring::after {
    /* the inner grey disc of the logo */
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .9);
    pointer-events: none;
}

.portrait-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    background: var(--sand);
}

.portrait-caption {
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-head);
    font-size: .98rem;
    color: var(--brown-900);
    line-height: 1.5;
}

.portrait-caption small { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--muted); }

/* A peacock plume tucked behind the ring, as in the logo. */
.plume {
    position: absolute;
    right: -18px;
    top: -26px;
    width: 96px;
    opacity: .9;
    pointer-events: none;
    z-index: -1;
}

/* ---------------------------------------------------------- sections */

.section { padding-block: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); }

.section-alt { background: var(--sand); border-block: 1px solid var(--line); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ------------------------------------------------------ facts strip */

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.fact {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--saffron);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow);
}

.fact dt { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

.fact dd {
    margin: .25rem 0 0;
    font-family: var(--font-head);
    font-size: 1.06rem;
    color: var(--brown-900);
    line-height: 1.45;
}

/* ----------------------------------------------------- सानिध्य panel */

.sanidhya {
    background: linear-gradient(135deg, var(--brown-900), var(--brown-700) 60%, #7a3f18);
    color: #fdf1e0;
    border-radius: var(--radius);
    padding: clamp(1.6rem, 1rem + 2.4vw, 2.8rem);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.sanidhya::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(243, 185, 120, .35);
    border-radius: calc(var(--radius) - 6px);
    pointer-events: none;
}

.sanidhya h2 { color: #ffd9a8; text-align: center; margin-bottom: 1.6rem; font-size: 1.6rem; }

.sanidhya h2 .star { color: var(--gold); }

.sanidhya ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }

.sanidhya li {
    display: flex;
    gap: .8rem;
    align-items: baseline;
    justify-content: center;
    text-align: center;
    font-family: var(--font-head);
    font-size: clamp(1rem, .92rem + .5vw, 1.24rem);
    line-height: 1.5;
}

.sanidhya li::before { content: "✦"; color: var(--gold); font-size: .85em; }

/* ------------------------------------------------------ group cards */

.group-card { padding: 1.5rem 1.4rem; text-align: center; position: relative; overflow: hidden; }

.group-card .age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px; height: 66px;
    border-radius: 50%;
    margin-bottom: .9rem;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(140deg, var(--saffron), var(--saffron-deep));
    box-shadow: 0 10px 22px -10px rgba(201, 111, 34, .8);
}

.group-card:nth-child(2) .age-badge { background: linear-gradient(140deg, #2aa06a, var(--peacock-deep)); box-shadow: 0 10px 22px -10px rgba(10, 92, 52, .8); }
.group-card:nth-child(3) .age-badge { background: linear-gradient(140deg, #4f74d8, var(--plume-blue)); box-shadow: 0 10px 22px -10px rgba(27, 63, 160, .8); }

.group-card h3 { font-size: 1.18rem; margin-bottom: .2rem; }

.group-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* --------------------------------------------------- daily schedule */

.sched { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }

.sched-card { overflow: hidden; }

.sched-card > header {
    background: linear-gradient(135deg, var(--brown-700), var(--saffron-deep));
    color: #fff;
    padding: .85rem 1.2rem;
}

.sched-card > header h3 { color: #fff; margin: 0; font-size: 1.12rem; }

.sched-card > header span { font-size: .78rem; opacity: .85; }

.sched-card ol { list-style: none; margin: 0; padding: .6rem 1.2rem 1.1rem; }

.sched-card li {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: .8rem;
    padding: .62rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: .93rem;
    align-items: baseline;
}

.sched-card li:last-child { border-bottom: 0; }

.sched-card .t {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--saffron-deep);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sched-note {
    margin-top: 1.3rem;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}

/* ------------------------------------------------------- rules list */

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: rule; }

.rule-item {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.rule-item::before {
    counter-increment: rule;
    content: counter(rule, decimal);
    flex: none;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--saffron-wash);
    color: var(--saffron-deep);
    border: 1.5px solid rgba(224, 138, 60, .4);
    font-family: var(--font-head);
    font-weight: 700;
}

.rule-item h3 { font-size: 1.02rem; margin: 0 0 .2rem; }

.rule-item p { margin: 0; font-size: .92rem; color: #4b382a; }

.notes {
    margin-top: 1.4rem;
    background: var(--peacock-wash);
    border: 1px solid rgba(14, 122, 69, .28);
    border-left: 4px solid var(--peacock);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
}

.notes ul { margin: 0; padding-left: 1.1rem; }
.notes li { margin-bottom: .4rem; font-size: .93rem; color: #274c39; }
.notes li:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- form */

.form-shell {
    max-width: 880px;
    margin-inline: auto;
    padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem 1.2rem; }

.field { display: flex; flex-direction: column; gap: .32rem; min-width: 0; }

.field.full { grid-column: 1 / -1; }

.field label { font-size: .9rem; font-weight: 700; color: var(--brown-700); }

.field .req { color: var(--danger); }

.field .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field input[type="file"],
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem .85rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field textarea { resize: vertical; min-height: 88px; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    background: #fff;
    border-color: var(--saffron);
    box-shadow: 0 0 0 4px rgba(224, 138, 60, .18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
    background: var(--danger-wash);
}

.field .err { font-size: .8rem; color: var(--danger); font-weight: 600; }

.field input[type="file"] { padding: .55rem .6rem; background: #fff; }

/* radio / checkbox pills */

.pills { display: flex; flex-wrap: wrap; gap: .6rem; }

.pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    cursor: pointer;
    font-weight: 600;
    font-size: .94rem;
    transition: all .15s ease;
}

.pill input { position: absolute; opacity: 0; pointer-events: none; }

.pill:hover { border-color: var(--saffron-light); }

.pill:has(input:checked) {
    background: var(--saffron-wash);
    border-color: var(--saffron);
    color: var(--saffron-deep);
    box-shadow: 0 0 0 3px rgba(224, 138, 60, .15);
}

.pill:has(input:focus-visible) { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* The derived group read-out under the age field. */
.group-readout {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--peacock-wash);
    border: 1px dashed rgba(14, 122, 69, .4);
    font-size: .92rem;
    color: var(--peacock-deep);
}

.group-readout b { font-family: var(--font-head); }

.group-readout[data-state="none"] { background: var(--danger-wash); border-color: rgba(164, 35, 31, .4); color: var(--danger); }

.consent {
    grid-column: 1 / -1;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: var(--saffron-wash);
    border: 1px solid rgba(224, 138, 60, .35);
    border-radius: var(--radius-sm);
    font-size: .92rem;
}

.consent input { margin-top: .35rem; width: 18px; height: 18px; accent-color: var(--saffron-deep); flex: none; }

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: .4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.form-actions .note { font-size: .84rem; color: var(--muted); margin: 0; }

/* honeypot - never shown, never announced */
.hp { position: absolute !important; left: -9999px !important; }

/* ------------------------------- form assurance chips + urgency */

.form-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 1rem;
}

.chip-urgent {
    background: #fff3e0;
    border-color: var(--saffron);
    color: var(--saffron-deep);
    font-weight: 700;
}

.chip-urgent svg { color: var(--saffron-deep); }

/* ----------------------------------------------- repeat CTA band */

.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 1.6rem;
    padding: 1.5rem 1.8rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brown-900), var(--brown-700) 62%, var(--saffron-deep));
    color: #fdf1e0;
    box-shadow: var(--shadow-lg);
}

.cta-band h3 { color: #ffd9a8; margin: 0 0 .2rem; font-size: 1.25rem; }

.cta-band p { margin: 0; font-size: .92rem; opacity: .9; }

/* --------------------------------------------- sticky phone CTA */

.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: none;                       /* shown at phone width only */
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(253, 248, 241, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px -12px rgba(61, 29, 12, .5);
}

.sticky-cta > div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sticky-cta strong { font-family: var(--font-head); font-size: .92rem; color: var(--brown-900); }
.sticky-cta span { font-size: .74rem; color: var(--muted); }
.sticky-cta .btn { flex: none; padding: .6rem 1.2rem; }

@media (max-width: 720px) {
    .sticky-cta:not([hidden]) { display: flex; }
    /* Keep the footer clear of the bar. */
    body:has(.sticky-cta:not([hidden])) .site-footer { padding-bottom: 5.5rem; }
}

/* ------------------------------------------------------------ alerts */

.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    font-size: .94rem;
    border: 1px solid;
}

.alert-error { background: var(--danger-wash); border-color: rgba(164, 35, 31, .3); color: #7d1b18; }

.alert-error ul { margin: .4rem 0 0; padding-left: 1.2rem; }

.alert-warn { background: #fff7e6; border-color: rgba(232, 181, 60, .5); color: #7a5a12; }

/* ------------------------------------------------------ success panel */

.success {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
    padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}

.success .tick {
    width: 78px; height: 78px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #2aa06a, var(--peacock-deep));
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(10, 92, 52, .85);
}

.success .tick svg { width: 38px; height: 38px; }

.success .ref {
    display: inline-block;
    margin: .6rem 0 1.2rem;
    padding: .55rem 1.4rem;
    border-radius: 999px;
    background: var(--saffron-wash);
    border: 1.5px dashed var(--saffron);
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--brown-900);
}

.success ul { text-align: right; display: inline-block; margin: 0 0 1.4rem; padding-right: 1.2rem; }

.success li { margin-bottom: .35rem; font-size: .94rem; }

/* ------------------------------------------------------------ footer */

.site-footer {
    background: linear-gradient(135deg, var(--brown-900), #4e2712);
    color: #e9d6be;
    padding-block: 2.6rem 1.4rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.site-footer h4 { color: #ffd9a8; font-size: 1.02rem; margin-bottom: .6rem; }

.site-footer a { color: #ffd9a8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; font-size: .92rem; }

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: .8rem; }
.footer-logo img { width: 62px; height: 62px; object-fit: contain; background: #fff6e9; border-radius: 50%; padding: 5px; }

.motto {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.05rem;
    margin: 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(243, 185, 120, .25);
    text-align: center;
    text-wrap: balance;
    font-size: .86rem;
    line-height: 1.7;
    color: #e2c9a6;
}

/* ------------------------------------------------------- responsive */

@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: minmax(0, 1fr); }
    .portrait { order: -1; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sched { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .grid-3, .grid-2, .rules { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .nav a:not(.btn) { display: none; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .success ul { text-align: right; }
}

@media (max-width: 460px) {
    .wrap { padding-inline: 16px; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .sched-card li { grid-template-columns: 88px minmax(0, 1fr); gap: .6rem; font-size: .89rem; }
    .brand img { width: 46px; height: 46px; }
    .brand-text b { font-size: .92rem; }
    .hero-cta .btn { width: 100%; }

    /* The eyebrow is written with a <br> for the desktop two-line look; on a
       phone that forced break makes the line too long, so let it flow. */
    .eyebrow br { display: none; }

    .chip { font-size: .82rem; padding-inline: .8rem; }

    .cta-band { padding: 1.2rem 1.2rem; }
    .cta-band .btn { width: 100%; }

    .sanidhya li { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------- printing */

@media print {
    .topbar, .site-header, .hero-cta, #register, .site-footer { display: none !important; }
    body { background: #fff; }
    .card, .fact { box-shadow: none; }
}

/* Guidance line under the two signature uploads. */
.sign-help {
    grid-column: 1 / -1;
    margin: -.2rem 0 0;
    padding: .7rem .95rem;
    border-radius: var(--radius-sm);
    background: var(--peacock-wash);
    border: 1px dashed rgba(14, 122, 69, .35);
    font-size: .86rem;
    color: var(--peacock-deep);
}
