:root {
    --xealio-navy: #0a3556;
    --xealio-blue: #0b6ea8;
    --xealio-cyan: #1599be;
    --xealio-soft-blue: #eef8fc;
    --xealio-pale: #f5f8fa;
    --xealio-white: #ffffff;
    --xealio-text: #183247;
    --xealio-muted: #687b89;
    --xealio-line: #dfe7ec;
    --xealio-success: #177a52;
    --xealio-warning: #9a6410;
    --xealio-error: #b42318;
    --shadow: 0 22px 60px rgba(10, 53, 86, 0.11);
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--xealio-text);
    background: var(--xealio-white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 0.85;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: var(--xealio-blue); }

.xealio-page { min-height: 100vh; overflow: hidden; }
.hero {
    position: relative;
    padding: 34px 24px 102px;
    background:
        radial-gradient(circle at 92% 20%, rgba(21, 153, 190, .18), transparent 26%),
        radial-gradient(circle at 8% 100%, rgba(11, 110, 168, .12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f3f9fc 100%);
    border-top: 5px solid var(--xealio-blue);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff);
    pointer-events: none;
}
.hero__inner, .form-shell { width: min(1120px, 100%); margin: 0 auto; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--xealio-navy);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .08em;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--xealio-navy), var(--xealio-cyan));
    box-shadow: 0 9px 22px rgba(11, 110, 168, .22);
}
.brand__name { font-size: 20px; }
.hero__content { max-width: 850px; padding: 64px 0 0; }
.eyebrow, .step-kicker {
    margin: 0 0 9px;
    color: var(--xealio-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}
.hero h1 {
    margin: 0;
    max-width: 820px;
    color: var(--xealio-navy);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.hero__lead {
    max-width: 780px;
    margin: 24px 0 0;
    color: #3b586d;
    font-size: clamp(18px, 2vw, 22px);
}
.hero__benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__benefits span {
    padding: 9px 14px;
    border: 1px solid rgba(11,110,168,.18);
    border-radius: 999px;
    color: var(--xealio-navy);
    background: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 700;
    
}

.form-section { position: relative; z-index: 2; margin-top: -58px; padding: 0 24px 90px; }
.form-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--xealio-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--xealio-navy), var(--xealio-blue), var(--xealio-cyan));
}
.form-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 38px 44px 30px;
    border-bottom: 1px solid var(--xealio-line);
}
.form-card__header h2, .notice h2 {
    margin: 0;
    color: var(--xealio-navy);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -.025em;
}
.form-card__header p:not(.eyebrow) { max-width: 700px; margin: 11px 0 0; color: var(--xealio-muted); }
.duration {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--xealio-blue);
    background: var(--xealio-soft-blue);
    font-size: 13px;
    font-weight: 800;
}

