/* ============================================================
   FC BACAU - Program Voluntari
   Brand: RED + WHITE (per fcbacau.ro). No blue/navy (those are FCSB).
   Same FCSB layout, recolored to red + white + warm-neutral greys.
   ============================================================ */

:root {
    --red: #e31616;
    --red-strong: #c1121f;
    --red-deep: #8f0d12;
    --red-soft: #fde6e6;   /* light red tint for badges */
    --red-50: #fef3f3;
    --red-100: #fde4e4;    /* form panel base */

    --dark: #1a1414;       /* near-black warm, for the one dark band */
    --dark-2: #271c1c;

    /* warm-neutral greys (stone) — zero blue cast */
    --g-50: #fafaf9;
    --g-100: #f5f5f4;
    --g-200: #e7e5e4;
    --g-300: #d6d3d1;
    --g-400: #a8a29e;
    --g-500: #78716c;
    --g-600: #57534e;
    --g-700: #44403c;
    --g-900: #1c1917;

    --ink: var(--g-900);
    --muted: var(--g-600);
    --line: var(--g-200);
    --bg: #ffffff;

    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, .05);
    --shadow: 0 4px 16px rgba(28, 25, 23, .07);
    --container: 1200px;
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: 'Poppins', var(--font);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; font-family: var(--font-display); }

.icon { width: 24px; height: 24px; display: block; }

