/* ============================================================
   EasyApply V2 - conversational one-question-at-a-time UI
   Brand: Estarta ink #1C1C28 / navy #28293D / red #E30613
   Fonts: Lama Rounded (existing files under Content/Fonts/)
   Replaces the Bootstrap-based styling; Site.css is no longer loaded.
   ============================================================ */

@font-face {
    font-family: "Lama Rounded";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("Fonts/Standard/LamaRounded-Regular.woff2") format("woff2"), url("Fonts/Standard/LamaRounded-Regular.woff") format("woff");
}

@font-face {
    font-family: "Lama Rounded";
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url("Fonts/Standard/LamaRounded-SemiBold.woff2") format("woff2"), url("Fonts/Standard/LamaRounded-SemiBold.woff") format("woff");
}

@font-face {
    font-family: "Lama Rounded";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("Fonts/Standard/LamaRounded-Bold.woff2") format("woff2"), url("Fonts/Standard/LamaRounded-Bold.woff") format("woff");
}

@font-face {
    font-family: "Lama Rounded Expanded";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("Fonts/Expanded/LamaRounded-BoldExpanded.woff2") format("woff2"), url("Fonts/Expanded/LamaRounded-BoldExpanded.woff") format("woff");
}

/* hidden until the trailing-slash check in EasyApplyV2.js reveals it */
html {
    visibility: hidden;
}

:root {
    --ea2-ink: #1C1C28;
    --ea2-navy: #28293D;
    --ea2-dim: #5C5F78;
    --ea2-faint: #8F90A6;
    --ea2-paper: #F7F7FA;
    --ea2-card: #FFFFFF;
    --ea2-line: #E4E4EB;
    --ea2-line-strong: #C7C9D9;
    --ea2-red: #E30613;
    --ea2-red-ink: #B00511;
    --ea2-red-wash: rgba(227, 6, 19, 0.07);
    --ea2-green: #2E9E86;
    --ea2-green-wash: rgba(46, 158, 134, 0.12);
    --ea2-shadow: 0 1px 2px rgba(28,28,40,0.05), 0 18px 44px -22px rgba(28,28,40,0.28);
    --ea2-body: "Lama Rounded", -apple-system, "Segoe UI", Arial, sans-serif;
    --ea2-display: "Lama Rounded Expanded", "Lama Rounded", -apple-system, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ea2-body);
    background: var(--ea2-paper);
    color: var(--ea2-ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ---------- page frame + header ---------- */
.ea2-frame {
    max-width: 980px;
    margin: 0 auto;
    padding: 22px 18px 36px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ea2-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ea2-hd-logo {
    height: 40px;
    width: auto;
    display: block;
}

.ea2-hd-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ea2-hd-title {
    font-family: var(--ea2-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ea2-navy);
}

.ea2-hd-title em {
    font-style: normal;
    color: var(--ea2-red);
}

.ea2-saved {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ea2-green);
    display: none;
    align-items: center;
    gap: 6px;
}

.ea2-saved.on {
    display: inline-flex;
}

.ea2-saved::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ea2-green);
}

/* ---------- stage ---------- */
.ea2-stage {
    flex: 1;
    background: var(--ea2-card);
    border: 1.5px solid var(--ea2-line);
    border-radius: 22px;
    box-shadow: var(--ea2-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 540px;
}

.ea2-bar {
    height: 5px;
    background: var(--ea2-line);
    flex-shrink: 0;
}

.ea2-bar i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ea2-red), #FF5B60);
    transition: width .45s cubic-bezier(.4,0,.2,1);
}

.ea2-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px clamp(20px, 6.5vw, 80px);
}

/* ---------- question panels ---------- */
.ea2-q {
    display: none;
}

.ea2-q.on {
    display: block;
    animation: ea2rise .3s ease;
}

@keyframes ea2rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.ea2-count {
    font-size: 12.5px;
    color: var(--ea2-red-ink);
    font-weight: 700;
    margin-bottom: 14px;
}

.ea2-count .of {
    color: var(--ea2-faint);
    font-weight: 600;
}

.ea2-q h1 {
    font-family: var(--ea2-display);
    font-weight: 700;
    font-size: clamp(21px, 3.2vw, 29px);
    line-height: 1.28;
    margin: 0 0 8px;
}

.ea2-help {
    font-size: 14px;
    color: var(--ea2-dim);
    margin: 0 0 26px;
    max-width: 60ch;
    line-height: 1.55;
}

/* ---------- single-line input ---------- */
.ea2-line {
    width: 100%;
    max-width: 540px;
    border: none;
    border-bottom: 2.5px solid var(--ea2-line-strong);
    background: none;
    outline: none;
    font-family: var(--ea2-body);
    font-size: clamp(18px, 2.3vw, 22px);
    color: var(--ea2-ink);
    padding: 8px 2px 10px;
    transition: border-color .2s;
    border-radius: 0;
}

.ea2-line:focus {
    border-bottom-color: var(--ea2-red);
}

.ea2-line::placeholder {
    color: var(--ea2-line-strong);
}

