/* ==========================================================================
   Welcome popup (2 steps) — uses tokens from style.css
   ========================================================================== */
.wp {
    width: min(720px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
    margin: auto; padding: 0; border: 0; border-radius: 20px; overflow: auto;
    background: #fff; color: var(--ink-2);
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .5);
}
.wp::backdrop { background: rgba(9, 22, 32, .62); }
.wp[open] { animation: modal-in .28s cubic-bezier(.2, .7, .2, 1); }
.wp--split { width: min(980px, calc(100% - 32px)); }

.wp__close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: var(--surface); color: var(--ink);
    transition: background-color .15s ease;
}
.wp__close:hover { background: var(--line); }

/* ---------- Step 1 ---------- */
.wp__step--1 { padding: 56px 52px 44px; text-align: center; }
.wp__title { font-size: 32px; padding-inline: 32px; }
.wp__sub { margin-top: 10px; font-size: 17px; color: var(--muted); }

.wp__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.wp__card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 34px 22px 28px; text-align: center;
    background: #fff; border: 2px solid var(--line); border-radius: 16px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.wp__card:hover { border-color: var(--brand-100); }
.wp__card[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 4px var(--brand-100); }
.wp__check {
    position: absolute; top: 14px; right: 14px;
    display: grid; place-items: center; width: 26px; height: 26px;
    border: 2px solid var(--line); border-radius: 50%; background: #fff; color: transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.wp__card[aria-pressed="true"] .wp__check { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.wp__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); transition: background-color .2s ease; }
.wp__card[aria-pressed="true"] .wp__icon { background: #fff; }
.wp__card-title { margin-top: 4px; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--ink); }
.wp__card-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }

.wp__actions { display: flex; justify-content: center; margin-top: 34px; }
.wp__continue { min-width: 220px; }
.wp__continue:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Step 2 ---------- */
.wp__step--2 { display: grid; grid-template-columns: 330px minmax(0, 1fr); }
.wp__left { display: flex; flex-direction: column; gap: 22px; padding: 48px 34px; background: var(--brand); color: #06293b; }
.wp__logo { align-self: flex-start; display: inline-flex; padding: 10px 14px; border-radius: 12px; background: #fff; }
.wp__logo img { height: 44px; width: auto; }
.wp__tag { font-family: var(--font-head); font-weight: 600; font-size: 25px; line-height: 1.25; color: #06293b; }
.wp__points { list-style: none; display: grid; gap: 12px; margin-top: auto; }
.wp__points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.wp__points svg { flex: none; margin-top: 2px; }

.wp__right { padding: 44px 40px 30px; }
.wp__form-title { font-size: 26px; padding-right: 48px; }
.wp__pro { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--brand-50); color: var(--brand-800); font-size: 14.5px; font-weight: 500; }
.wp__form { margin-top: 18px; gap: 14px; }

.wp__services { min-width: 0; margin: 0; padding: 0; border: 0; }
.wp__services legend { margin-bottom: 8px; padding: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.wp__svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wp__svc {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px;
    border: 1.5px solid #cbd5dd; border-radius: 10px; cursor: pointer;
    font-size: 14.5px; line-height: 1.3; color: var(--ink-2);
    transition: border-color .15s ease, background-color .15s ease;
}
.wp__svc:hover { border-color: var(--brand); }
.wp__svc input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--brand-700); cursor: pointer; }
.wp__svc:has(input:checked) { border-color: var(--brand-700); background: var(--brand-50); color: var(--ink); }
.wp__svc:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.wp__services[aria-invalid="true"] .wp__svc { border-color: var(--danger); }
.wp__services .field__error { margin-top: 8px; }

.wp__actions--split { justify-content: space-between; gap: 12px; margin-top: 2px; }
.wp__actions--split .btn--primary { flex: 1; }

/* ---------- Responsive: 1850 → 360 (popup is width-capped, so changes start at 991) ---------- */
@media (max-width: 991px) {
    .wp__step--2 { grid-template-columns: 270px minmax(0, 1fr); }
    .wp__left { padding: 40px 26px; }
    .wp__tag { font-size: 21px; }
    .wp__right { padding: 40px 28px 26px; }
}
@media (max-width: 767px) {
    .wp, .wp--split { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
    .wp__close { top: 12px; right: 12px; }

    .wp__step--1 { padding: 48px 24px 28px; }
    .wp__title { font-size: 25px; padding-inline: 28px; }
    .wp__sub { font-size: 16px; }
    .wp__cards { gap: 14px; margin-top: 26px; }
    .wp__card { padding: 28px 16px 22px; }
    .wp__icon { width: 64px; height: 64px; }
    .wp__actions { margin-top: 26px; }
    .wp__step--2 { grid-template-columns: minmax(0, 1fr); }
    .wp__left { flex-direction: row; align-items: center; gap: 14px; padding: 18px 64px 18px 20px; }
    .wp__logo { padding: 6px 10px; border-radius: 10px; }
    .wp__logo img { height: 32px; }
    .wp__tag { font-size: 16px; }
    .wp__points { display: none; }
    .wp__close { background: rgba(255, 255, 255, .75); }
    .wp--split .wp__close { top: 16px; }
    .wp__right { padding: 24px 22px 22px; }
    .wp__form-title { font-size: 23px; padding-right: 0; }
}
@media (max-width: 575px) {
    .wp__cards { grid-template-columns: 1fr; }
    .wp__card { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; padding: 18px 48px 18px 16px; text-align: left; }
    .wp__icon { grid-row: span 2; width: 56px; height: 56px; }
    .wp__icon svg { width: 26px; height: 26px; }
    .wp__card-title { margin-top: 0; align-self: end; font-size: 18px; }
    .wp__card-desc { font-size: 14px; }
    .wp__check { top: 50%; transform: translateY(-50%); }
    .wp__continue { width: 100%; }
}
@media (max-width: 480px) {
    .wp__step--1 { padding: 44px 18px 22px; }
    .wp__title { font-size: 23px; padding-inline: 24px; }
    .wp__left { padding: 16px 60px 16px 16px; }
    .wp__tag { display: none; }
    .wp__right { padding: 20px 18px 18px; }
    .wp__svc { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 360px) {
    .wp__title { font-size: 21px; }
    .wp__svc-grid { grid-template-columns: 1fr; }
    .wp__actions--split .btn--ghost { padding-inline: 16px; }
}
@media (max-width: 340px) {
    .wp__actions--split .btn { padding-inline: 14px; font-size: 15px; }
}