/* ---------- Layout & section rhythm ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }

.page { max-width: var(--container); margin-inline: auto; padding: 8px 20px 0; }
.page > section { scroll-margin-top: 24px; margin-top: 64px; }
@media (min-width: 768px) { .page > section { margin-top: 80px; } }

.section__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.25rem); font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.section__subtitle { color: var(--muted); margin: 16px auto 0; font-size: 1.05rem; max-width: 42rem; line-height: 1.65; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow--light { color: #ffc9c9; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: inherit; font-weight: 600; font-size: .95rem;
    padding: 12px 22px; border: 1px solid transparent; border-radius: 10px;
    background: var(--red); color: #fff; cursor: pointer;
    transition: background .15s ease, transform .08s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn .icon { width: 18px; height: 18px; }

.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(227, 22, 22, .28); }
.btn--primary:hover { background: var(--red-strong); }

/* on the red hero: white button with red text for contrast */
.btn--hero-primary { background: #fff; color: var(--red); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.btn--hero-primary:hover { background: #fff5f5; color: var(--red-strong); }
.btn--hero-secondary { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--hero-secondary:hover { background: rgba(255,255,255,.20); }

.btn--ghost { background: #fff; color: var(--g-700); border-color: var(--g-300); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; padding: 15px; font-size: 1.05rem; }

/* ---------- Hero (acts as the page header) ---------- */
.hero {
    position: relative; overflow: hidden;
    color: #fff; text-align: center;
    /* rich FC BACAU red with depth + a subtle white sheen at the top (a hint, not a band) */
    background:
        radial-gradient(130% 80% at 50% -8%, rgba(255,255,255,.14), rgba(255,255,255,0) 42%),
        linear-gradient(180deg, #e31616 0%, #d41417 55%, #bd1015 100%);
    padding: clamp(44px, 5.5vw, 72px) 0 clamp(50px, 6.5vw, 80px);
}
.hero__watermark {
    position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%);
    width: min(380px, 72%); height: auto; opacity: .13;
    pointer-events: none; user-select: none; /* natural-colour crest watermark */
}
.hero__inner { position: relative; max-width: 680px; margin-inline: auto; }
.hero__eyebrow { margin: 0 0 16px; color: rgba(255,255,255,.9); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; }
.hero__title {
    color: #fff; outline: none; font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.03em; margin: 0 0 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,.28);
}
.hero__text { font-size: clamp(1rem, 1.8vw, 1.15rem); color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 26px; text-shadow: 0 1px 6px rgba(0,0,0,.16); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; }
.hero__note { color: rgba(255,255,255,.85); font-size: .98rem; margin: 0; }
.hero__note a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Icon badges ---------- */
.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    background: var(--red-soft); color: var(--red);
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge--neutral { background: var(--g-100); color: var(--g-700); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.step-card { background: #fff; border: 1px solid var(--g-200); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.step-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-card__num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; background: var(--red-100); color: var(--red); }
.step-card__line { height: 2px; background: var(--g-200); flex: 1; border-radius: 2px; }
.step-card__icon { color: var(--g-400); margin-bottom: 12px; }
.step-card__icon .icon { width: 22px; height: 22px; }
.step-card__title { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.step-card__text { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Role cards ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; }
.role-card { background: #fff; border: 1px solid var(--g-200); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.role-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.role-card__title { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.role-card__intro { font-weight: 500; margin: 0 0 18px; color: var(--g-700); }
.role-card p { color: var(--muted); margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 28px; color: var(--g-700); font-size: .93rem; line-height: 1.5; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 2px; color: var(--red); font-weight: 700; font-size: .9rem; }

/* ---------- Contribution list (Parteneri: distinct from the card-grid rhythm) ---------- */
.contrib-panel { background: var(--g-50); border: 1px solid var(--g-200); border-radius: var(--radius-lg); padding: 6px clamp(20px, 3vw, 34px); }
.contrib-row { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--g-200); }
.contrib-row:first-child { border-top: 0; }
.contrib-row__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.contrib-row__text { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Requirement cards ---------- */
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.req-card { background: #fff; border: 1px solid var(--g-200); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.req-card .icon-badge { margin-bottom: 14px; }
.req-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.req-card__text { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Cod de conduita (wrapped card) ---------- */
/* ---------- Tab switch (Cerinte / Reguli) ---------- */
.tab-switch { display: flex; justify-content: center; gap: 10px; margin: 0 0 32px; }
.tab-btn {
    font: inherit; font-weight: 700; cursor: pointer;
    background: #fff; border: 1.5px solid var(--g-300); color: var(--g-700);
    border-radius: 999px; padding: 10px 26px; transition: .15s ease;
}
.tab-btn:hover { border-color: var(--red); }
.tab-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.tab-panel { background: var(--g-50); border: 1px solid var(--g-200); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 48px); }
.conduct-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 32px; }
.conduct-item { display: flex; gap: 14px; align-items: flex-start; }
.conduct-item .icon-badge { width: 40px; height: 40px; background: #fff; border: 1px solid var(--g-200); }
.conduct-item__title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.conduct-item__text { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; }
.benefit-card { background: #fff; border: 1px solid var(--g-200); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.benefit-card__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.benefit-card p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Companies band (near-black, full-width) ---------- */
.companies { background: var(--dark); color: #fff; padding: clamp(48px, 7vw, 84px) 0; margin-top: 64px; }
.companies__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.companies__title { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; margin-bottom: 16px; letter-spacing: -.02em; }
.companies__text { color: rgba(255,255,255,.78); margin: 0 0 20px; max-width: 560px; }
.companies__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.companies__list li { position: relative; padding-left: 28px; color: rgba(255,255,255,.9); }
.companies__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--red); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tag { border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.88); border-radius: 999px; padding: 6px 14px; font-size: .82rem; }
.companies__note { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 22px; color: rgba(255,255,255,.8); font-size: .95rem; }

/* ---------- Form band (soft red glow, no lines) ---------- */
.form-band {
    position: relative; overflow: hidden; border-radius: var(--radius-xl);
    padding: clamp(40px, 5vw, 64px) clamp(16px, 4vw, 48px);
    background-color: var(--red-100);
    background-image:
        radial-gradient(42% 55% at 6% 8%, rgba(227, 22, 22, .12), transparent 62%),
        radial-gradient(38% 48% at 97% 88%, rgba(227, 22, 22, .10), transparent 65%),
        radial-gradient(60% 70% at 88% 4%, rgba(143, 13, 18, .07), transparent 72%);
    /* flex + gap (not margins) guarantees real clearance for the overlapping
       badge below — adjacent-sibling margins would collapse and get eaten. */
    display: flex; flex-direction: column; align-items: center; gap: 54px;
}
.form-band .section__head { margin-bottom: 0; }

/* white inner form card, with an overlapping icon medallion on top. */
.form-card { position: relative; background: #fff; border: 1px solid var(--g-200); border-radius: var(--radius-xl); box-shadow: var(--shadow); width: 100%; max-width: 720px; margin: 0; }
.form-card__body { padding: clamp(22px, 4vw, 40px); padding-top: 48px; }
.form-card__badge {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    width: 72px; height: 72px; border-radius: 50%; z-index: 1;
    display: flex; align-items: center; justify-content: center; padding: 11px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(143, 13, 18, .28), 0 0 0 3px var(--red), 0 0 0 7px #fff;
}
.form-card__badge img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }

.form-section { padding: 22px 0; border-top: 1px solid var(--g-200); }
.form-section:first-of-type { padding-top: 4px; border-top: 0; }
.form-section__title { font-size: 1.12rem; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.form-section__hint { color: var(--g-500); font-size: .9rem; margin: 0 0 14px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-grid .field { margin-bottom: 0; }
.label { font-weight: 600; font-size: .9rem; color: var(--g-700); }
.req { color: var(--red); }

.input { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--g-300); border-radius: 9px; padding: 11px 13px; transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder { color: var(--g-400); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 22, 22, .12); }
.textarea { resize: vertical; min-height: 90px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8a29e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

.field-note { color: var(--g-500); font-size: .84rem; }
.field-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.char-counter { color: var(--g-500); font-size: .82rem; font-variant-numeric: tabular-nums; }

.validation-message, .invalid-feedback { color: var(--red-strong); font-size: .84rem; }
.valid.modified:not([type=checkbox]) { outline: none; }

/* toggle buttons */
.toggle-group { display: flex; gap: 10px; }
.toggle-group--wrap { flex-wrap: wrap; }
.toggle { flex: 1 1 auto; font: inherit; font-weight: 600; cursor: pointer; background: #fff; border: 1.5px solid var(--g-300); color: var(--g-700); border-radius: 9px; padding: 11px 18px; transition: .15s ease; }
.toggle:hover { border-color: var(--red); }
.toggle.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.toggle-group--wrap .toggle { flex: 0 1 auto; }

/* multi-select option rows: circular check + icon + label */
.option-group { display: grid; gap: 10px; }
.option-row { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; cursor: pointer; width: 100%; background: #fff; border: 1.5px solid var(--g-300); border-radius: 11px; padding: 13px 16px; transition: .15s ease; }
.option-row:hover { border-color: var(--red); }
.option-row__check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--g-300); background: #fff; position: relative; transition: .15s ease; }
.option-row__icon { color: var(--g-400); display: flex; }
.option-row__icon .icon { width: 20px; height: 20px; }
.option-row__label { font-weight: 600; color: var(--g-700); }
.option-row.is-active { border-color: var(--red); background: var(--red-50); }
.option-row.is-active .option-row__check { background: var(--red); border-color: var(--red); }
.option-row.is-active .option-row__check::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.option-row.is-active .option-row__icon { color: var(--red); }

.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .93rem; color: var(--g-700); }
.checkbox input[type="checkbox"] { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--red); flex: none; }

.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-widget { margin: 18px 0 6px; min-height: 65px; }

.form-error { background: var(--red-50); border: 1px solid var(--red); color: var(--red-strong); border-radius: 9px; padding: 12px 15px; margin-bottom: 16px; font-size: .93rem; font-weight: 500; }

.form-success { text-align: center; padding: 28px 10px; }
.form-success__icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.7rem; }
.form-success h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.form-success p { color: var(--muted); margin: 0; }
.form-success .btn { margin-top: 22px; }

.form-band__back { text-align: center; }

/* ---------- Footer (light) ---------- */
.site-footer { border-top: 1px solid var(--g-200); background: var(--g-50); padding: 48px 0; margin-top: 64px; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.site-footer__crest { height: 58px; width: auto; }
.site-footer__quote { font-style: italic; max-width: 620px; margin: 0; color: var(--muted); }
.site-footer__contact { margin: 0; color: var(--muted); }
.site-footer__contact a { color: var(--red); font-weight: 600; }
.site-footer__copy { font-size: .85rem; color: var(--g-400); margin: 4px 0 0; }

/* ---------- Blazor error UI ---------- */
#blazor-error-ui { color-scheme: light only; background: #fff3cd; color: #5b4a00; bottom: 0; left: 0; width: 100%; box-shadow: 0 -1px 2px rgba(0,0,0,.2); box-sizing: border-box; display: none; padding: .7rem 1.25rem; position: fixed; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.blazor-error-boundary { background: var(--red); padding: 1rem; color: #fff; }

/* ---------- Polish: hover, accents, distinctive touches ---------- */
.step-card, .role-card, .req-card, .benefit-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step-card:hover, .req-card:hover, .benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(28, 25, 23, .12);
    border-color: #f3c9c9;
}

/* role cards: red top accent + hover */
.role-card { border-top: 3px solid var(--red); }
.role-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(28, 25, 23, .12); }

/* short red accent bar under each section title */
.section__head .section__title { display: inline-block; position: relative; padding-bottom: 14px; }
.section__head .section__title::after {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 52px; height: 3px; border-radius: 3px; background: var(--red);
}

/* bolder, solid-red step numbers */
.step-card__num { background: var(--red); color: #fff; box-shadow: 0 0 0 5px var(--red-soft); }

/* button hover lift a touch stronger */
.btn--primary:hover { box-shadow: 0 12px 26px rgba(227, 22, 22, .34); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
    .companies__inner { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1 1 auto; }
}
