:root {
    --atc-red: #b5121b;
    --atc-red-dark: #8f0f16;
    --ink: #1f2933;
    --muted: #5f6b7a;
    --line: #d9dee7;
    --surface: #ffffff;
    --page: #f4f6f9;
    --focus: #0f62fe;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, var(--page) 100%);
}

.page-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 32px 16px;
}

.registration-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 6px solid var(--atc-red);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
    padding: 28px;
}

.title-card {
    margin-bottom: 14px;
}

.registration-panel.compact {
    margin-top: 64px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.brand-logo {
    width: 132px;
    max-height: 96px;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--atc-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.highlight-title {
    color: var(--atc-red);
}

.intro,
.intro p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.intro {
    margin: 22px 0;
}

.intro p {
    margin: 0 0 14px;
}

.intro p:last-child {
    margin-bottom: 0;
}

.required-note {
    margin: 20px 0 0;
    color: var(--atc-red);
    font-size: 14px;
}

.required {
    color: var(--atc-red);
}

.registration-form {
    display: grid;
    gap: 14px;
}

.question-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.field {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

label,
legend {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

fieldset.field legend {
    margin-bottom: 12px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: #ffffff;
}

.other-input {
    margin-top: 6px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--focus);
    outline: 3px solid rgba(15, 98, 254, 0.14);
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.segmented label {
    display: block;
    cursor: pointer;
}

.segmented input {
    position: absolute;
    opacity: 0;
}

.segmented span {
    display: grid;
    min-height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
}

.segmented input:checked + span {
    border-color: var(--atc-red);
    background: #fff5f5;
    color: var(--atc-red-dark);
    font-weight: 700;
}

.radio-list {
    display: grid;
    gap: 14px;
}

.radio-list label {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: center;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

.radio-list input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.programme-box {
    display: grid;
    gap: 4px;
    border-left: 4px solid var(--atc-red);
    background: #f8fafc;
    padding: 12px 14px;
}

.programme-box span {
    color: var(--muted);
    font-size: 13px;
}

.consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.consent input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.submit-button {
    width: auto;
    min-width: 180px;
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: var(--atc-red);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.clear-link {
    color: var(--atc-red);
    font-weight: 700;
    text-decoration: none;
}

.submit-button:hover,
.submit-button:focus {
    background: var(--atc-red-dark);
}

.error {
    margin: 0;
    color: var(--atc-red-dark);
    font-size: 13px;
}

.text-link {
    color: var(--atc-red);
    font-weight: 700;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

@media (max-width: 560px) {
    .page-shell {
        padding: 18px 12px;
    }

    .registration-panel {
        padding: 20px;
    }

    .question-card {
        padding: 20px;
    }

    .brand-header {
        align-items: flex-start;
        gap: 14px;
    }

    .brand-logo {
        width: 104px;
    }

    h1 {
        font-size: 22px;
    }

    .segmented {
        grid-template-columns: 1fr;
    }

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

    .submit-button {
        width: 100%;
    }
}
