@font-face { font-family: Nunito; src: url(fonts/nunito-sans-latin-wght-normal.woff2); font-weight: 400 800; font-display: swap }
@font-face { font-family: Fraunces; src: url(fonts/fraunces-latin-wght-normal.woff2); font-weight: 700 800; font-display: swap }
* { box-sizing: border-box }
body { margin: 0; color: #1a1a2e; background: #faf7ef; font: 1.0625rem/1.55 Nunito, sans-serif }
header { background: #0f4a3c; color: white }
nav, main { max-width: 54rem; margin: auto; padding: 1rem clamp(1rem,4vw,3rem) }
nav, nav a { display: flex; align-items: center; gap: 1rem }
nav { justify-content: space-between }
nav a { color: white; min-height: 44px }
main { padding-block: clamp(2rem,6vw,5rem) }
h1, h2, legend { font-family: Fraunces, Georgia, serif; color: #0f4a3c; line-height: 1.15 }
h1 { font-size: clamp(2.4rem,6vw,4rem); margin: 0; overflow-wrap: anywhere }
aside { background: #fff0c9; border-left: 4px solid #ab7618; padding: 1rem 1.25rem }
fieldset, article { min-width: 0; margin: 2.5rem 0 0; padding: 1.25rem clamp(1rem,4vw,2rem) 2rem; border: 1px solid #d4dcd5; border-radius: 1rem; background: white }
legend { padding: 0 .4rem; font-size: 1.55rem; font-weight: 700 }
.field { margin-top: 1.25rem }
.required-mark { margin-inline-start: .2em; color: #a32f3e; font-size: .85em }
fieldset.field { padding: 0; border: 0 }
fieldset.field legend { padding: 0; font: inherit; font-weight: 750; color: inherit }
.radio-options { display: flex; gap: 1.5rem; flex-wrap: wrap }
.radio-options label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; cursor: pointer }
.radio-options input { margin: 0; width: 1.2rem; height: 1.2rem; accent-color: #007a62 }
label { display: block; font-weight: 750 }
input, select, textarea, button { font: inherit }
input:not([type=checkbox]):not([type=radio]), select, textarea { display: block; width: 100%; margin-top: .4rem; padding: .65rem .8rem; border: 1px solid #757e80; border-radius: .45rem; background: #fff; color: inherit }
textarea { resize: vertical; min-height: 6rem }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: #007a62; flex: none; margin: .22rem 0 0 }
.check { display: flex; align-items: flex-start; gap: .65rem }
small { display: block; color: #495552; margin-top: .2rem }
:focus-visible { outline: 3px solid #147bb1; outline-offset: 3px }
button { border: none; border-radius: 2rem; background: #0f4a3c; color: white; font-weight: 800; padding: .8rem 1.5rem; cursor: pointer }
a { color: #00644f }
#result:not(:empty) { background: #e3f2ea; padding: 1rem; border-radius: .5rem }
.confirmation { margin-top: 2.5rem; padding: clamp(1.25rem,4vw,2.5rem); border: 1px solid #b7d9c6; border-radius: 1rem; background: #e3f2ea }
.confirmation::before { content: "✓"; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #007a62; color: white; font-size: 1.6rem; font-weight: 800 }
.confirmation h2 { margin: 1rem 0 .5rem; font-size: clamp(1.5rem,4vw,2rem) }
.confirmation p { margin: .75rem 0 0; overflow-wrap: anywhere }
.confirmation:focus { outline: none }
#privacy { border-top: 1px solid #c3cec6; margin-top: 2rem }
[hidden] { display: none !important }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }

.application-page { background: white; color: #1a1a2e }
.application-page header { background: #1a1a2e }
.application-page header::before { content: ""; display: block; height: 8px; background: repeating-linear-gradient(135deg, #c8102e 0 14px, white 14px 28px) }
.application-page nav { max-width: 1200px; padding: 1.25rem clamp(1rem, 4vw, 2rem); flex-wrap: wrap }
.application-page nav a { color: #c9d1de; font-size: .9375rem; font-weight: 700; text-decoration: none }
.application-page nav a:hover { text-decoration: underline }
.application-page #back { color: #00d4aa; gap: .6rem }
.application-page main { max-width: 50rem; padding-block: clamp(2rem, 6vw, 4.5rem) }
.application-page h1, .application-page h2, .application-page legend { color: #1a1a2e }
.application-page h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); letter-spacing: -.02em }
.application-page #intro { margin: .75rem 0; color: #4a5168 }
.application-page #preview { background: transparent; padding: 0; margin: 0 0 .65rem; border: 0; font-size: .875rem; font-weight: 800; color: #007a62; text-transform: uppercase; letter-spacing: .14em }
.application-page form { margin-top: 1.75rem; background: #f2f5f8; border-radius: 20px; padding: clamp(1rem, 4vw, 2rem) }
.application-page fieldset { border-color: #e1e5eb; margin-top: 1.5rem }
.application-page button { background: #00d4aa; color: #1a1a2e }
.application-page #reset { margin-top: .6rem; min-height: 44px; padding: .5rem 0; color: #007a62; background: transparent; text-decoration: underline; text-underline-offset: .18em }
.application-page #privacy { font-size: .9375rem; color: #4a5168; border-color: #e1e5eb }
.application-page #privacy h2 { font-size: 1.25rem }
.application-page #status:empty { margin: 0 }
.application-page .confirmation { margin-top: 0 }
.chat-history { border-bottom: 1px solid #dce2ea; padding-bottom: .75rem; margin-bottom: 1.25rem }
.chat-history summary { cursor: pointer; color: #007a62; width: fit-content; padding: .4rem 0 }
.chat-history p { overflow-wrap: anywhere; white-space: pre-wrap }
.chat-history .question { font-weight: 700; margin-bottom: .25rem }
.chat-history .answer { margin: 0 0 1rem; color: #4a5168 }
.conversation { margin: 0 0 1rem }
.chat-question { margin: 0; font-weight: 750; font-size: clamp(1.15rem, 3vw, 1.35rem); line-height: 1.4 }
.quick-choices, .chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1rem }
.application-page .quick-choices button, .application-page .chat-actions .secondary { min-height: 44px; padding: .5rem 1rem; background: white; color: #1a1a2e; border: 1px solid #a6b2bf; font-weight: 700 }
.application-page .quick-choices button:hover, .application-page .chat-actions .secondary:hover { background: #e3f7f1; border-color: #007a62 }
.application-page #message { min-height: 3.5rem; border-radius: .7rem; border-color: #818a99 }
.chat-actions .shortcut { font-size: .8rem; margin: 0 }
.application-page button:disabled { opacity: .65; cursor: wait }
@media (pointer: coarse) { .chat-actions .shortcut { display: none } }
.applicant-message { margin: 0 0 1.25rem auto; padding: .6rem 1rem; max-width: 90%; width: fit-content; border-radius: 1rem 1rem .25rem 1rem; background: #fff; color: #364054; overflow-wrap: anywhere; white-space: pre-wrap }
.review-section { padding: .75rem 0; border-bottom: 1px solid #dce2ea }
.review-section summary { cursor: pointer; font-weight: 750 }