/* ---------- grouped fields ---------- */
.ea2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    max-width: 660px;
}

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

.ea2-f label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ea2-dim);
    margin-bottom: 7px;
}

.ea2-f label i {
    font-style: normal;
    color: var(--ea2-red);
}

.ea2-f label small {
    font-weight: 600;
    color: var(--ea2-faint);
    margin-left: 5px;
    font-size: 11px;
}

.ea2-ctl {
    width: 100%;
    font-family: var(--ea2-body);
    font-size: 15px;
    color: var(--ea2-ink);
    background: var(--ea2-paper);
    border: 1.5px solid var(--ea2-line-strong);
    border-radius: 11px;
    padding: 11px 13px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.ea2-ctl:focus {
    border-color: var(--ea2-red);
    box-shadow: 0 0 0 3px var(--ea2-red-wash);
}

.ea2-ctl::placeholder {
    color: var(--ea2-faint);
}

select.ea2-ctl {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238F90A6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 32px;
}

select.ea2-ctl:invalid,
select.ea2-ctl option[value=""] {
    color: var(--ea2-faint);
}

.ea2-f.err .ea2-ctl,
.ea2-f.err .ea2-line {
    border-color: var(--ea2-red);
}

.ea2-msg {
    display: none;
    font-size: 11.5px;
    color: var(--ea2-red-ink);
    font-weight: 700;
    margin-top: 5px;
}

.ea2-f.err .ea2-msg {
    display: block;
}

/* intl-tel-input harmony */
.iti {
    width: 100%;
}

.iti input.ea2-ctl {
    padding-left: 52px;
}

/* ---------- choice pills ---------- */
.ea2-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    max-width: 680px;
}

.ea2-pill {
    font-family: var(--ea2-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--ea2-ink);
    background: var(--ea2-paper);
    border: 1.5px solid var(--ea2-line-strong);
    border-radius: 12px;
    padding: 13px 20px;
    cursor: pointer;
    transition: border-color .14s, background .14s, color .14s;
}

.ea2-pill:hover {
    border-color: var(--ea2-red);
    background: var(--ea2-red-wash);
}

.ea2-pill.sel {
    border-color: var(--ea2-red);
    background: var(--ea2-red-wash);
    color: var(--ea2-red-ink);
}

.ea2-pills-empty {
    font-size: 13.5px;
    color: var(--ea2-faint);
    font-weight: 600;
}

/* the real selects stay in the DOM for the backend contract */
.ea2-native {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* ---------- file drop ---------- */
.ea2-drop {
    border: 2px dashed var(--ea2-line-strong);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 540px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.ea2-drop:hover,
.ea2-drop.drag {
    border-color: var(--ea2-red);
    background: var(--ea2-red-wash);
}

.ea2-drop b {
    font-size: 15.5px;
}

.ea2-drop p {
    margin: 5px 0 0;
    font-size: 12.5px;
    color: var(--ea2-faint);
}

.ea2-fchip {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1.5px solid var(--ea2-line-strong);
    background: var(--ea2-paper);
    border-radius: 12px;
    padding: 11px 14px;
    max-width: 540px;
    margin-top: 12px;
}

.ea2-fchip .fi {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--ea2-green-wash);
    color: var(--ea2-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 11px;
}

.ea2-fchip .fn {
    font-size: 13.5px;
    font-weight: 700;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ea2-fchip .fs {
    font-size: 11.5px;
    color: var(--ea2-faint);
}

.ea2-fchip button {
    border: none;
    background: none;
    color: var(--ea2-faint);
    font-size: 17px;
    cursor: pointer;
    padding: 2px 5px;
    line-height: 1;
}

.ea2-fchip button:hover {
    color: var(--ea2-red);
}

/* ---------- consent ---------- */
.ea2-consent {
    border: 1.5px solid var(--ea2-line-strong);
    border-radius: 14px;
    background: var(--ea2-paper);
    max-width: 660px;
}

.ea2-consent-scroll {
    max-height: 210px;
    overflow-y: auto;
    padding: 16px 18px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ea2-dim);
}

.ea2-consent-scroll h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--ea2-ink);
}

.ea2-consent-scroll .ar {
    direction: rtl;
    text-align: right;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--ea2-line-strong);
}

.ea2-consent-agree {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px 18px;
    border-top: 1.5px solid var(--ea2-line);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.ea2-consent-agree input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--ea2-red);
    flex-shrink: 0;
}

/* generic checkbox row (Present, add-language) */
.ea2-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ea2-ink);
}

.ea2-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--ea2-red);
}

/* ---------- captcha ---------- */
.ea2-captcha {
    max-width: 420px;
    border: 1.5px solid var(--ea2-line-strong);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--ea2-paper);
    margin-top: 18px;
}

.ea2-captcha-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ea2-dim);
    margin-bottom: 8px;
}

#divCaptcha img {
    border-radius: 8px;
    border: 1px solid var(--ea2-line);
    background: #fff;
}

#divCaptcha a {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ea2-red-ink);
    text-decoration: none;
    margin: 0 8px;
}

