:root {
    --bg: #f8f7ff;
    --surface: #ffffff;
    --ink: #3a3a3a;
    --muted: #727272;
    --line: #e4e1ff;
    --accent: #5f39ff;
    --accent-strong: #4171a8;
    --accent-soft: #eeecff;
    --warm: #ab3896;
    --fresh: #20d9a1;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --success: #067647;
    --success-soft: #ecfdf3;
    --shadow: 0 18px 60px rgba(63, 63, 63, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(95, 57, 255, 0.2), transparent 30rem),
        radial-gradient(circle at 92% 18%, rgba(32, 217, 161, 0.2), transparent 26rem),
        linear-gradient(135deg, #f8f7ff 0%, #fafffd 100%);
    font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

.briefing-header {
    display: flex;
    width: min(1160px, calc(100% - 32px));
    align-items: center;
    justify-content: space-between;
    margin: 18px auto 0;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 55px rgba(7, 3, 55, 0.1);
    backdrop-filter: blur(22px);
}

.briefing-brand img {
    display: block;
    width: 138px;
}

.back-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(95, 57, 255, 0.22);
}

.briefing-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.intro-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.intro-copy p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--warm);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.progress-card,
.briefing-form,
.notice {
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.progress-card {
    position: fixed;
    top: 176px;
    right: max(16px, calc((100vw - 1160px) / 2));
    z-index: 10;
    width: 280px;
    padding: 14px 16px;
    border-radius: 8px;
    transition: top 260ms ease;
}

body.is-scrolled .progress-card {
    top: 20px;
}

.progress-label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.progress-card strong {
    display: block;
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8e2d7;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--warm), var(--fresh));
    transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.notice {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 8px;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.notice.success {
    color: var(--success);
    background: var(--success-soft);
}

.notice.error {
    color: var(--danger);
    background: var(--danger-soft);
}

.briefing-form {
    overflow: hidden;
    border-radius: 8px;
}

.form-section {
    padding: 34px;
    border-top: 1px solid var(--line);
}

.form-section:first-of-type {
    border-top: 0;
}

.section-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.section-head span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    font-weight: 800;
}

.section-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.section-head.compact {
    margin-bottom: 14px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.choice-card {
    position: relative;
    min-height: 74px;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card span {
    display: grid;
    min-height: 74px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink);
    font-weight: 750;
    transition: border 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.choice-card input:focus-visible + span {
    outline: 3px solid rgba(15, 118, 110, 0.3);
    outline-offset: 2px;
}

.choice-card input:checked + span {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
    transform: translateY(-2px);
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.stacked-options {
    display: grid;
    gap: 10px;
}

.stacked-options label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.field-label {
    display: block;
    margin: 14px 0 7px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 13px 14px;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.form-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 24px 34px;
    border-top: 1px solid var(--line);
    background: rgba(22, 25, 31, 0.035);
}

.form-actions p {
    margin: 0;
    color: var(--muted);
}

.form-actions button {
    min-width: 180px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    color: #fff;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 850;
    transition: background 160ms ease, transform 160ms ease;
}

.form-actions button:hover,
.form-actions button:focus-visible {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.trap {
    position: absolute;
    left: -9999px;
}

@media (max-width: 820px) {
    .briefing-header {
        width: min(100% - 20px, 640px);
        padding: 9px;
    }

    .briefing-brand img {
        width: 118px;
    }

    .briefing-shell {
        width: min(100% - 20px, 640px);
        padding: 28px 0;
    }

    .intro-panel,
    .two-column,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .intro-panel {
        overflow: visible;
    }

    .progress-card {
        top: auto;
        right: 10px;
        bottom: 10px;
        width: min(420px, calc(100% - 20px));
        display: grid;
        grid-template-columns: auto minmax(52px, auto);
        gap: 8px 14px;
        align-items: center;
        order: -1;
        padding: 10px 12px;
    }

    body.is-scrolled .progress-card {
        top: auto;
    }

    .progress-label {
        font-size: 0.72rem;
    }

    .progress-card strong {
        margin: 0;
        font-size: 1.05rem;
        text-align: right;
    }

    .progress-track {
        grid-column: 1 / -1;
        height: 7px;
    }

    .form-section,
    .form-actions {
        padding: 22px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}
