:root {
    --navy: #113c64;
    --navy-dark: #0b2d4b;
    --gold: #d4ad69;
    --ink: #263746;
    --muted: #6d7882;
    --line: #d9e0e6;
    --surface: #ffffff;
    --background: #f3f6f8;
    --danger: #b42318;
    --success: #24734e;
    --warning: #8a5b16;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar { background: var(--navy); color: #fff; font-size: 12px; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-links { display: flex; gap: 24px; }
.contact-links a { text-decoration: none; }
.contact-links a:hover { color: var(--gold); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 50%; color: var(--navy); font: 700 27px Georgia, serif; }
.brand-name { color: #353a3f; font: 34px Georgia, serif; letter-spacing: -1px; }
.operator { display: flex; align-items: center; gap: 20px; text-align: right; }
.operator-label { color: var(--navy); font-size: 13px; font-weight: 700; }

.hero { background: var(--navy); color: #fff; }
.compact-hero .container { padding-block: 40px; }
.hero h1 { margin: 5px 0 10px; font: 400 clamp(32px, 4vw, 48px)/1.12 Georgia, serif; }
.hero p:last-child { max-width: 720px; margin: 0; color: rgb(255 255 255 / 74%); line-height: 1.6; }
.eyebrow { margin: 0 0 10px; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.gold { color: var(--gold); }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 28px; align-items: start; padding-block: 42px 60px; }
.panel { overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 42px rgb(17 60 100 / 7%); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 24px 36px 22px; list-style: none; border-bottom: 1px solid #e8ecef; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #929ba3; font-size: 11px; text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: calc(50% + 24px); width: calc(100% - 48px); height: 1px; background: #d5dce2; }
.steps li.done::after { background: var(--navy); }
.steps li > span { z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #c6d0d8; border-radius: 50%; background: #fff; font-weight: 800; }
.steps li.active, .steps li.done { color: var(--navy); }
.steps li.active > span { border-color: var(--navy); background: var(--navy); color: #fff; }
.steps li.done > span { border-color: var(--navy); color: var(--navy); }
.application-form, .content-padding { padding: 32px 36px 36px; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.section-heading.divided { margin-top: 34px; padding-top: 30px; border-top: 1px solid #e9edef; }
.section-heading > p { width: 34px; height: 34px; margin: 0; display: grid; place-items: center; border-radius: 50%; background: #edf2f5; color: var(--navy); font-size: 11px; font-weight: 800; }
.section-heading h2 { margin: 0; color: #1e364b; font: 400 23px Georgia, serif; }
.section-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; }
.field { min-width: 0; }
.field label { display: block; margin: 0 0 7px; color: #3d4d5b; font-size: 13px; font-weight: 650; }
.field label b, .form-actions > span b { color: var(--danger); }
.field input, .field select { width: 100%; height: 48px; padding: 10px 12px; border: 1px solid #cdd6dd; border-radius: 4px; outline: 0; background: #fff; color: #182b3c; font: 600 14px "Segoe UI", Arial, sans-serif; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #3c4e5c 50%), linear-gradient(135deg, #3c4e5c 50%, transparent 50%); background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field input:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgb(17 60 100 / 12%); }
[data-uppercase-greek] { text-transform: uppercase; }
.field input.invalid, .field select.invalid { border-color: var(--danger); background-color: #fff8f7; }
.field-error { min-height: 0; margin: 4px 0 0; color: var(--danger); font-size: 11px; }
.field-error:empty { display: none; }
.field-error.standalone { margin: 12px 0 0; text-align: center; font-size: 13px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #e9edef; }
.form-actions > span { color: var(--muted); font-size: 11px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border: 1px solid transparent; border-radius: 3px; font: 700 13px "Segoe UI", Arial, sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: wait; }
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--navy-dark); }
.button-outline { border-color: #aebbc5; background: #fff; color: var(--navy); }
.button-block { width: 100%; }
.text-link { color: var(--navy); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }

.sidebar { display: grid; gap: 18px; }
.info-card { border-top: 3px solid var(--gold); background: #fff; padding: 23px; box-shadow: 0 10px 30px rgb(17 60 100 / 6%); }
.info-card h2 { margin: 0; color: #1e364b; font: 400 21px Georgia, serif; }
.flow-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.flow-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: #5d6973; font-size: 13px; line-height: 1.5; }
.flow-list b { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #c8d2da; border-radius: 50%; color: var(--navy); font-size: 11px; }
.security-note { padding: 22px; background: #e7edf1; color: #5b6873; font-size: 13px; line-height: 1.6; }
.security-note strong { color: var(--navy); }
.security-note p { margin: 5px 0 0; }

.alert { margin-bottom: 22px; padding: 14px 16px; border-left: 3px solid; font-size: 13px; line-height: 1.55; }
.alert-error { border-color: var(--danger); background: #fff0ee; color: #842018; }
.alert-success { border-color: var(--success); background: #eaf5ef; color: #235f43; }
.alert-warning { border-color: #d09a3c; background: #fff7e6; color: #76501a; }
.compact-alert { margin-top: 24px; margin-bottom: 0; text-align: left; }
.narrow-page { max-width: 900px; padding-block: 42px 60px; }
.candidate-summary { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border: 1px solid var(--line); background: #f7f9fa; }
.candidate-summary div { min-width: 0; padding: 14px 16px; }
.candidate-summary div + div { border-left: 1px solid var(--line); }
.candidate-summary span, .candidate-summary strong { display: block; overflow-wrap: anywhere; }
.candidate-summary span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.candidate-summary strong { margin-top: 5px; color: #2c4357; font-size: 13px; }
.upload-form { margin-top: 24px; }
.upload-box { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed #b8c5cf; background: #f8fafb; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.upload-box:hover, .upload-box:focus-within { border-color: var(--navy); background: #f2f6f9; }
.upload-box input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-box strong { color: var(--navy); font: 400 20px Georgia, serif; }
.upload-box > span:last-of-type { color: var(--muted); font-size: 12px; }
.upload-icon { width: 55px; height: 66px; display: grid; place-items: center; margin-bottom: 5px; border: 2px solid var(--navy); border-radius: 3px; color: var(--navy); font-size: 12px; font-weight: 900; }
.selected-file { min-height: 18px; margin: 10px 0 0; color: var(--success); font-size: 13px; font-weight: 700; text-align: center; }
.turnstile-wrapper { display: flex; justify-content: flex-end; margin-top: 28px; }

.state-page { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 60px; }
.state-card { width: min(680px, 100%); padding: 45px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 42px rgb(17 60 100 / 7%); text-align: center; }
.state-card h1 { margin: 5px 0 12px; color: #1e364b; font: 400 clamp(28px, 4vw, 38px) Georgia, serif; }
.state-card h2 { margin: 20px 0 7px; color: #2c4357; font-size: 18px; }
.state-card > p, .state-card > div > p { color: var(--muted); line-height: 1.7; }
.state-card form { margin: 24px 0 18px; }
.state-card > .button { margin-top: 24px; }
.state-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; font-size: 27px; font-weight: 800; }
.success-icon { background: #e7f4ed; color: var(--success); }
.warning-icon { background: #fff3dc; color: var(--warning); }
.error-icon { background: #ffebe8; color: var(--danger); }
.site-footer { margin-top: auto; border-top: 1px solid #244e73; background: var(--navy); color: rgb(255 255 255 / 65%); font-size: 11px; }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }

@media (max-width: 850px) {
    .page-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 26px, 1180px); }
    .topbar-inner > span, .contact-links a:nth-child(2), .operator-label { display: none; }
    .nav-inner { min-height: 74px; }
    .brand-mark { width: 39px; height: 39px; font-size: 23px; }
    .brand-name { font-size: 29px; }
    .compact-hero .container { padding-block: 30px; }
    .hero h1 { font-size: 31px; }
    .page-grid, .narrow-page { padding-block: 24px 40px; }
    .steps { padding-inline: 14px; }
    .steps li strong { font-size: 10px; }
    .application-form, .content-padding { padding: 25px 18px 28px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
    .turnstile-wrapper { justify-content: center; }
    .sidebar { grid-template-columns: 1fr; }
    .candidate-summary { grid-template-columns: 1fr; }
    .candidate-summary div + div { border-left: 0; border-top: 1px solid var(--line); }
    .state-page { padding-block: 25px; }
    .state-card { padding: 32px 20px; }
    .footer-inner { padding-block: 20px; flex-direction: column; align-items: flex-start; }
}
