/* =====================================================================
   Hiranandani Contest LP — contest.css
   Theme sourced from the real House of Hiranandani design system
   (hiranandani-maitri-park · colors_and_type.css + components).
   GOLD-FORWARD: warm ivory/bone/paper surfaces, brass-gold as the lead
   accent (eyebrows, hairlines, solid-gold buttons, gilded details);
   deep charcoal reserved sparingly for imagery & footer.
   Same layout as the original; restyled to the authentic brand palette.
   (Placeholder content; swap copy/links/images where marked.)
===================================================================== */

/* ---------- Brand font: Zona Pro ---------- */
@font-face {
    font-family: "Zona Pro";
    src: url("../fonts/ZonaPro/zonapro-light.ttf") format("truetype");
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Zona Pro";
    src: url("../fonts/ZonaPro/zonapro-regular.ttf") format("truetype");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Zona Pro";
    src: url("../fonts/ZonaPro/zonapro-semibold.ttf") format("truetype");
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Zona Pro";
    src: url("../fonts/ZonaPro/zonapro-bold.ttf") format("truetype");
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Zona Pro";
    src: url("../fonts/ZonaPro/zonapro-black.ttf") format("truetype");
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Design tokens — House of Hiranandani ---------- */
:root {
    /* Foundation — warm paper, never pure white */
    --bg-ivory:        #F6F1E7;
    --bg-bone:         #ECE5D5;
    --bg-paper:        #FBF8F1;
    --bg-forest:       #1F3D2F;   /* brand secondary dark (used sparingly) */
    --bg-forest-deep:  #16291F;
    --bg-charcoal:     #1C1A16;   /* warm near-black for imagery & footer */

    /* Ink */
    --fg1:             #1C1A16;
    --fg2:             #4A4439;
    --fg3:             #7A7363;
    --fg-muted:        #A89E89;
    --fg-on-dark:      #F6F1E7;
    --fg-on-dark-2:    #C6BEA9;

    /* Gilded accents — the lead colour */
    --brass:           #A8884B;
    --brass-hover:     #8E7036;
    --brass-soft:      #D8C58F;
    --champagne:       #EFE2C6;   /* pale gold tint for soft fills */
    --terracotta:      #9C5A3C;
    --brass-grad:      linear-gradient(135deg, #E2D2A2 0%, #A8884B 60%, #8E7036 100%);

    /* Lines */
    --line-soft:       #DCD3BD;
    --line-on-dark:    rgba(246, 241, 231, 0.18);

    /* Typography */
    --ff-display: "Zona Pro", "Helvetica Neue", system-ui, sans-serif;
    --ff-sans:    "Zona Pro", "Helvetica Neue", system-ui, sans-serif;
    --ls-eyebrow: 0.18em;
    --ls-button:  0.08em;
    --ls-display: -0.02em;

    /* Elevation / motion */
    --shadow-paper: 0 1px 2px rgba(28,26,22,.04), 0 4px 16px rgba(28,26,22,.06);
    --shadow-rise:  0 12px 40px rgba(28,26,22,.10);
    --shadow-deep:  0 24px 64px rgba(28,26,22,.16);
    --shadow-gold:  0 14px 34px rgba(168,136,75,.28);
    --ease-gentle:  cubic-bezier(0.4, 0, 0.2, 1);
    --ease-luxury:  cubic-bezier(0.16, 1, 0.3, 1);
    --dur-base:     320ms;
    --dur-slow:     600ms;
    --dur-luxury:   900ms;

    --maxw: 1760px;
    --radius: 2px;
    --radius-lg: 8px;

    /* legacy aliases (kept so existing markup still resolves) */
    --display: var(--ff-display);
    --body:    var(--ff-sans);
    --pink:        var(--bg-bone);
    --pink-soft:   var(--bg-paper);
    --brown:       var(--fg1);
    --brown-soft:  var(--fg2);
    --lime:        var(--brass);
    --lime-dark:   var(--brass-hover);
    --cream:       var(--bg-ivory);
    --white:       var(--bg-paper);
    --shadow:      var(--shadow-deep);
    --ease:        var(--ease-luxury);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ff-sans);
    color: var(--fg1);
    background: var(--bg-ivory);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--brass); color: var(--bg-paper); }

