:root {
    --ink: #182033;
    --muted: #667085;
    --soft: #f6f3ec;
    --page: #f4f6f8;
    --panel: #ffffff;
    --line: #d9e0ea;
    --line-strong: #c2cad7;
    --green: #0f5f55;
    --green-dark: #0b443d;
    --gold: #b88935;
    --maroon: #763044;
    --danger: #9f2438;
    --danger-bg: #fff1f3;
    --success: #12623e;
    --success-bg: #ecf8f1;
    --shadow: 0 24px 70px rgba(24, 32, 51, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(15, 95, 85, 0.10), rgba(244, 246, 248, 0) 360px),
        var(--page);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(24, 32, 51, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 32, 51, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, #000 0, transparent 560px);
}

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

.intro {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(15, 95, 85, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 243, 236, 0.92)),
        var(--panel);
    box-shadow: var(--shadow);
}

.intro::after {
    content: "EBA";
    position: absolute;
    right: 28px;
    bottom: -34px;
    color: rgba(15, 95, 85, 0.055);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 168px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.brand-lockup {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(15, 95, 85, 0.14);
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.13);
}

.eyebrow,
.sub-eyebrow,
.section-kicker {
    margin: 0;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
}

.sub-eyebrow {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.intro-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: end;
    padding: 42px 28px 34px;
}

h1,
h2,
legend {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    color: #121827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.02;
}

.intro-grid > div > p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #4f5b6d;
    font-size: 18px;
    line-height: 1.65;
}

.notice-panel {
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 18px 18px 17px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 35px rgba(24, 32, 51, 0.08);
}

.notice-panel span {
    display: block;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.notice-panel strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.notice-panel p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.form-panel {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.form-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.section-kicker {
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.form-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.1;
}

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

.form-heading b,
label b {
    color: var(--danger);
}

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

fieldset + fieldset {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

legend {
    margin-bottom: 16px;
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 800;
}

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

label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

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

label span {
    color: #273244;
    font-size: 14px;
    font-weight: 750;
}

.checkbox-field {
    display: flex;
    gap: 10px;
    align-items: center;
    align-self: end;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background-color: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.checkbox-field input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--green);
}

.checkbox-field:hover {
    border-color: #aeb8c7;
}

.checkbox-field:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(15, 95, 85, 0.13);
}

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

input:not([type="file"]),
select {
    height: 48px;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 21px,
        calc(100% - 12px) 21px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #aeb8c7;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--green);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(15, 95, 85, 0.13);
}

textarea {
    resize: vertical;
    line-height: 1.55;
}

input[type="file"] {
    min-height: 72px;
    padding: 18px;
    border-style: dashed;
    background: #faf9f5;
}

input[type="file"]::file-selector-button {
    margin-right: 14px;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    background: var(--green);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.captcha-box {
    max-width: 360px;
    border: 1px solid rgba(15, 95, 85, 0.16);
    border-radius: 8px;
    padding: 16px;
    background: #fbfcfd;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

button {
    min-width: 190px;
    border: 0;
    border-radius: 7px;
    padding: 14px 24px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 12px 25px rgba(15, 95, 85, 0.22);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover,
button:focus {
    background: var(--green-dark);
    box-shadow: 0 14px 30px rgba(15, 95, 85, 0.28);
    transform: translateY(-1px);
}

.alert {
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 14px 16px;
    line-height: 1.5;
}

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

.alert.success {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid rgba(18, 98, 62, 0.24);
}

.alert.error {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid rgba(159, 36, 56, 0.22);
}

@media (max-width: 860px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .notice-panel {
        max-width: 520px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 24px, 1120px);
        padding: 20px 0 34px;
    }

    .brand-lockup,
    .intro-grid,
    .form-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        font-size: 15px;
    }

    .intro-grid {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .intro-grid > div > p {
        font-size: 16px;
    }

    .intro::after {
        right: 12px;
        bottom: -18px;
        font-size: 96px;
    }

    .form-heading {
        display: block;
    }

    .form-heading p {
        margin-top: 10px;
    }

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

    .form-actions {
        display: block;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .brand-lockup {
        gap: 12px;
    }

    h1 {
        font-size: 34px;
    }

    .form-panel {
        padding-top: 22px;
        padding-bottom: 22px;
    }
}
