/* Blochează scroll-ul când modalul e deschis */
body.adom-modal-open { overflow: hidden; }

/* ========== MODAL ========== */
.adom-modal { display: none; position: fixed; inset: 0; z-index: 999999; }
.adom-modal.is-open { display: block; }

.adom-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(15, 20, 60, .78);
    backdrop-filter: blur(4px);
}

.adom-modal-box {
    position: relative;
    max-width: 980px;
    width: calc(100% - 40px);
    max-height: 92vh;
    margin: 4vh auto;
    background: #fff;
    border-radius: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
    animation: adomFadeIn .25s ease;
}
@keyframes adomFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.adom-modal-close {
    position: absolute; top: 12px; right: 14px;
    z-index: 20;
    background: rgba(255,255,255,.92);
    border: 0; border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 22px; line-height: 1;
    cursor: pointer; color: #1a1f7a;
    transition: background .15s, transform .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.adom-modal-close:hover { background: #fff; transform: scale(1.05); }

/* ========== APP ========== */
.adom-app { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #1e2a78; }

/* ========== HEADER cu background image + overlay + 5 texte ========== */
.adom-header {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1f7a;
    color: #fff;
    padding: 3rem 2.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.adom-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(42, 47, 184, .82) 0%,
        rgba(26, 31, 122, .9) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.adom-header-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

/* 1. Tagline */
.adom-tagline {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 0 0 .8rem;
    opacity: .95;
}

/* 2. Titlu conținut */
.adom-content-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
    margin: 0 0 .8rem;
    color: #fff;
}

/* 3. Conținut */
.adom-content {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 auto 1.2rem;
    max-width: 620px;
    opacity: .95;
}

/* 4. Titlu (mic) */
.adom-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin: .8rem 0 .3rem;
    opacity: .9;
}

/* 5. Subtitlu */
.adom-subtitle {
    font-size: .95rem;
    margin: 0;
    opacity: .85;
}

/* ========== CONȚINUT FORMULAR ========== */
.adom-form { padding: 0; margin: 0; background: #fff; }
.adom-step { padding: 3rem 4rem; background: #fff; }

/* ========== CÂMPURI ========== */
.adom-field { margin-bottom: 1.2rem; position: relative; }
.adom-field input,
.adom-field select {
    width: 100% !important;
    padding: 10px !important;
    border: 1.5px solid #cfd4dc!important;
    border-radius: 8px!important;
    font-size: 1rem !important;
    color: #1e2a78 !important;
    background: #fff !important;
    height: auto !important;
    letter-spacing: .05em;
    box-sizing: border-box;
    transition: border-color .15s;
    font-family: inherit;
}
.adom-field input:focus,
.adom-field select:focus {
    outline: none;
    border-color: #2a2fb8;
}
.adom-field input::placeholder {
    color: #6b7280;
    letter-spacing: .08em;
    font-size: .9rem;
}

.adom-field-icon .adom-icon {
    position: absolute;
    left: 1.2rem; top: 50%; transform: translateY(-50%);
    color: #6b7280; font-size: 1.6rem; z-index: 1;
}
.adom-field-icon input { padding-left: 40px !important }

/* ========== CHECKBOX ========== */
.adom-check {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    font-size: .9rem;
    color: #4a5478;
    line-height: 1.5;
    cursor: pointer;
    width: 100% !important;
}
.adom-check input[type=checkbox] {
    width: 14px;
    height: 14px;
    margin-top: .15rem;
    flex-shrink: 0;
    accent-color: #2a2fb8;
    cursor: pointer;
}
.adom-check a { color: #2a2fb8; text-decoration: underline; }

.adom-legal {
    font-size: .8rem;
    color: #6b7280;
    margin: 1.4rem 0 1.5rem;
    line-height: 1.55;
}

/* ========== BUTON PRINCIPAL ========== */
.adom-btn {
    background: #ef8134;
    color: #fff;
    border: 0;
    padding: 1.1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: transform .15s, box-shadow .15s, background .15s;
    font-family: inherit;
}
.adom-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(239,129,52,.35);
    background: #e5782a;
}
.adom-btn:disabled { opacity: .6; cursor: wait; }

/* ========== PROGRESS ========== */
.adom-progress {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .85rem; letter-spacing: .08em;
    color: #2a2fb8; margin-bottom: .8rem;
}
.adom-progress-label strong { color: #1a1f7a; font-weight: 800; }
.adom-progress-percent { color: #2a2fb8; }

.adom-progress-bar {
    height: 6px; background: #e8ebf2; border-radius: 3px; overflow: hidden;
    margin-bottom: 1.5rem;
}
.adom-progress-fill { height: 100%; background: #2a2fb8; transition: width .3s; }

.adom-progress-bar::after {
    content: "";
    display: block;
    height: 1px;
    background: #e8ebf2;
    margin-top: 1.5rem;
    width: 100%;
}

/* ========== ÎNTREBARE ========== */
.adom-question-title {
    font-size: 1.55rem;
    font-weight: 700;
    text-align: center;
    color: #1a1f7a;
    margin: 2rem 0 2rem;
    line-height: 1.35;
}

/* ========== OPȚIUNI ========== */
.adom-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
    margin-bottom: 2rem;
}
.adom-option {
    border: 1.5px solid #cfd4dc;
    border-radius: 10px;
    padding: 1.6rem .5rem;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
    display: block;
}
.adom-option input { display: none; }
.adom-option-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1f7a;
    margin-bottom: .5rem;
    line-height: 1;
}
.adom-option-label {
    display: block;
    font-size: .8rem;
    color: #1e2a78;
    line-height: 1.25;
}
.adom-option:hover { border-color: #ef8134; }
.adom-option:has(input:checked) {
    border-color: #ef8134;
    border-width: 2px;
    background: #fff7f0;
}
.adom-option:has(input:checked) .adom-option-num,
.adom-option:has(input:checked) .adom-option-label { color: #ef8134; }

/* ========== NAVIGARE ========== */
.adom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}
.adom-nav .adom-btn {
    width: auto;
    padding: 1rem 2.2rem;
    font-size: .9rem;
}
.adom-back {
    background: none;
    border: 0;
    color: #2a2fb8;
    font-size: .95rem;
    cursor: pointer;
    padding: .5rem 0;
    letter-spacing: .03em;
    font-family: inherit;
}
.adom-back:hover { text-decoration: underline; }

/* ========== LOADING ========== */
.adom-step-loading { text-align: center; }
.adom-step-loading .adom-progress-bar::after { display: none; }
.adom-loading-content { max-width: 640px; margin: 2rem auto 0; }

.adom-check,
svg.adom-check {
    width: 90px;
    height: auto;
    margin: 0;
}
@keyframes adomCheckPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: .9; }
}

.adom-loading-title {
    font-size: 2rem; font-weight: 800; color: #1a1f7a;
    margin: 0 0 1rem; line-height: 1.25; letter-spacing: -.01em;
}
.adom-loading-sub {
    font-size: 1.05rem; color: #1e2a78;
    line-height: 1.55; margin: 0 auto 1.5rem; max-width: 560px;
}
.adom-loading-cta {
    font-size: 1rem; color: #2a2fb8; font-weight: 500; margin: 0 0 2rem;
}

.adom-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 2rem; }
.adom-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #c9cbe0;
    display: inline-block;
    animation: adomDotBlink 1.2s infinite ease-in-out;
}
.adom-dot-active { background: #2a2fb8; }
.adom-dot:nth-child(1) { animation-delay: 0s; }
.adom-dot:nth-child(2) { animation-delay: .2s; }
.adom-dot:nth-child(3) { animation-delay: .4s; }
@keyframes adomDotBlink {
    0%, 80%, 100% { transform: scale(1); opacity: .5; }
    40%           { transform: scale(1.3); opacity: 1; }
}

/* ========== REZULTAT ========== */
.adom-result {
    padding: 3rem 4rem;
    background: #fff;
    border-top: 4px solid #ef8134;
}
.adom-result h3 { color: #1a1f7a; font-size: 1.5rem; margin-bottom: 1rem; }
.adom-result p { font-size: 1rem; line-height: 1.6; color: #1e2a78; }
.adom-message { margin-top: .8rem; font-size: .9rem; color: #c00; }

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .adom-modal-box {
        width: 100%; max-width: none;
        margin: 0; max-height: 100vh;
        border-radius: 0;
    }
    .adom-header { min-height: 220px; padding: 2rem 1.2rem; }
    .adom-content-title { font-size: 1.4rem; }
    .adom-content { font-size: .9rem; }
    .adom-step { padding: 2rem 1.4rem; }
    .adom-result { padding: 2rem 1.4rem; }
    .adom-options { grid-template-columns: repeat(2, 1fr); }
    .adom-question-title { font-size: 1.2rem; }
    .adom-loading-title { font-size: 1.5rem; }
    .adom-loading-sub { font-size: .95rem; }
    svg.adom-check { width: 72px; height: 72px; }
    .adom-nav { flex-direction: column-reverse; gap: .8rem; }
    .adom-nav .adom-btn { width: 100%; }
}
/* ========== ASCUNDE TEXTELE DIN HEADER PE PAȘII DE ÎNTREBĂRI ========== */
.adom-modal-box.adom-in-questions .adom-tagline,
.adom-modal-box.adom-in-questions .adom-content-title,
.adom-modal-box.adom-in-questions .adom-content {
    display: none;
}