[hidden] { display: none !important; }

/* =====================================================================
   SITE HEADER
===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(246, 241, 231, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand {
    justify-self: start;
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}
.brand img { height: clamp(38px, 4vw, 48px); width: auto; display: block; }
.brand-mark {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: var(--fg1);
}
.brand-sub {
    margin-top: 4px;
    font-size: 0.6rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--brass);
}
.main-nav {
    justify-self: end;
    display: flex;
    gap: clamp(18px, 2.4vw, 36px);
}
.main-nav a {
    position: relative;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg2);
    text-decoration: none;
    padding: 6px 0;
    transition: color var(--dur-base) var(--ease-gentle);
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--brass);
    transition: width var(--dur-base) var(--ease-luxury);
}
.main-nav a:hover { color: var(--fg1); }
.main-nav a:hover::after { width: 100%; }
.header-cta { justify-self: end; }

/* hamburger button (mobile only) */
.nav-toggle {
    display: none;
    justify-self: end;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--fg1);
    border-radius: 2px;
    transition: transform var(--dur-base) var(--ease-gentle), opacity var(--dur-base) var(--ease-gentle);
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* custom site container (replaces Bootstrap container/container-fluid) */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 64px);
}

/* ---------- Display headings ---------- */
.display {
    font-family: var(--ff-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: var(--ls-display);
    color: var(--fg1);
    margin: 0;
}

/* gilded, widely-tracked eyebrow with brass hairline rule */
.eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    font-size: 12px;
    color: var(--brass);
    margin: 0 0 18px;
}
.eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--brass);
}

/* =====================================================================
   1. BANNER / HERO
===================================================================== */
/* accessible, visually hidden (keeps an h1 for SEO without showing text) */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.banner {
    position: relative;
    padding: 0;                       /* full-bleed hero */
    background: var(--bg-charcoal);
    overflow: hidden;
}
.banner-stage {
    position: relative;
    width: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-bone) 0%, var(--champagne) 55%, var(--brass-soft) 100%);
    min-height: clamp(280px, 46vw, 760px);   /* hero height */
    display: grid;
    place-items: center;
}
.banner-stage img,
.banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* show desktop video by default, swap to mobile video on small screens */
.banner-video--mob { display: none; }
@media (max-width: 768px) {
    .banner-video--web { display: none; }
    /* let the portrait mobile video set its own full height (no crop) */
    .banner-stage { min-height: 0; }
    .banner-video--mob {
        display: block;
        position: static;
        width: 100%;
        height: auto;
    }
}
.banner-stage .placeholder-note {
    position: relative;
    text-align: center;
    color: var(--brass-hover);
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    font-size: 0.78rem;
    opacity: 0.9;
}

