:root {
    color-scheme: light;
    --ink: #243746;
    --muted: #667788;
    --line: #cfd6dc;
    --accent: #00a9b8;
    --button: #173b4b;
    --error: #a32626;
    --success: #176b45;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    background: #f7f8f9;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.page-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.application-form {
    width: min(100%, 760px);
    padding: 30px;
    background: #fff;
    border: 1px solid #e3e7ea;
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(45, 67, 82, .09);
}

.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field { margin-bottom: 16px; }

label {
    display: block;
    margin-bottom: 6px;
    color: #596a77;
}

label span { color: #d53b3b; margin-left: 3px; }

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

input, select { height: 42px; padding: 0 13px; }
select { cursor: pointer; }
textarea { min-height: 105px; padding: 11px 13px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #718096; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 169, 184, .15); }

.input-with-icon { position: relative; }
.input-with-icon > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #5c6871; }
.input-with-icon input { padding-left: 40px; }

.file-control { display: flex; align-items: center; gap: 13px; min-width: 0; }
.file-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-button {
    display: grid;
    place-items: center;
    flex: 0 0 126px;
    height: 74px;
    margin: 0;
    border: 1px dashed #2585e5;
    border-radius: 7px;
    color: var(--ink);
    cursor: pointer;
    transition: background .16s ease, transform .1s ease;
}
.file-button:hover { background: #f2f8fe; }
.file-button:active, .submit-button:active { transform: translateY(1px); }
.file-control input:focus-visible + .file-button { outline: 3px solid rgba(0, 169, 184, .25); outline-offset: 2px; }
.file-name { color: var(--muted); overflow-wrap: anywhere; }

.submit-button {
    display: block;
    min-width: 106px;
    height: 42px;
    margin: 2px auto 0;
    padding: 0 22px;
    border: 0;
    border-radius: 7px;
    background: var(--button);
    color: #fff;
    font: 700 13px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .16s ease, transform .1s ease;
}
.submit-button:hover { background: #0e2e3c; }
.submit-button:focus-visible { outline: 3px solid rgba(0, 169, 184, .35); outline-offset: 3px; }

.notice { margin-bottom: 18px; padding: 12px 14px; border: 1px solid; border-radius: 7px; line-height: 1.45; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice-success { border-color: #9dd4bd; background: #eef9f4; color: var(--success); }
.notice-error { border-color: #e4adad; background: #fff3f3; color: var(--error); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 600px) {
    .page-shell { padding: 18px 12px; place-items: start center; }
    .application-form { padding: 20px 16px; }
    .name-grid { grid-template-columns: 1fr; gap: 0; }
    .file-control { align-items: flex-start; flex-direction: column; }
}

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