:root {
    --accent: #ffcc00;
    --ink: #232018;
    --muted: #69655b;
    --line: #dedbd3;
    --soft: #f6f6f6;
    --paper: #ffffff;
    --error: #9f1d1d;
    --success: #1f6b3a;
    --warning: #765800;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--soft);
    color: var(--ink);
    font-family: Chivo, Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body {
    margin: 0;
    background: var(--paper);
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 150px;
    height: 80px;
    object-fit: contain;
}

.header-contact,
.footer-inner span {
    color: var(--muted);
    font-size: 0.95rem;
}

.header-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 22px;
}

.header-contact a {
    text-decoration: none;
    font-weight: 700;
}

.main {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f6f6f6 58%, #f6f6f6 100%);
}

.intro {
    background: var(--accent);
    border-bottom: 1px solid rgba(35, 32, 24, 0.16);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: end;
    padding: 64px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: rgba(35, 32, 24, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: 3.15rem;
}

h2 {
    font-size: 1.35rem;
}

.intro-copy p:last-child {
    max-width: 680px;
    margin: 22px 0 0;
    font-size: 1.2rem;
}

.trust-panel {
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    padding: 24px;
}

.trust-panel p {
    margin: 10px 0 0;
}

.form-section {
    padding: 56px 0 72px;
}

.form-shell {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(35, 32, 24, 0.08);
    padding: 34px;
}

.notice {
    border-radius: 4px;
    margin-bottom: 28px;
    padding: 22px 24px;
}

.notice h2 {
    margin-bottom: 10px;
}

.notice p,
.notice ul {
    margin: 0;
}

.notice ul {
    padding-left: 18px;
}

.notice-success {
    border: 1px solid rgba(31, 107, 58, 0.28);
    background: #eef8f1;
    color: var(--success);
}

.notice-error {
    border: 1px solid rgba(159, 29, 29, 0.28);
    background: #fff2f2;
    color: var(--error);
}

.notice-warning {
    border: 1px solid rgba(118, 88, 0, 0.3);
    background: #fff8d9;
    color: var(--warning);
}

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

.form-subsection {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.form-subsection p {
    margin: 8px 0 0;
    color: var(--muted);
}

.field {
    min-width: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

label,
legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

label .required-mark,
legend .required-mark,
.checkbox-label .required-mark {
    color: var(--error);
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

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

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    min-width: 110px;
    gap: 10px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    font-weight: 700;
}

.radio-label input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: var(--accent);
}

.legal-protection-details[hidden] {
    display: none;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input,
select {
    min-height: 50px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.28);
    outline: none;
}

.checkbox-field {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-weight: 400;
}

.checkbox-label input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 3px;
    accent-color: var(--accent);
}

.checkbox-label a {
    color: var(--ink);
    font-weight: 700;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.field-error {
    margin: 7px 0 0;
    color: var(--error);
    font-size: 0.92rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

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

button {
    min-width: 250px;
    border: 0;
    border-radius: 4px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 15px 22px;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

button:hover,
button:focus {
    background: #3a3528;
}

button:active {
    transform: translateY(1px);
}

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

.site-footer {
    background: var(--soft);
    border-top: 1px solid var(--line);
}

.footer-inner {
    align-items: baseline;
}

.footer-inner > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@media (max-width: 820px) {
    .header-inner,
    .footer-inner,
    .form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-contact {
        justify-content: flex-start;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 44px 0;
    }

    h1 {
        font-size: 2.25rem;
    }

    .intro-copy p:last-child {
        font-size: 1rem;
    }

    .form-shell {
        padding: 24px;
    }

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

    button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .brand-logo {
        width: 128px;
        height: auto;
    }

    h1 {
        font-size: 1.85rem;
    }

    .form-section {
        padding: 28px 0 42px;
    }

    .form-shell {
        padding: 18px;
    }
}