/* =====================================================================
   2. CONTEST RULES & STEPS
===================================================================== */
.rules {
    background: var(--bg-paper);
    padding: clamp(48px, 6vw, 80px) 0;
}
.rules-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: clamp(340px, 42vw, 500px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-rise);
}
/* left media / tutorial video */
.rules-media {
    position: relative;
    background: linear-gradient(135deg, var(--bg-charcoal), #2A271F);
    overflow: hidden;
    min-height: 300px;
}
.rules-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 38%, rgba(168,136,75,0.28), transparent 58%);
    z-index: 1;
    pointer-events: none;
}
.rules-media img,
.rules-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform var(--dur-luxury) var(--ease-luxury);
}
.rules-media:hover img,
.rules-media:hover .rules-video { transform: scale(1.06); }
.video-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(28,26,22,0.92) 55%);
    color: var(--fg-on-dark);
    padding: 30px 28px 22px;
    font-weight: 600;
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-gentle);
}
.video-tag:hover { color: var(--brass-soft); }
.video-tag .play {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brass-grad);
    color: var(--bg-paper);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    flex: none;
    box-shadow: var(--shadow-gold);
    transition: transform var(--dur-base) var(--ease-luxury), box-shadow var(--dur-base) var(--ease-luxury);
}
.video-tag:hover .play {
    transform: scale(1.12);
    box-shadow: 0 10px 30px rgba(168,136,75,0.55);
}
/* right text panel */
.rules-body {
    padding: clamp(40px, 5vw, 76px) clamp(28px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-ivory);
}
.rules-body .display {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    margin-bottom: 30px;
}
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 30px;
    counter-reset: step;
}
.steps li {
    position: relative;
    padding-left: 58px;
    counter-increment: step;
    font-size: 1rem;
    color: var(--fg2);
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -3px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brass);
    color: var(--bg-paper);
    border: 1px solid var(--brass-hover);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1rem;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-gold);
    transition: transform var(--dur-base) var(--ease-luxury), background var(--dur-base) var(--ease-gentle);
}
.steps li:hover::before {
    background: var(--brass-hover);
    transform: translateY(-2px) scale(1.06);
}
/* Instagram link inside a step */
.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--brass-hover);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-base) var(--ease-gentle), color var(--dur-base) var(--ease-gentle);
}
.ig-link svg { width: 18px; height: 18px; }
.ig-link:hover { color: var(--fg1); border-bottom-color: var(--brass); }
/* hashtag callout inside a step */
.step-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(168, 136, 75, 0.14);
    border: 1px solid var(--brass);
    color: var(--brass-hover);
    font-weight: 600;
    font-size: 0.86em;
}
/* "go to form" link inside a step */
.step-link {
    font-weight: 700;
    color: var(--brass-hover);
    text-decoration: none;
    border-bottom: 1px solid var(--brass);
    transition: color var(--dur-base) var(--ease-gentle);
}
.step-link:hover { color: var(--fg1); }

/* =====================================================================
   3. CONTEST ESSENTIALS  (light + gold, NOT a forest section)
===================================================================== */
.essentials {
    position: relative;
    background:
        radial-gradient(130% 100% at 100% 0%, rgba(168,136,75,0.12), transparent 55%),
        var(--bg-bone);
    padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 104px);
    color: var(--fg1);
}
.essentials-head {
    margin-bottom: clamp(28px, 4vw, 48px);
}
.essentials-map .map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    aspect-ratio: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--brass);
    box-shadow: var(--shadow-paper);
}
.essentials-map .map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 640px) {
    .essentials-map .map-frame { aspect-ratio: 4 / 3; min-height: 0; }
}
.essentials-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: stretch;
}
.essentials .display {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    color: var(--fg1);
}
.essentials-list {
    display: grid;
    grid-auto-rows: max-content;
    align-content: space-between;
    gap: 18px;
    height: 100%;
}
.ess-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-paper);
    border-radius: var(--radius-lg);
    padding: 20px 26px;
    text-decoration: none;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-paper);
    overflow: hidden;
    transition: transform var(--dur-base) var(--ease-luxury), box-shadow var(--dur-base) var(--ease-luxury), border-color var(--dur-base) var(--ease-gentle);
}
/* gilded sheen sweep on hover */
.ess-card::before {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(216,197,143,0.55), transparent);
    transform: skewX(-18deg);
    transition: left var(--dur-slow) var(--ease-luxury);
}
.ess-card:hover::before { left: 130%; }
.ess-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-rise);
    border-color: var(--brass);
}
.ess-ico {
    flex: none;
    width: 66px;
    height: 66px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--champagne), var(--brass-soft));
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--brass);
}
.ess-ico svg { width: 64px; height: 64px; display: block; }
.ess-text strong {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--fg1);
    letter-spacing: var(--ls-display);
}
.ess-text span {
    font-size: 0.86rem;
    color: var(--fg3);
}
.ess-card .arrow {
    margin-left: auto;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brass);
    transition: transform var(--dur-base) var(--ease-luxury), color var(--dur-base) var(--ease-gentle);
}
.ess-card:hover .arrow { transform: translateX(6px); color: var(--brass-hover); }

