:root {
    --navy: #102846;
    --navy-deep: #091b31;
    --red: #c51f3d;
    --red-dark: #a51631;
    --cream: #f6f3ed;
    --white: #fff;
    --text: #1c2b3b;
    --muted: #687687;
    --line: #d9dee5;
    --shadow: 0 24px 70px rgba(15, 36, 63, .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, .1), transparent 29rem),
        linear-gradient(180deg, var(--cream), #f8f8f7 43rem, #edf1f4);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}
body::before {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    height: 8px;
    background: linear-gradient(90deg, var(--red) 0 31%, var(--navy) 31%);
    content: "";
}
.page-shell { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 76px 0 60px; }
.intro {
    position: relative;
    min-height: 195px;
    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; }
h1 {
    margin: 0;
    color: var(--navy-deep);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
}
.subtitle { margin: 12px 0 22px; color: var(--muted); font-size: 17px; }
.submit-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--red);
    box-shadow: 0 10px 24px rgba(197, 31, 61, .22);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform .16s ease, background .16s ease;
}
.submit-button:hover { background: var(--red-dark); transform: translateY(-1px); }
.explore-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 30px;
}
.explore-card {
    overflow: hidden;
    border: 1px solid rgba(16, 40, 70, .09);
    border-radius: 16px;
    color: var(--navy-deep);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 42px rgba(15, 36, 63, .1);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.explore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 21px 48px rgba(15, 36, 63, .15);
}
.explore-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1.75 / 1;
    object-fit: cover;
}
.explore-card span {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}
.form-card {
    overflow: hidden;
    margin-top: 30px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(16, 40, 70, .08);
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow);
}
.section-heading {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 8px 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;
    border-radius: 50%;
    color: #fff;
    background: var(--navy);
    font-size: 12px;
    font-weight: 800;
}
.section-heading h2 { margin: 0; color: var(--navy-deep); font-size: 20px; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.field-grid, .upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 28px; }
.upload-grid { align-items: start; }
.field, .upload-field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.application-type-field {
    margin: 0;
    padding: 0;
    border: 0;
}
.application-type-field legend {
    margin-bottom: 8px;
    color: #27394e;
    font-size: 13px;
    font-weight: 750;
}
.application-type-field legend span { color: var(--red); }
.radio-options { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-options label {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}
.radio-options input {
    width: 17px;
    min-height: 0;
    height: 17px;
    margin: 0;
    padding: 0;
    accent-color: var(--red);
}
.radio-options label > span { color: #27394e; }
label { display: block; margin-bottom: 7px; color: #27394e; font-size: 13px; font-weight: 750; }
label > span, .form-footer p span { color: var(--red); }
label small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.field > small { display: block; margin-top: 6px; color: #84909d; font-size: 11px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-size: 15px;
}
input, select { min-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: #fff;
    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;
}
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, .1); }
.download-link { margin-top: 7px; font-size: 12px; }
a { color: var(--red-dark); font-weight: 750; }
.other-section { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.other-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.add-button, .remove-button {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--navy);
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}
.other-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
.remove-button { margin-top: 6px; background: #8a2438; font-size: 20px; }
.counter { display: block; margin-top: 6px; color: #84909d; text-align: right; font-size: 11px; }
.tool-card {
    margin-top: 32px;
    padding: 20px 22px;
    border-left: 4px solid var(--red);
    border-radius: 8px;
    background: #f6f8fa;
}
.tool-card p { margin: 7px 0 0; color: #526171; font-size: 13px; }
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.form-footer p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; }
.submit-button { min-width: 150px; }
.notice {
    display: grid;
    gap: 4px;
    margin-bottom: 28px;
    padding: 15px 18px;
    border-radius: 9px;
    font-size: 14px;
}
.notice-error { color: #8c1730; background: #fff0f3; }
.notice-success { color: #087050; background: #eaf8f2; }
.honeypot { position: absolute !important; left: -10000px !important; }
@media (max-width: 760px) {
    .page-shell { width: min(100% - 24px, 1120px); padding-top: 48px; }
    .intro { min-height: 0; padding-left: 0; text-align: center; }
    .brand-mark { position: static; width: 205px; height: 64px; margin: 0 auto 28px; }
    .form-card { margin-top: 42px; padding: 25px 18px; border-radius: 15px; }
    .explore-links { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
    .field-grid, .upload-grid { grid-template-columns: 1fr; }
    .form-footer { align-items: stretch; flex-direction: column; }
    .submit-button { width: 100%; }
}
