/* ============================================================
   AFCA / VMNL Creative Hub — Design System Stylesheet
   Strictly implements design reference specifications
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    --red: #CC1C1C;
    --red-deep: #A81616;
    --orange: #E8420A;
    --ink: #1A1A1A;
    --muted: #7A7A7A;
    --border: #E2E2E2;
    --bg-soft: #F4F4F4;
    --white: #FFFFFF;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--white);
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, var(--orange), var(--red));
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: .2px;
}

.logo-text span {
    display: block;
    font-weight: 600;
    color: var(--muted);
    font-size: 11px;
    text-transform: lowercase;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    border: none;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-red {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(204,28,28,.25);
}

.btn-red:hover {
    box-shadow: 0 8px 20px rgba(204,28,28,.35);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(15,10,8,.4) 0%, rgba(10,6,5,.85) 78%),
        url('../images/v431_853.png') center/cover no-repeat;
    color: var(--white);
    padding-bottom: 56px;
}

.hero-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232,66,10,.18);
    border: 1px solid rgba(232,66,10,.5);
    color: #FFB088;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1px;
    margin-bottom: 16px;
    max-width: 680px;
}

.hero p {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255,255,255,.78);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.pill-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    padding: 12px 20px;
    color: var(--white);
    transition: transform .15s ease;
}

.pill-cta:hover { transform: translateY(-1px); }
.pill-cta.creators { background: linear-gradient(90deg, var(--orange), #f06a2e); }
.pill-cta.actors { background: var(--red); }

/* ── Facilitators ─────────────────────────────────────────── */
.facilitators {
    background: var(--red);
    padding: 64px 0 72px;
}

.facilitators .eyebrow-plain {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: 12px;
}

.facilitators h2 {
    color: var(--white);
    font-size: clamp(26px,4vw,36px);
    font-weight: 800;
    line-height: 1.15;
    max-width: 520px;
    margin-bottom: 36px;
}

/* ── Facilitators Carousel ── */
.fac-carousel {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.fac-viewport {
    overflow: hidden;
    margin: 0 48px;
}

.fac-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.fac-slide {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.fac-slide .fac-card {
    height: 100%;
    width: 100%;
    max-width: 100%;
}

/* Carousel navigation */
.fac-nav {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none;
    font-size: 22px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    transition: background .15s ease, box-shadow .15s ease;
    z-index: 5;
    line-height: 1;
    padding: 0;
}

.fac-nav:hover {
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.fac-nav:disabled {
    opacity: .4;
    cursor: default;
    box-shadow: none;
}

.fac-prev { left: 0; }
.fac-next { right: 0; }

/* Carousel dots */
.fac-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.fac-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    background: transparent;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    padding: 0;
}

.fac-dot:hover {
    border-color: rgba(255,255,255,.8);
}

.fac-dot.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.15);
}

.fac-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.fac-photo {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(160deg,#3a3a3a,#1c1c1c);
    overflow: hidden;
}

.fac-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fac-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(160deg,#3a3a3a,#1c1c1c);
}

.fac-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 9px;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
}

.fac-tag.creators { background: var(--red-deep); }

.fac-body { padding: 16px 16px 20px; }
.fac-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.fac-body p {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}

/* ── Form Section ─────────────────────────────────────────── */
.form-section {
    background: var(--bg-soft);
    padding: 72px 0 88px;
}

.form-section .eyebrow-plain {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.form-section h2 {
    font-size: clamp(28px,4vw,40px);
    font-weight: 800;
    margin-bottom: 36px;
}

.form-section .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 44px 36px;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Stepper */
.stepper { display: flex; gap: 8px; margin-bottom: 32px; }

.stepper .seg {
    flex: 1;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--border);
    transition: background .2s ease;
}

.stepper .seg.done,
.stepper .seg.active { background: var(--red); }

/* Step header */
.step-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
}

.step-head h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }

.step-head p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* Fields */
.field { margin-bottom: 22px; }

.field label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--ink);
}

.field label .req { color: var(--red); margin-left: 2px; }

.field label .hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
    margin-left: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color .15s ease;
}

.field input::placeholder { color: #B3B3B3; }
.field input:focus { border-color: var(--red); }

/* Option grid */
.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color .15s ease, background .15s ease;
}

.option-card input[type="radio"] {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.option-card:has(input:checked),
.option-card.option-card--selected {
    border-color: var(--red);
    background: #FDF3F1;
}

.option-card .sub {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0 28px;
}

/* Next / Back buttons */
.next-btn {
    width: 100%;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s ease;
}

.next-btn:hover { background: var(--red-deep); }
.next-btn:disabled { opacity: .6; cursor: not-allowed; }

.back-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: color .15s ease;
}

.back-btn:hover { color: var(--ink); }