/* =====================================================================
   4. SOCIAL MEDIA LINKS
===================================================================== */
.social {
    background: var(--bg-ivory);
    padding: clamp(64px, 8vw, 104px) 0;
    text-align: center;
}
.social .display {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    margin-bottom: clamp(40px, 5vw, 60px);
}
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.social-card {
    position: relative;
    background: var(--bg-paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-paper);
    border: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-base) var(--ease-luxury), box-shadow var(--dur-base) var(--ease-luxury), border-color var(--dur-base) var(--ease-gentle);
}
.social-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-rise);
    border-color: var(--brass);
}
.social-card .thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg-bone) 0%, var(--brass-soft) 100%);
    overflow: hidden;
    position: relative;
}
.social-card .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(168,136,75,0.20), transparent 60%);
}
.social-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-luxury);
}
.social-card:hover .thumb img { transform: scale(1.07); }
.social-card .card-foot {
    padding: 24px;
    display: flex;
    justify-content: center;
}

/* ---------- buttons (solid gold — brand primary) ---------- */
.btn-brown,
.btn-send {
    font-family: var(--ff-sans);
    font-weight: 600;
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
    font-size: 0.76rem;
    background: var(--brass);
    color: var(--bg-paper);
    border: 1px solid var(--brass);
    border-radius: var(--radius);
    padding: 14px 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background var(--dur-base) var(--ease-gentle), border-color var(--dur-base) var(--ease-gentle), box-shadow var(--dur-base) var(--ease-gentle), transform var(--dur-base) var(--ease-luxury);
}
.btn-brown:hover,
.btn-send:hover {
    background: var(--brass-hover);
    border-color: var(--brass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* =====================================================================
   5. SUBMISSION FORM  (light + gold)
===================================================================== */
.submission {
    position: relative;
    background:
        radial-gradient(130% 90% at 0% 100%, rgba(168,136,75,0.14), transparent 55%),
        var(--bg-bone);
    padding: clamp(56px, 7vw, 96px) 0 clamp(70px, 9vw, 110px);
    color: var(--fg1);
}
/* centered intro header */
.submission-head {
    max-width: 640px;
    margin: 0 auto clamp(34px, 4vw, 48px);
    text-align: center;
}
.submission-head .eyebrow { justify-content: center; }
.submission-head .display {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    margin-bottom: 16px;
    color: var(--fg1);
}
.submission-head p.lead {
    font-size: 1.05rem;
    color: var(--fg2);
    margin: 0 auto;
    max-width: 52ch;
}

/* prizes */
.prizes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 720px;
    margin: clamp(28px, 3.5vw, 40px) auto 0;
    text-align: left;
}
.prize-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-paper);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-paper);
}
.prize-card--grand {
    background: linear-gradient(135deg, var(--champagne), var(--brass-soft));
    border-color: var(--brass);
}
.prize-medal { font-size: 1.6rem; line-height: 1; }
.prize-amount {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    letter-spacing: var(--ls-display);
    color: var(--fg1);
}
.prize-label {
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brass-hover);
}

/* public-profile note banner */
.form-note-banner {
    max-width: 720px;
    margin: 22px auto 0;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    background: rgba(168, 136, 75, 0.12);
    border: 1px solid var(--brass);
    color: var(--fg1);
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
}
.form-note-banner strong { color: var(--brass-hover); }

/* form card — wide & centered */
.form-card {
    background: var(--bg-paper);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 56px);
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--line-soft);
    max-width: 860px;
    margin-inline: auto;
}

/* grouped sections */
.form-section + .form-section,
.form-foot {
    margin-top: clamp(28px, 3.5vw, 40px);
    padding-top: clamp(28px, 3.5vw, 40px);
    border-top: 1px solid var(--line-soft);
}
.form-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.sec-num {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brass);
    color: var(--bg-paper);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 0.9rem;
    display: grid;
    place-items: center;
}
.sec-title {
    margin: 0;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: var(--ls-display);
    color: var(--fg1);
}
.hashtag-note {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--fg3);
    line-height: 1.5;
}

/* footer row: agreement + submit */
.form-foot .field { margin-bottom: 22px; }

