/*
 * Component: about-help-wanted-component
 * File:      about-help-wanted-component.css
 * BEM prefix: fc-hwc__
 * Section:   About page — 9.4 Help Wanted / Join the Journey
 *
 * Design tokens (defined in main.css / :root):
 *   --color-green          hsl(86 100% 65%)    — #aaff00 lime accent
 *   --color-gray-10        hsl(0 0% 10%)        — component/section bg
 *   --color-gray-20        hsl(0 0% 20%)        — card / input bg
 *   --color-gray-30        hsl(0 0% 30%)        — borders
 *   --color-gray-50        hsl(0 0% 50%)        — muted / secondary text
 *   --color-gray-70        hsl(0 0% 70%)        — placeholder text
 *   --color-gray-90        hsl(0 0% 90%)        — body text
 *   --color-gray-95        hsl(0 0% 95%)        — near-white text / headlines
 *   --font-family-default  Lato, sans-serif     — body / UI
 *   --radius-card          8px
 *   --transition-time      300ms
 *
 * Fonts: Playfair Display (headlines) + Source Sans 3 (body)
 *        loaded once in base page template — not re-imported here.
 */

/* ── Section wrapper ──────────────────────────────────────────────────────── */

.fc-hwc {
    background-color: var(--color-gray-10, #0a0c0a);
    color: var(--color-gray-90, #e8e8e0);
    font-family: 'Source Sans 3', var(--font-family-default, Lato, sans-serif);
    padding: 5rem 3.5rem;
    box-sizing: border-box;
}

/* Two-column layout on wide screens:
   left = editorial copy + ask list | right = form */
.fc-hwc__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* ── Editorial column ─────────────────────────────────────────────────────── */

.fc-hwc__editorial {
    /* intentionally no extra padding — section already has it */
}

/* Overline label above the headline */
.fc-hwc__overline {
    font-size: 0.6875rem;           /* 11px */
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-green, #aaff00);
    margin: 0 0 1rem;
}

/* Main headline — Playfair, weight 900, generous size */
.fc-hwc__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-gray-95, #f5f5ee);
    margin: 0 0 1.5rem;
}

/* Period after "We are on our way" rendered in lime */
.fc-hwc__headline-period {
    color: var(--color-green, #aaff00);
}

/* Framing paragraph */
.fc-hwc__framing {
    font-size: 1.0625rem;           /* 17px */
    line-height: 1.7;
    color: var(--color-gray-90, #e8e8e0);
    margin: 0 0 2.5rem;
}

/* ── Ask list ─────────────────────────────────────────────────────────────── */

.fc-hwc__ask-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-gray-30, #333);
}

.fc-hwc__ask-item {
    display: grid;
    grid-template-columns: 10px 1fr;   /* lime bar | text */
    gap: 0 1.25rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--color-gray-30, #333);
    font-size: 0.9375rem;              /* 15px */
    line-height: 1.5;
    color: var(--color-gray-90, #e8e8e0);
    align-items: baseline;
}

/* Lime vertical accent bar — the signature element for this component */
.fc-hwc__ask-item::before {
    content: '';
    display: block;
    width: 2px;
    height: 1.1em;
    background-color: var(--color-green, #aaff00);
    border-radius: 1px;
    margin-top: 0.2em;               /* align with cap-height */
}

.fc-hwc__ask-label {
    font-weight: 700;
    color: var(--color-gray-95, #f5f5ee);
    display: block;
    margin-bottom: 0.15rem;
}

/* Wrap the label + description text in a single cell */
.fc-hwc__ask-content {
    display: flex;
    flex-direction: column;
}

/* ── Form outer wrapper ───────────────────────────────────────────────────── */

.fc-hwc__form-outer {
    /* Contains both the form and the thank-you panel */
}

/* ── Thank-you panel ──────────────────────────────────────────────────────── */

.fc-hwc__thankyou {
    background-color: var(--color-gray-20, #1a1a1a);
    border: 1px solid var(--color-green, #aaff00);
    border-radius: var(--radius-card, 8px);
    padding: 3rem 2.5rem;
    text-align: center;
}

.fc-hwc__thankyou[hidden] {
    display: none;
}

.fc-hwc__thankyou-icon {
    font-size: 2.5rem;
    color: var(--color-green, #aaff00);
    line-height: 1;
    margin-bottom: 1rem;
}

.fc-hwc__thankyou-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-95, #f5f5ee);
    margin: 0 0 0.75rem;
}

.fc-hwc__thankyou-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-90, #e8e8e0);
    margin: 0;
}

/* ── Form inner ───────────────────────────────────────────────────────────── */

.fc-hwc__form-inner[hidden] {
    display: none;
}

/* ── Error banner ─────────────────────────────────────────────────────────── */

.fc-hwc__error-banner {
    background-color: rgba(220, 50, 50, 0.12);
    border: 1px solid rgba(220, 50, 50, 0.5);
    border-radius: var(--radius-card, 8px);
    color: #ff8080;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.fc-hwc__error-banner[hidden] {
    display: none;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */

.fc-hwc__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.fc-hwc__label {
    font-size: 0.8125rem;           /* 13px */
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray-70, #b3b3b3);
}

/* Shared input + select + textarea base */
.fc-hwc__input,
.fc-hwc__select,
.fc-hwc__textarea {
    background-color: var(--color-gray-20, #1c1c1c);
    border: 1px solid var(--color-gray-30, #333);
    border-radius: var(--radius-card, 8px);
    color: var(--color-gray-95, #f5f5ee);
    font-family: 'Source Sans 3', var(--font-family-default, Lato, sans-serif);
    font-size: 1rem;
    padding: 0.65rem 0.875rem;
    transition:
            border-color var(--transition-time, 300ms) ease,
            box-shadow var(--transition-time, 300ms) ease;
    box-sizing: border-box;
    width: 100%;
    outline: none;
}

.fc-hwc__input::placeholder,
.fc-hwc__textarea::placeholder {
    color: var(--color-gray-50, #888);
}

/* Focus state — lime ring, consistent with platform pattern */
.fc-hwc__input:focus,
.fc-hwc__select:focus,
.fc-hwc__textarea:focus {
    border-color: var(--color-green, #aaff00);
    box-shadow: 0 0 0 3px rgba(170, 255, 0, 0.12);
}

/* Select: custom arrow using background SVG */
.fc-hwc__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Select options inherit dark background in supporting browsers */
.fc-hwc__select option {
    background-color: var(--color-gray-20, #1c1c1c);
    color: var(--color-gray-95, #f5f5ee);
}

.fc-hwc__textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Character counter — right-aligned below textarea */
.fc-hwc__char-count {
    font-size: 0.75rem;
    color: var(--color-gray-50, #888);
    text-align: right;
    margin-top: 0.25rem;
}

.fc-hwc__char-count--warn {
    color: #e0a030;
}

/* Hint text below a field */
.fc-hwc__field-hint {
    font-size: 0.75rem;
    color: var(--color-gray-50, #888);
    line-height: 1.4;
}

/* ── Honeypot — must be invisible but not display:none (some bots check) ─── */

.fc-hwc__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Turnstile widget container ───────────────────────────────────────────── */

.fc-hwc__turnstile {
    margin: 1.5rem 0 1.25rem;
    /* Cloudflare renders the iframe at a fixed size; we just contain it */
    min-height: 65px;
}

/* ── Submit button ────────────────────────────────────────────────────────── */

.fc-hwc__actions {
    margin-top: 0.25rem;
}

.fc-hwc__submit {
    display: inline-block;
    padding: 0.75rem 2.25rem;
    background-color: var(--color-green, #aaff00);
    color: #0a0c0a;                  /* dark text on lime — maximum contrast */
    font-family: 'Source Sans 3', var(--font-family-default, Lato, sans-serif);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    border-radius: var(--radius-card, 8px);
    cursor: pointer;
    transition:
            background-color var(--transition-time, 300ms) ease,
            opacity var(--transition-time, 300ms) ease,
            transform 120ms ease;
    white-space: nowrap;
}

.fc-hwc__submit:hover:not(:disabled) {
    background-color: #c5ff40;       /* slightly lighter lime on hover */
}

.fc-hwc__submit:active:not(:disabled) {
    transform: translateY(1px);
}

.fc-hwc__submit:disabled,
.fc-hwc__submit--disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Focus ring — keyboard accessible */
.fc-hwc__submit:focus-visible {
    outline: 2px solid var(--color-green, #aaff00);
    outline-offset: 3px;
}

/* ── Responsive: stack to single column below 800px ──────────────────────── */

@media (max-width: 800px) {
    .fc-hwc {
        padding: 3.5rem 1.5rem;
    }

    .fc-hwc__layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .fc-hwc__headline {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .fc-hwc__input,
    .fc-hwc__select,
    .fc-hwc__textarea,
    .fc-hwc__submit {
        transition: none;
    }
}
/* ── Form header: title + reset icon ─────────────────────────────────────── */

.fc-hwc__form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.fc-hwc__form-title {
    font-size: 0.8125rem;           /* 13px — matches label style */
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray-70, #b3b3b3);
}

/* Reset button — 25x25 icon-only circle, tooltip via title attribute */
.fc-hwc__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-gray-30, #333);
    border-radius: 50%;
    color: var(--color-gray-50, #888);
    cursor: pointer;
    transition:
            color var(--transition-time, 300ms) ease,
            border-color var(--transition-time, 300ms) ease,
            transform 200ms ease;
    flex-shrink: 0;
}

.fc-hwc__reset:hover {
    color: var(--color-gray-90, #e8e8e0);
    border-color: var(--color-gray-50, #888);
    transform: rotate(-45deg);
}

.fc-hwc__reset:focus-visible {
    outline: 2px solid var(--color-green, #aaff00);
    outline-offset: 2px;
}

.fc-hwc__reset svg {
    flex-shrink: 0;
}

/* ── Field row — first name + last name side by side ─────────────────────── */

.fc-hwc__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

@media (max-width: 600px) {
    .fc-hwc__field-row {
        grid-template-columns: 1fr;
    }
}

/* ── Contact permission checkbox ──────────────────────────────────────────── */

.fc-hwc__field--check {
    margin-bottom: 1.25rem;
}

/* Hide the native checkbox — replaced by custom box */
.fc-hwc__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.fc-hwc__check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

/* Custom checkbox box */
.fc-hwc__check-box {
    flex-shrink: 0;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-top: 0.1em;              /* optical alignment with text cap-height */
    border: 1px solid var(--color-gray-30, #333);
    border-radius: 4px;
    background-color: var(--color-gray-20, #1c1c1c);
    transition:
            background-color var(--transition-time, 300ms) ease,
            border-color var(--transition-time, 300ms) ease;
    position: relative;
}

/* Checkmark — drawn with a pseudo-element when checked */
.fc-hwc__check-box::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 2px solid #0a0c0a;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Checked state */
.fc-hwc__checkbox:checked + .fc-hwc__check-box {
    background-color: var(--color-green, #aaff00);
    border-color: var(--color-green, #aaff00);
}

.fc-hwc__checkbox:checked + .fc-hwc__check-box::after {
    display: block;
}

/* Focus ring on the custom box when native input is focused */
.fc-hwc__checkbox:focus-visible + .fc-hwc__check-box {
    outline: 2px solid var(--color-green, #aaff00);
    outline-offset: 2px;
}

.fc-hwc__check-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-gray-90, #e8e8e0);
    user-select: none;
}