#divCaptcha a:hover {
    text-decoration: underline;
}

#divCaptcha input,
#CaptchaInputText {
    font-family: var(--ea2-body);
    font-size: 15px;
    color: var(--ea2-ink);
    background: #fff;
    border: 1.5px solid var(--ea2-line-strong);
    border-radius: 10px;
    padding: 9px 12px;
    outline: none;
    margin-top: 8px;
    max-width: 200px;
}

#divCaptcha input:focus {
    border-color: var(--ea2-red);
}

/* legacy validation message class (captcha flow reuses it) */
.invalid-msg {
    font-size: 11.5px;
    color: var(--ea2-red-ink);
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

.invalidBasicInput {
    border-color: var(--ea2-red) !important;
}

/* ---------- review ---------- */
.ea2-review {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 680px;
}

@media (max-width: 640px) {
    .ea2-review {
        grid-template-columns: 1fr;
    }
}

.ea2-rv {
    border: 1.5px solid var(--ea2-line);
    border-radius: 12px;
    padding: 11px 14px;
    background: var(--ea2-card);
    text-align: left;
    cursor: pointer;
    font-family: var(--ea2-body);
    transition: border-color .15s;
}

.ea2-rv:hover {
    border-color: var(--ea2-red);
}

.ea2-rv .k {
    font-size: 10.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ea2-faint);
    font-weight: 700;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.ea2-rv .k span {
    color: var(--ea2-red-ink);
    letter-spacing: 0;
    text-transform: none;
}

.ea2-rv .v {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ea2-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ea2-rv .v.empty {
    color: var(--ea2-faint);
    font-weight: 600;
}

/* ---------- actions / errors ---------- */
.ea2-acts {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.ea2-ok {
    font-family: var(--ea2-display);
    font-weight: 700;
    font-size: 15px;
    background: var(--ea2-navy);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 28px;
    cursor: pointer;
    transition: filter .15s, transform .08s;
}

.ea2-ok:hover {
    filter: brightness(1.18);
}

.ea2-ok:active {
    transform: scale(.97);
}

.ea2-ok.go {
    background: var(--ea2-red);
}

.ea2-ok:disabled {
    opacity: .55;
    cursor: default;
}

.ea2-skip {
    font-family: var(--ea2-body);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ea2-faint);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
}

.ea2-skip:hover {
    color: var(--ea2-dim);
    text-decoration: underline;
}

.ea2-enter {
    font-size: 12px;
    color: var(--ea2-faint);
}

.ea2-enter b {
    color: var(--ea2-dim);
}

.ea2-qerr {
    display: none;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ea2-red-ink);
    background: var(--ea2-red-wash);
    border-radius: 10px;
    padding: 10px 15px;
    max-width: 560px;
}

.ea2-qerr.on {
    display: block;
}

/* ---------- welcome / outcome ---------- */
.ea2-wel h1 {
    font-size: clamp(25px, 4vw, 36px);
}

.ea2-wel-meta {
    display: flex;
    gap: 22px;
    margin: 4px 0 28px;
    flex-wrap: wrap;
}

.ea2-wm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ea2-dim);
}

.ea2-wm::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ea2-red);
    flex-shrink: 0;
}

.ea2-badge {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
}

.ea2-badge.okc {
    background: var(--ea2-green-wash);
    color: var(--ea2-green);
}

.ea2-badge.warnc {
    background: rgba(227, 6, 19, 0.09);
    color: var(--ea2-red-ink);
}

.ea2-ref {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ea2-dim);
    background: var(--ea2-paper);
    border: 1.5px solid var(--ea2-line);
    border-radius: 10px;
    padding: 9px 16px;
    display: inline-block;
    margin-top: 4px;
    letter-spacing: .05em;
}

/* ---------- footer nav ---------- */
.ea2-ft {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-top: 1.5px solid var(--ea2-line);
    flex-shrink: 0;
    gap: 10px;
}

.ea2-ft-note {
    font-size: 11.5px;
    color: var(--ea2-faint);
}

.ea2-ft-note b {
    color: var(--ea2-dim);
}

.ea2-ft-nav {
    display: flex;
    gap: 7px;
}

.ea2-ft-nav button {
    width: 40px;
    height: 36px;
    border: 1.5px solid var(--ea2-line-strong);
    background: var(--ea2-card);
    border-radius: 10px;
    color: var(--ea2-dim);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .13s, color .13s;
}

.ea2-ft-nav button:hover:not(:disabled) {
    border-color: var(--ea2-red);
    color: var(--ea2-red-ink);
}

.ea2-ft-nav button:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 640px) {
    .ea2-frame {
        padding: 12px 10px 18px;
    }

    .ea2-main {
        padding: 26px 18px;
        justify-content: flex-start;
        padding-top: 34px;
    }

    .ea2-ft-note {
        display: none;
    }

    .ea2-ft {
        justify-content: flex-end;
    }
}

.ea2-hidden {
    display: none !important;
}

::selection {
    background: var(--ea2-red-wash);
}