/* custom 2-column form grid (col-6 style) — shortens the form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 26px;
    align-items: start;            /* align paired fields to the top */
}
.form-grid .field,
.form-grid > .btn-send { grid-column: 1 / -1; }   /* full width by default */
.form-grid .col-6 { grid-column: span 1; }          /* half width */
.form-grid .field { margin-bottom: 0; }             /* spacing handled by row-gap */

/* small inline note inside a label (keeps the label a single line) */
.label-note {
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--fg3);
}

.field { margin-bottom: 22px; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: var(--ls-button);
    margin-bottom: 9px;
    color: var(--fg2);
}
.field input,
.field textarea {
    width: 100%;
    font-family: var(--ff-sans);
    font-size: 0.95rem;
    color: var(--fg1);
    background: var(--bg-ivory);
    border: 1.5px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 13px 15px;
    transition: border-color var(--dur-base) var(--ease-gentle), box-shadow var(--dur-base) var(--ease-gentle);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(168,136,75,0.18);
}
.invalid-feedback {
    display: none;
    color: #8B3A2F;
    font-size: 0.8rem;
    margin-top: 6px;
}
.was-validated input:invalid,
.was-validated textarea:invalid { border-color: #8B3A2F; }
.was-validated input:invalid ~ .invalid-feedback,
.was-validated textarea:invalid ~ .invalid-feedback { display: block; }
.btn-send { width: 100%; padding: 16px; font-size: 0.85rem; }
.form-note {
    text-align: center;
    font-size: 0.74rem;
    color: var(--fg3);
    margin: 16px 0 0;
}

/* required asterisk + helper hint + group legend */
.req { color: var(--brass); font-weight: 700; }
.field-hint {
    font-size: 0.76rem;
    color: var(--fg3);
    margin: -2px 0 10px;
    line-height: 1.45;
}
.field-legend {
    display: block;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: var(--ls-button);
    margin-bottom: 10px;
    color: var(--fg2);
}

/* radio / choice pills */
.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.choice { position: relative; display: inline-flex; }
.choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}
.choice > span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--bg-ivory);
    font-size: 0.8rem;
    color: var(--fg2);
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease-gentle),
                background var(--dur-base) var(--ease-gentle),
                color var(--dur-base) var(--ease-gentle),
                box-shadow var(--dur-base) var(--ease-gentle);
}
.choice > span:hover { border-color: var(--brass); color: var(--fg1); }
.choice input:checked + span {
    border-color: var(--brass);
    background: var(--brass);
    color: var(--bg-paper);
    font-weight: 600;
}
.choice input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(168, 136, 75, 0.20);
}

/* agreement checkbox */
.agree {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(168, 136, 75, 0.08);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease-gentle);
}
.agree:hover { border-color: var(--brass); }
.agree input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--brass);
    cursor: pointer;
}
.agree-text {
    font-size: 0.82rem;
    color: var(--fg2);
    line-height: 1.5;
}

/* validation feedback for choice groups + checkbox */
.was-validated .field:has(:invalid) .invalid-feedback { display: block; }
.was-validated .choice-group:has(:invalid) > .choice > span { border-color: #8B3A2F; }

/* =====================================================================
   FOOTER
===================================================================== */
.site-footer {
    background: var(--bg-charcoal);
    color: var(--fg-on-dark-2);
    padding: 34px 0;
    text-align: center;
    font-size: 0.82rem;
    border-top: 1px solid var(--brass);
    letter-spacing: 0.4px;
}
.site-footer a { color: var(--brass-soft); text-decoration: none; }

/* =====================================================================
   LOADER + DUPLICATE POPUP (kept for lead plumbing)
===================================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(28, 26, 22, 0.6);
    display: grid;
    place-items: center;
}
.page-loader[hidden] { display: none; }
.loader-spin {
    width: 54px;
    height: 54px;
    border: 5px solid rgba(216, 197, 143, 0.30);
    border-top-color: var(--brass);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(251, 248, 241, 0.55);
    border-top-color: var(--bg-paper);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: -2px;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dup-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(28, 26, 22, 0.6);
    display: grid;
    place-items: center;
    padding: 22px;
}
.dup-popup[hidden] { display: none; }
.dup-card {
    background: var(--bg-paper);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    max-width: 390px;
    text-align: center;
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--brass);
}
.dup-card h4 {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 12px;
    color: var(--fg1);
}
.dup-card p { color: var(--fg2); font-size: 0.92rem; }
.dup-card button { margin-top: 18px; }

/* Rules & Terms link + popup */
.terms-link {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--brass-hover);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.terms-link:hover { color: var(--fg1); }
.terms-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(28, 26, 22, 0.6);
    display: grid;
    place-items: center;
    padding: 22px;
}
.terms-card {
    position: relative;
    background: var(--bg-paper);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--brass);
}
.terms-card h4 {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 18px;
    color: var(--fg1);
}
.terms-list {
    margin: 0 0 24px;
    padding-left: 22px;
    display: grid;
    gap: 11px;
}
.terms-list li {
    color: var(--fg2);
    font-size: 0.92rem;
    line-height: 1.55;
}
.terms-list li::marker { color: var(--brass); }
.terms-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: 0;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--fg3);
    cursor: pointer;
    transition: color var(--dur-base) var(--ease-gentle);
}
.terms-close:hover { color: var(--fg1); }