/* Step panels */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* Success / final step panel */
.success-panel { text-align: center; padding: 20px 0 8px; }

.success-panel .check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.success-panel h3 { font-size: 20px; margin-bottom: 8px; }

.success-panel p {
    color: var(--muted);
    font-size: 13.5px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Chips (challenges selector) ──────────────────────────── */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.chip input { display: none; }
.chip:hover { border-color: var(--red); }

.chip.chip--selected {
    border-color: var(--red);
    background: #FDF3F1;
    color: var(--red);
}

.chip.chip--selected::before {
    content: "\2715";
    font-size: 11px;
}

/* ── Consent ──────────────────────────────────────────────── */
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.5;
    transition: border-color .15s ease;
}

.consent-row:hover { border-color: var(--red); }

.consent-row input[type="checkbox"] {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Submit note */
.submit-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 14px;
}

/* ── Field errors & feedback ──────────────────────────────── */
.field-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
}

.form-feedback {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    display: none;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 32px 24px;
    background: var(--white);
}

.site-footer p {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
}

/* ── Confirmation Overlay ─────────────────────────────────── */
.confirmation-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.confirmation-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.confirmation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.confirmation-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    transform: scale(.9) translateY(1rem);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.confirmation-overlay[aria-hidden="false"] .confirmation-card {
    transform: scale(1) translateY(0);
}

.confirmation-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--muted);
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}

.confirmation-close:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.confirmation-icon {
    margin: 0 auto 16px;
    width: 80px;
    height: 80px;
    color: #22c55e;
}

.confirmation-circle {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
}

.confirmation-overlay[aria-hidden="false"] .confirmation-circle {
    animation: confirmCircleDraw .6s ease forwards .2s;
}

.confirmation-checkmark {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

.confirmation-overlay[aria-hidden="false"] .confirmation-checkmark {
    animation: confirmCheckDraw .4s ease forwards .6s;
}

@keyframes confirmCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes confirmCheckDraw {
    to { stroke-dashoffset: 0; }
}

.confirmation-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 8px;
}

.confirmation-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.confirmation-details {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.confirmation-timestamp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}

.confirmation-timestamp svg { flex-shrink: 0; color: #22c55e; }

.confirmation-id {
    font-size: 12px;
    color: var(--muted);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    letter-spacing: .05em;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
}

.confirmation-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    min-width: 140px;
    transition: background .15s ease;
}

.confirmation-dismiss:hover { background: var(--red-deep); }

/* ── Responsive ───────────────────────────────────────────── */

/* ≤ 860px: tablets */
@media (max-width: 860px) {
    .fac-viewport { margin: 0 40px; }
    .fac-nav { width: 38px; height: 38px; font-size: 20px; }
}

/* ≤ 640px: phones */
@media (max-width: 640px) {
    .form-card { padding: 28px 20px 24px; }
    .option-grid,
    .option-grid.wrap-3 { grid-template-columns: 1fr 1fr; }
    .fac-viewport { margin: 0 36px; }
    .fac-nav { width: 34px; height: 34px; font-size: 18px; }
    .fac-dots { margin-top: 20px; }
    .hero { min-height: auto; padding-bottom: 40px; }
    .site-header { padding: 16px; }
    .hero h1 { font-size: 28px; }
    .facilitators { padding: 48px 0 56px; }
    .form-section { padding: 48px 0 64px; }
    .step-head { gap: 12px; }
    .step-num { width: 36px; height: 36px; font-size: 14px; }
    .confirmation-card { padding: 24px 20px; border-radius: 12px; }
    .confirmation-icon { width: 64px; height: 64px; }
    .confirmation-icon svg { width: 64px; height: 64px; }
    .confirmation-dismiss { width: 100%; }
}

/* ≤ 480px: small phones */
@media (max-width: 480px) {
    .option-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; }
    .pill-cta { width: 100%; justify-content: center; }
    .site-footer { flex-direction: column; text-align: center; }
    .step-head { flex-direction: column; }
    .fac-viewport { margin: 0 32px; }
    .fac-nav { width: 28px; height: 28px; font-size: 15px; }
    .fac-slide { padding: 0 6px; }
    .fac-dots { margin-top: 16px; }
    .fac-dot { width: 8px; height: 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .confirmation-overlay,
    .confirmation-card,
    .confirmation-close { transition: none; }
    .confirmation-circle,
    .confirmation-checkmark {
        animation: none !important;
        stroke-dashoffset: 0;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .confirmation-card { border: 2px solid ButtonText; }
    .confirmation-title { color: ButtonText; }
    .confirmation-icon { color: ButtonText; }
}

/* Print */
@media print {
    .confirmation-overlay { display: none !important; }
    body { background: #fff; color: #000; }
    .form-card { box-shadow: none; border: 1px solid #ccc; }
}
