/*
 * The landing page's "Feedback & Support" section (M5.1, 14 Sep 2026).
 * Loaded after landing-v2.css on the landing page only. Every colour is a
 * theme token — `--brand`, `--brand-2`, `--on-brand`, `--ink`, `--muted`,
 * `--card`, `--border`, `--soft` — so the section follows the landing theme
 * like the contact block above it; the panel reuses the `card` utility for its
 * surface. The button and the chosen pill take the landing's own night/gold
 * pair (`--cc-store-night`, `--cc-store-gold`), exactly as the contact block's
 * "Contact Us Today" button does — landing-v2.css paints that button over the
 * theme's gradient, and this section matches it rather than the gradient.
 */

.cc-support__panel {
    position: relative;
    display: grid;
    gap: 2rem;
    padding: 2rem 1.5rem;
    overflow: hidden;
    border-radius: 2.5rem;
    box-shadow: 0 24px 60px -32px color-mix(in srgb, var(--ink) 45%, transparent);
}

@media (min-width: 900px) {
    .cc-support__panel {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 3rem;
        padding: 3.25rem 3rem;
    }
}

/* ------------------------------------------------------------- the intro */

.cc-support__intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.cc-support__eyebrow {
    margin: 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand);
}

.cc-support__title {
    margin: 0;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink);
}

.cc-support__lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.cc-support__facts {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin: .25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--ink);
}

.cc-support__facts li {
    position: relative;
    padding-left: 1.35rem;
}

.cc-support__facts li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.cc-support__direct {
    margin: .5rem 0 0;
    font-size: .92rem;
}

.cc-support__direct a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

/* -------------------------------------------------------------- the form */

.cc-support__form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 0;
}

.cc-support__form[hidden],
.cc-support__sent[hidden] {
    display: none;
}

.cc-support__honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cc-support__label {
    display: block;
    margin: 0 0 .45rem;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--ink);
}

.cc-support__label em {
    font-style: normal;
    font-weight: 600;
    color: var(--muted);
}

.cc-support__kinds {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.cc-support__kinds legend {
    padding: 0;
}

.cc-support__pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* A radio dressed as a pill; the input stays in the tree for the keyboard and the form. */
.cc-support__pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1.05rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--soft) 55%, var(--card));
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.cc-support__pill input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cc-support__pill:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

.cc-support__pill:has(input:checked) {
    border-color: var(--cc-store-night, var(--brand));
    background: var(--cc-store-night, var(--brand));
    color: #fff;
}

.cc-support__pill:has(input:focus-visible) {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.cc-support__grid {
    display: grid;
    gap: 1.1rem;
}

@media (min-width: 640px) {
    .cc-support__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cc-support__field {
    display: block;
    min-width: 0;
}

.cc-support__field input,
.cc-support__field textarea {
    display: block;
    width: 100%;
    min-height: 3.1rem;
    padding: .8rem 1rem;
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
    border-radius: 1rem;
    background: color-mix(in srgb, var(--soft) 35%, var(--card));
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cc-support__field textarea {
    min-height: 8rem;
    resize: vertical;
}

.cc-support__field input::placeholder,
.cc-support__field textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.cc-support__field input:focus,
.cc-support__field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}

.cc-support__status {
    margin: 0;
    min-height: 0;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--muted);
}

.cc-support__status:empty {
    display: none;
}

.cc-support__status.is-error {
    padding: .8rem 1rem;
    border-radius: 1rem;
    background: color-mix(in srgb, #dc2626 10%, var(--card));
    color: color-mix(in srgb, #b91c1c 80%, var(--ink));
    font-weight: 600;
}

.cc-support__status ul {
    margin: .35rem 0 0;
    padding-left: 1.2rem;
    font-weight: 500;
}

.cc-support__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    align-self: flex-start;
    min-height: 3.25rem;
    padding: 0 2rem;
    border: 1px solid var(--cc-store-night, var(--brand));
    border-radius: 1rem;
    background: var(--cc-store-night, var(--brand));
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(7, 20, 37, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.cc-support__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--cc-store-gold, var(--brand-2));
    border-color: var(--cc-store-gold, var(--brand-2));
    color: var(--cc-store-night, var(--ink));
}

.cc-support__submit:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.cc-support__submit:disabled {
    cursor: progress;
    opacity: .7;
    transform: none;
}

@media (max-width: 639px) {
    .cc-support__submit {
        align-self: stretch;
        width: 100%;
    }
}

.cc-support__note {
    margin: -.35rem 0 0;
    font-size: .8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------- the sent card */

.cc-support__sent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .6rem;
    min-height: 16rem;
    padding: 1.5rem;
    border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--border));
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--brand) 6%, var(--card));
    color: var(--ink);
    outline: none;
}

.cc-support__sent-mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--cc-store-night, var(--brand));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.cc-support__sent-title {
    margin: .4rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.cc-support__sent-copy {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.cc-support__sent-copy strong {
    color: var(--ink);
}

.cc-support__again {
    margin-top: .6rem;
    padding: .6rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--brand);
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
}

.cc-support__again:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .cc-support__pill,
    .cc-support__submit,
    .cc-support__field input,
    .cc-support__field textarea {
        transition: none;
    }

    .cc-support__pill:hover,
    .cc-support__submit:hover:not(:disabled) {
        transform: none;
    }
}
