:root {
    --navy: #102846;
    --navy-deep: #091b31;
    --red: #c51f3d;
    --red-dark: #a51631;
    --cream: #f6f3ed;
    --white: #ffffff;
    --text: #1c2b3b;
    --muted: #687687;
    --line: #d9dee5;
    --success: #087a55;
    --success-bg: #eaf8f2;
    --error: #a61932;
    --error-bg: #fff0f3;
    --shadow: 0 24px 70px rgba(15, 36, 63, 0.13);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 10%, rgba(197, 31, 61, 0.09), transparent 28rem),
        linear-gradient(180deg, var(--cream) 0, #f8f8f7 42rem, #eef1f4 100%);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0 0 auto;
    height: 8px;
    background: linear-gradient(90deg, var(--red) 0 31%, var(--navy) 31% 100%);
    content: "";
    z-index: 10;
}

.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 32px;
}

.intro {
    position: relative;
    max-width: 1040px;
    margin-bottom: 38px;
    padding-left: 252px;
}

.brand-mark {
    position: absolute;
    top: 0;
    left: 0;
    width: 229px;
    height: 70px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: var(--navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.subtitle {
    margin: 12px 0 22px;
    color: var(--muted);
    font-size: 17px;
}

.intro-note {
    display: flex;
    width: fit-content;
    max-width: 660px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(16, 40, 70, 0.11);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
}

.intro-note p {
    margin: 0;
    color: #536273;
    font-size: 13px;
}

.note-icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--white);
    border-radius: 50%;
    background: var(--navy);
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
}

.form-card {
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(16, 40, 70, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 10px 0 25px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.section-heading:not(:first-of-type) {
    margin-top: 48px;
}

.section-heading > span {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--white);
    border-radius: 50%;
    background: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy-deep);
    font-size: 20px;
    line-height: 1.2;
}

.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.field {
    min-width: 0;
}

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

.field > label,
.date-field > legend {
    display: block;
    margin-bottom: 7px;
    color: #27394e;
    font-size: 13px;
    font-weight: 750;
}

.field > label span,
.date-field > legend span,
.form-footer p span {
    color: var(--red);
}

.field > label .optional-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.form-validation {
    margin-bottom: 28px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
    height: 48px;
    padding: 0 13px;
}

input[type="file"] {
    padding: 6px;
    color: var(--muted);
    font-size: 13px;
}

input[type="file"]::file-selector-button {
    height: 34px;
    margin-right: 10px;
    padding: 0 13px;
    border: 0;
    border-radius: 6px;
    color: var(--white);
    background: var(--navy);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

select {
    appearance: none;
    padding-right: 36px;
    background-image:
        linear-gradient(45deg, transparent 50%, #677687 50%),
        linear-gradient(135deg, #677687 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 21px,
        calc(100% - 12px) 21px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

textarea {
    min-height: 128px;
    padding: 12px 13px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(16, 40, 70, 0.1);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
    border-color: var(--red);
}

input::placeholder,
textarea::placeholder {
    color: #9ba5af;
}

.field small,
.date-field small {
    display: block;
    margin-top: 6px;
    color: #84909d;
    font-size: 11px;
}

.counter {
    text-align: right;
}

.date-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.date-selects {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.2fr;
    gap: 8px;
}

.date-selects label > span {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.notice {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 14px;
}

.notice-success {
    color: var(--success);
    border: 1px solid #b9e8d7;
    background: var(--success-bg);
}

.notice-error {
    color: var(--error);
    border: 1px solid #f0c1cc;
    background: var(--error-bg);
}

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

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

.form-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    color: var(--white);
    background: var(--red);
    box-shadow: 0 9px 22px rgba(197, 31, 61, 0.22);
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover {
    transform: translateY(-1px);
    background: var(--red-dark);
    box-shadow: 0 12px 26px rgba(197, 31, 61, 0.28);
}

button:focus-visible {
    outline: 3px solid rgba(197, 31, 61, 0.25);
    outline-offset: 3px;
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

footer {
    padding: 25px 0 0;
    color: #7b8794;
    text-align: center;
    font-size: 17px;
}

footer p {
    margin: 4px 0;
}

footer a {
    color: var(--navy);
    font-weight: 700;
}
@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 24px, 1120px);
        padding-top: 52px;
    }

    .intro {
        margin-bottom: 28px;
        padding-left: 0;
    }

    .brand-mark {
        position: static;
        width: 196px;
        height: 60px;
        margin-bottom: 21px;
    }

    h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 15px;
    }

    .intro-note {
        align-items: flex-start;
    }

    .form-card {
        padding: 27px 19px;
        border-radius: 15px;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .field-full {
        grid-column: auto;
    }

    .section-heading:not(:first-of-type) {
        margin-top: 39px;
    }

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

    .form-footer p {
        text-align: center;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .date-selects {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