/* =====================================================================
   RESPONSIVE
===================================================================== */
@media (max-width: 860px) {
    .rules-grid,
    .essentials-grid { grid-template-columns: 1fr; }
    /* stacked: let cards size to content again */
    .essentials-list { grid-template-rows: none; height: auto; }
    /* horizontal scroll-in animations shift content sideways and get clipped
       on narrow screens — fall back to a vertical reveal instead */
    [data-aos="fade-left"],
    [data-aos="fade-right"] { transform: translate3d(0, 30px, 0); }
    /* let the stacked rules block size to content & align text to the top */
    .rules-grid { min-height: auto; }
    .rules-media { min-height: 240px; }
    .rules-body { justify-content: flex-start; padding: 32px clamp(22px, 5vw, 40px); }
    .social-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}
@media (max-width: 760px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .header-cta { display: none; }
    .nav-toggle { display: flex; }
    /* nav becomes a dropdown panel under the header */
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--bg-ivory);
        border-bottom: 1px solid var(--line-soft);
        box-shadow: var(--shadow-rise);
        padding: 8px 0;
    }
    .site-header.nav-open .main-nav { 
        display: flex;
        width: 100%;
     }
    .main-nav a {
        padding: 13px clamp(20px, 4vw, 64px);
        font-size: 0.86rem;
    }
    .main-nav a::after { display: none; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .col-6 { grid-column: 1 / -1; }
    .prizes { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
    .form-section-head { margin-bottom: 18px; }
    .form-note-banner { font-size: 0.84rem; padding: 12px 16px; }
    .submission-head .display { font-size: 1.6rem; line-height: 1.18; }
}
@media (max-width: 520px) {
    /* keep a clean single row (icon | text | arrow); only the text wraps */
    .ess-card { gap: 16px; padding: 18px 20px; }
    .ess-ico { width: 52px; height: 52px; }
    .ess-ico svg { width: 52px; height: 52px; }
    .ess-text { flex: 1 1 auto; min-width: 0; }
    .ess-card .arrow { flex: none; margin-left: 8px; }
    .rules-body { padding: 36px 24px; }
    .video-tag { padding: 24px 20px 18px; }
    /* slimmer step badges + tighter indent give the text column more room
       so long links (e.g. the Instagram handle) don't crowd the edge */
    .steps { gap: 24px; }
    .steps li { padding-left: 50px; }
    .steps li::before { width: 34px; height: 34px; top: 0; font-size: 0.92rem; }
    .ig-link { overflow-wrap: anywhere; font-size: 0.88rem; gap: 4px; }
    .ig-link svg { width: 16px; height: 16px; }
    /* push the Instagram link and the "Go to the form" link onto their own
       second line on phones */
    .ig-link,
    .step-link {
        display: flex;
        align-items: center;
        width: fit-content;
        margin-top: 6px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    [data-aos] { transition-duration: 0.01ms !important; }
}