.progress-wrap { padding: 28px 44px; background: var(--xealio-pale); border-bottom: 1px solid var(--xealio-line); }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--xealio-muted); font-size: 13px; font-weight: 700; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #dce7ed; }
.progress-track span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--xealio-blue), var(--xealio-cyan)); transition: width .28s ease; }
.step-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.step-nav li { display: flex; align-items: center; gap: 9px; color: #81919d; font-size: 14px; font-weight: 750; }
.step-nav li span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #cbd8df; border-radius: 50%; background: #fff; font-size: 12px; }
.step-nav li.is-active, .step-nav li.is-complete { color: var(--xealio-navy); }
.step-nav li.is-active span { color: #fff; border-color: var(--xealio-blue); background: var(--xealio-blue); }
.step-nav li.is-complete span { color: var(--xealio-success); border-color: rgba(23,122,82,.25); background: #edf8f3; }

form { padding: 42px 44px 34px; }
.form-step[hidden] { display: none; }
.step-heading { max-width: 760px; margin-bottom: 30px; }
.step-heading h3 { margin: 0; color: var(--xealio-navy); font-size: clamp(25px, 3vw, 32px); letter-spacing: -.025em; }
.step-heading p:not(.step-kicker) { margin: 8px 0 0; color: var(--xealio-muted); }
.form-grid { display: grid; gap: 23px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--wide { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label, .field legend {
    display: block;
    margin: 0 0 8px;
    color: var(--xealio-text);
    font-size: 14px;
    font-weight: 760;
}
.field label span, .field legend span { color: var(--xealio-error); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
    width: 100%;
    color: var(--xealio-text);
    background: #fff;
    border: 1px solid #cfdbe2;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:not([type="checkbox"]):not([type="file"]), .field select { min-height: 50px; padding: 0 14px; }
.field textarea { display: block; min-height: 115px; padding: 13px 14px; resize: vertical; }
.field select { appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, #6e8290 50%), linear-gradient(135deg, #6e8290 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--xealio-blue); box-shadow: 0 0 0 4px rgba(11,110,168,.11); }
.field input::placeholder, .field textarea::placeholder { color: #98a7b1; }
.field-help { display: block; margin-top: 7px; color: var(--xealio-muted); font-size: 12.5px; }
.field-error, .group-error { display: none; margin-top: 7px; color: var(--xealio-error); font-size: 12.5px; font-weight: 650; }
.field.is-invalid .field-error, .option-group.is-invalid .group-error { display: block; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--xealio-error) !important; box-shadow: 0 0 0 3px rgba(180,35,24,.08); }

.option-group { margin: 0; padding: 0; border: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-card, .consent {
    position: relative;
    display: flex !important;
    align-items: flex-start;
    gap: 11px;
    margin: 0 !important;
    cursor: pointer;
}
.check-card {
    min-height: 54px;
    padding: 13px 14px;
    border: 1px solid var(--xealio-line);
    border-radius: 12px;
    background: #fff;
    font-weight: 650 !important;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.check-card:hover { transform: translateY(-1px); border-color: #accbdb; }
.check-card:has(input:checked) { border-color: var(--xealio-blue); background: var(--xealio-soft-blue); }
.check-card input, .consent input { position: absolute; opacity: 0; pointer-events: none; }
.check-card__box, .consent__box {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid #aebfc9;
    border-radius: 5px;
    background: #fff;
}
.check-card input:checked + .check-card__box, .consent input:checked + .consent__box { border-color: var(--xealio-blue); background: var(--xealio-blue); }
.check-card input:checked + .check-card__box::after, .consent input:checked + .consent__box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.check-card input:focus-visible + .check-card__box, .consent input:focus-visible + .consent__box { box-shadow: 0 0 0 4px rgba(11,110,168,.14); }
.consent-block { display: grid; gap: 14px; padding: 20px; border-radius: 14px; background: var(--xealio-pale); }
.consent { line-height: 1.45; font-weight: 550 !important; }

.upload-field input[type="file"] {
    display: block;
    width: 100%;
    padding: 16px;
    border: 1px dashed #aac4d2;
    border-radius: 12px;
    background: var(--xealio-soft-blue);
    color: var(--xealio-text);
}
.upload-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--xealio-blue);
    font-weight: 750;
    cursor: pointer;
}
.file-list { display: grid; gap: 6px; margin-top: 10px; }
.file-list__item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; background: var(--xealio-pale); color: var(--xealio-muted); font-size: 12.5px; }

.form-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--xealio-line); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button--primary { margin-left: auto; color: #fff; background: linear-gradient(135deg, var(--xealio-navy), var(--xealio-blue)); box-shadow: 0 10px 24px rgba(10,53,86,.18); }
.button--secondary { color: var(--xealio-navy); background: #fff; border: 1px solid var(--xealio-line); }
.form-security { margin: 22px 0 0; color: var(--xealio-muted); font-size: 12px; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.notice {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 20px 22px;
    border: 1px solid;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(10,53,86,.07);
}
.notice h2 { font-size: 23px; }
.notice p { margin: 5px 0 0; }
.notice ul { margin: 9px 0 0; padding-left: 20px; }
.notice__icon { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 900; }
.notice--success { border-color: rgba(23,122,82,.3); background: #f5fbf8; }
.notice--success .notice__icon { background: var(--xealio-success); }
.notice--warning { border-color: rgba(154,100,16,.3); background: #fffaf1; }
.notice--warning .notice__icon { background: var(--xealio-warning); }
.notice--error { border-color: rgba(180,35,24,.25); background: #fff7f6; }
.notice--error .notice__icon { background: var(--xealio-error); }
.notice__reference { font-size: 14px; }

@media (max-width: 780px) {
    .hero { padding: 24px 18px 84px; }
    .hero__content { padding-top: 48px; }
    .hero h1 { font-size: 45px; }
    .form-section { padding: 0 12px 55px; }
    .form-card__header, .progress-wrap, form { padding-left: 22px; padding-right: 22px; }
    .form-card__header { display: block; }
    .duration { display: inline-block; margin-top: 16px; }
    .form-grid--2, .check-grid, .check-grid--compact { grid-template-columns: 1fr; }
    .step-nav li { font-size: 0; }
    .step-nav li span { font-size: 12px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 38px; }
    .hero__lead { font-size: 17px; }
    .form-card { border-radius: 18px; }
    .form-card__header, .progress-wrap, form { padding-left: 17px; padding-right: 17px; }
    form { padding-top: 30px; }
    .form-actions { flex-direction: column-reverse; }
    .button { width: 100%; }
    .button--primary { margin-left: 0; }
}
