﻿/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(14, 70, 255, 0.09) 100%
    );
    color: #212121;
    line-height: 1.4;
}

.is-loading .step-top-banner,
.is-loading .subtext-content,
.is-loading #multi-step-wrapper {
    display: none;
}

/* Utility: center wrapper */
.multi-step-wrapper.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0px 4px 26px 0px rgba(0, 0, 0, 0.16);
    border-radius: 26px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: #ffffff;
}

.multi-step-wrapper.form-wrapper.full-form {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0px 4px 26px 0px rgba(0, 0, 0, 0.16);
    border-radius: 26px;
    margin-top: 1rem;
    margin-bottom: 2rem;
    background-color: #ffffff;
}

.central-circle {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 610px;
    height: auto;
    z-index: -1;
}

/* Hide all steps except the active one */
.step {
    display: none;
}

/* ───────────────────────────────────────────────────────────
   Контейнер самой “фоновой” полосы
─────────────────────────────────────────────────────────── */
.container-progress {
    text-align: center !important;
    margin: 0 1rem;
}

#progress-container {
    width: 100%;
    background-color: #e0e0e0;
    display: inline-block;
    max-width: 500px;
    border-radius: 10px;
    height: 12px;
    margin-top: 0.5rem;
    overflow: hidden;
    outline: #FFF solid 6px;
    box-shadow: 0px 2px 26px 0px rgba(0, 0, 0, 0.16);
}

/* ───────────────────────────────────────────────────────────
   Синяя “заполняющая” полоса внутри
─────────────────────────────────────────────────────────── */
#progress-bar {
    width: 0%; /* по умолчанию пусто */
    height: 100%;
    background-color: #f97316; /* любой синий цвет */
    border-radius: 10px;
    transition: width 0.3s ease; /* плавное изменение ширины */
}

/* ==========================================================================
   STEP 1: ZIP CODE
   ========================================================================== */
#step-zip {
    display: block; /* first step is visible by default */
}

.multi-step-wrapper .step.reject {
    display: block;
}

.step-top-reject-image {
    width: 100%;
    text-align: center;
}

.reject-avatar {
    position: relative;
    display: inline-block;
    width: 146px;
    height: auto;
}

.card-footer a {
    color: #FFF;
    text-decoration: underline;
}

.match-card h2 {
    padding: 1.6rem;
}

.match-card h3 {
    color: RGBA(0, 0, 0, 0.6);
    font-weight: 500;
}

.step-top-banner {
    position: relative;
    padding: 16px;
    text-align: center;
    overflow: visible;
}

.banner-step-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 120px;
    overflow: visible;
}

.banner-avatar {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: scaleX(-1);
}

.banner-avatar.full-form {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0%);
}

.banner-text {
    position: relative;
    padding: 8px 20px;
    margin-left: 151px;
    text-align: left;
}

.banner-link {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: underline;
    margin-bottom: 0.6rem;
}

.banner-link:hover {
    text-decoration: none;
}

select:disabled {
    background-color: light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3));
    color: light-dark(rgb(84, 84, 84), rgb(170, 170, 170));
    pointer-events: none;
}

.edit-banking-details-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.edit-banking-details-btn {
    font-size: 14px;
    text-decoration: underline;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: rgba(0, 0, 0, 0.6);
    padding: 9px;
    box-shadow: 0px 4px 26px 0px rgba(0, 0, 0, 0.16);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 9px;
}

.input-ssn-container {
    display: flex;
    flex-direction: column;
}

.input-ssn {
    max-width: 180px;
    font-size: 14px;
    padding: 18px 10px;
}

.bank-social-security-number {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background-color: #fff7ed;
    border-radius: 10px;
    padding: 10px
}

.bank-social-security-number.is-valid {
    background-color: #F2F9F2;
}

.bank-ssn-content {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.bank-social-security-number label {
    font-size: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px
}

.bank-employment {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background-color: #fff7ed;
    border-radius: 10px;
    padding: 10px
}

.bank-employment.is-valid {
    background-color: #F2F9F2;
}

.bank-drivers-license.is-valid {
    background-color: #F2F9F2;
}

.bank-employment-content {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 15px;
}

.bank-drivers-license {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background-color: #fff7ed;
    border-radius: 10px;
    padding: 10px
}

.bank-drivers-license-content {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 15px;
}

.input-drivers-license-container {
    display: flex;
    justify-content: end;
    width: 100%;
    flex-direction: column;
}

.bank-employment label {
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 5px;
}

.input-employment-container {
    display: flex;
    justify-content: end;
    width: 100%;
    flex-direction: column;
}

.bank-info-title {
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 10px;
}

.bank-details-wrapper {
    width: 100%;
    background-color: #F4F5F8;
    padding: 10px 20px;
    border-radius: 10px;
}

.edit-banking-details-btn:hover {
    color: rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 1);
}

@media screen and (max-width: 360px) {
    .edit-banking-details-btn {
        font-size: 13px;
        padding: 8px;
        gap: 4px;
    }

    .edit-banking-details-btn img {
        width: 14px;
        height: 14px;
    }
}

.bank-account-masked-input-container {
    position: relative;
}

.edit-banking-details-bank-account-input-btn {
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    right: 20px;
}

.bank-aba-masked-input-container {
    position: relative;
}

.edit-banking-details-aba-input-btn {
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    right: 20px;
}

.bubble-text {
    position: relative;
    margin-left: 175px;
    text-align: left;
    font-size: 22px;
    font-weight: 600;
    background: #FFF;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0px 4px 26px 0px rgba(0, 0, 0, 0.16);
}

.bubble-text .bubble-round {
    left: -2rem;
}

@media screen and (max-width: 768px) {

    .bubble-text .bubble-round {
        left: -1.5rem;
    }

}

.banner-text h2 {
    font-size: 26px;
    margin-bottom: 5px;
    max-width: 388px;
}

.bubble-background {
    background: #FFF;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0px 4px 26px 0px rgba(0, 0, 0, 0.16);
}

.bubble-round {
    position: absolute;
    top: 0.5rem;
    left: -1rem;
    background: #FFF;
    width: 20px;
    height: 20px;
    border-radius: 16px;
    box-shadow: 0px 4px 26px 0px rgba(0, 0, 0, 0.16);
}

.banner-text p {
    font-size: 1rem;
    color: #555;
}

#animated-circle {
    display: none;
}

#marketing-partners-popup-overlay {
    display: none;
}

.tooltip-icon {
    background-color: #000;
    color: #FFF;
    padding: 0px 6px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.tooltip-box {
    position: absolute;
    background-color: #FFF;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    width: 200px;
    margin-left: 0;
    color: #333;
    border: solid 1px #000;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .tooltip-box {
        margin-left: -200px;
    }

}

/* Стили для модального окна */
.popup-modal {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 560px;
    width: 90%;
    position: fixed;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 364px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    z-index: 2;
}

/* Кнопка закрытия */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #777;
}

.popup-close-btn:hover {
    color: #333;
}

/* Содержимое внутри попапа */
.popup-content p {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.4;
}

.popup-content ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.popup-content li {
    margin-bottom: 5px;
    font-size: 14px;
}

.label-text {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 0rem !important;
}

.avatar-bubble .avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    transform: matrix(-1, 0, 0, 1, 0, 0);
    display: inline-block;
    position: relative;
    float: left;
}

p.consent-text {
    text-align: left;
    font-size: 14px;
    margin-bottom: 16px;
}

p.consent-text a {
    color: #F97316;
    text-decoration: underline;
}

.speech-bubble {
    background-image: url("../img/bubble.svg");
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 16px;
    display: inline-block;
    max-width: 330px;
    height: 99px;
    font-size: 1.2rem;
    line-height: 1.2;
    padding: 24px 10px 9px 18px;
    /* Drop shadow */
    filter: drop-shadow(0px 4px 11px rgba(249, 115, 22, 0.16));
}

.input-field {
    width: 100%;
    padding: 16px 16px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.2s;
    /* Drop shadow */
    filter: drop-shadow(0px 4px 11px rgba(249, 115, 22, 0.16));
    /* Inner shadow */
    box-shadow: inset 0px 6px 6px rgba(0, 0, 0, 0.06);
}

.input-field:focus {
    outline: none;
    border-color: #F97316;
}

.field-row {
    margin-top: 0 !important;
}

.actions {
    margin-top: 0 !important;
}

p.safety-text {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    display: inline-block;
    max-width: 220px;
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

select#select-dl-state {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.2s;
    /* Drop shadow */
    filter: drop-shadow(0px 4px 11px rgba(249, 115, 22, 0.16));
}

a#no-bank-link {
    display: inline-block;
    margin-top: 12px;
    color: #F97316;
    text-decoration: underline;
    font-size: 0.9rem;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 14px 26px;
    background-color: #000;
    color: #FFF;
    border-radius: 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover,
.btn:focus {
    background-color: #F97316;
    color: #ffffff;
}

.btn-back {
    border-color: unset;
    color: #666666;
    text-decoration: underline;
    background-color: unset;
}

.btn-back:hover,
.btn-back:focus {
    color: #000;
    background-color: unset;
}

.ssl-badge-container {
    text-align: center;
    margin-top: 20px;
}

.ssl-badge {
    width: 120px;
    height: auto;
    display: inline-block;
}

.ssl-badge-container p {
    font-size: 0.85rem;
    color: #555;
    margin-top: 5px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    z-index: 1; /* Ensure it covers other content */
}

/* ==========================================================================
   STEP 2: QUESTIONNAIRE
   ========================================================================== */

.popup-card {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 90%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 26px;
    padding: 0px;
    top: 420px;
    text-align: center;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.26);
    z-index: 2; /* Ensure it appears above the overlay */
}

.popup-card button {
    width: 60%;
    display: inline-block;
    margin-top: 1rem;
    background-color: #FFF;
    border: solid 2px #F97316;
    color: #000;
}

.popup-card button#btn-keep-no {
    width: 60%;
    display: inline-block;
    margin-bottom: 1rem;
    color: RGBA(0, 0, 0, 0.6);
    border: none;
    text-decoration: underline;
}

.popup-card button#btn-keep-no:hover {
    text-decoration: none;
}

.popup-card button#btn-keep-savings {
    width: 60%;
    display: inline-block;
    margin-bottom: 1rem;
    color: RGBA(0, 0, 0, 0.6);
    border: none;
    text-decoration: underline;
}

.popup-card button#btn-keep-savings:hover {
    text-decoration: none;
}

.question {
    margin-bottom: 12px;
    text-align: center;
    margin-top: 0 !important;
}

.question-text {
    font-size: 1.15rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: inline-block;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-choice {
    padding: 10px 20px;
    border: 2px solid #F97316;
    background-color: #ffffff;
    color: #000;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0px 4px 16px rgba(14, 70, 255, 0.26);
}

.btn-choice:hover,
.btn-choice:focus {
    background-color: #F97316;
    color: #ffffff;
}

.btn-choice.active {
    background-color: #F97316;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(14, 70, 255, 0.6);
}

/* ==========================================================================
   STEP 3: MATCHING ANIMATION
   ========================================================================== */
#step-match .step-card {
    position: fixed;
    left: 50%;
    transform: translate(-50%, -160%);
    margin-top: 160px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 26px;
    padding: 0px 0px 40px 0px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.26);
    z-index: 1;
    width: 565px;
}

.loading-header {
    background-color: #E9ECFF;
    padding: 3rem;
    border-radius: 26px 26px 0px 0px;
    height: 136px;
    margin-bottom: 2rem;
}

img.loading-header {
    display: inline-block;
}

.loading-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    display: inline-block;
}

.loading-header img.loading-spinner {
    width: 600px;
    height: auto;
    left: 50%;
    transform: translate(-50%, -66%);
    position: absolute;
}

.match-check {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
}

#bank-state {
    min-width: 200px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   STEP 4: BANK INFO
   ========================================================================== */
#step-bank .step-card {
    position: relative;
}

.bank-fields {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.field-group select {
    width: 100%;
}

.field-group label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block
}

.bank-image {
    margin-bottom: 1rem;;
}

.select-wrapper {
    position: relative;
}

.select-field {
    flex: 1;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 16px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.2s;
    /* Drop shadow */
    filter: drop-shadow(0px 4px 11px rgba(249, 115, 22, 0.16));
    /* Inner shadow */
    box-shadow: inset 0px 6px 6px rgba(0, 0, 0, 0.06);
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10' fill='none'>\
<path d='M1 1.24316L8.82906 8.75665L16.6581 1.24316' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/>\
</svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 10px;
    cursor: pointer;
}

ul.scrollable {
    max-height: 260px; /* задайте нужную вам высоту */
    overflow-y: auto; /* включаем вертикальную прокрутку */
    margin: 0;
    padding: 0 1em; /* отступ слева для маркеров */
    list-style: disc inside;
}

/* Стили для элементов списка */
ul.scrollable li {
    padding: 0.2em 0; /* вертикальные отступы между пунктами */
}

/* (опционально) Стилизация полосы прокрутки для Webkit-браузеров */
ul.scrollable::-webkit-scrollbar {
    width: 6px;
}

ul.scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

ul.scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.select-field:focus {
    outline: none;
    border-color: #F97316;
}

.bank-check-image,
.edit-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    z-index: 1;
    margin-top: 21px;
    margin-left: 7px;
}

p.disclosure-bank {
    text-align: left;
}

select#loan-amount-select.select-field {
    font-size: 22px;
    width: 89%;
    padding: 10px 10px;
    margin: 1rem;
    /* Drop shadow */
    filter: drop-shadow(0px 4px 11px rgba(249, 115, 22, 0.16));
    /* Inner shadow */
    box-shadow: inset 0px 6px 6px rgba(0, 0, 0, 0.06);
}


.input-aba {
    max-width: 180px;
    font-size: 14px;
    font-weight: 600;
    padding: 18px 10px;
}

.other-bank-name {
    display: none;
    margin-top: 12px;
}

.input-account {
    flex: 1;
}

.input-error {
    border: 2px solid red !important; /* Ensures this border style takes precedence */
    background-color: #fff0f0; /* Optional: a light red background for more emphasis */
}

#disclosure.section.disclosure-section.form-disclosure {
    background-color: rgba(14, 70, 255, 0);
    margin-top: 400px;
}

.disclosure-text {
    font-size: 0.75rem;
    color: #555;
    margin: 15px 0;
}

.disclosure-text a {
    color: #F97316;
    text-decoration: underline;
}

.disclosure-text a:hover,
.disclosure-text a:focus {
    text-decoration: none;
}

/* ==========================================================================
   STEP 5: FINAL “FINDING LENDER” SCREEN
   ========================================================================== */
#step-final .step-top-banner {
    position: relative;
    background-color: #e6ffef;
    border-radius: 8px 8px 0 0;
    padding: 20px;
    text-align: left;
}

#step-final .step-card {
    margin-top: 20px;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-icon {
    width: 30px;
    height: 30px;
}

.subtext {
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #212121;
    margin-bottom: 1rem;
}

.subtext.full-form {
    display: flex;
    margin-top: 3rem;;
    justify-content: center;
}

.subtext-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 470px;
    padding: 10px 12px;
    gap: 10px;
    height: auto;
    flex-wrap: wrap;
    text-align: left;
    background-color: #FFF1E8;
    border: 1px solid #B3731980;
    border-radius: 15px;
}

.subtext-text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.warn-image {
    width: 40px;
    height: 34px
}

/* ===================================================================
   Matching Card
   =================================================================== */
.match-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0;
    text-align: center;
    margin-bottom: 0;
}

.dots {
    width: 126px;
    display: inline-block;
}

.spinner-container {
    position: relative;
    margin: 0 auto 16px;
    width: 160px;
    height: 160px;
    text-align: center;
}

.spinner-container p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    margin-top: 25px;
    color: #FFF;
    width: 120px;
}

.spinner-container .spinner {
    width: 100%;
    height: 100%;
}

.status-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    margin-left: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #212121;
}

.status-icon {
    width: 24px;
    height: 24px;
}

.card-footer {
    margin-top: 24px;
    background-color: #000000;
    color: #ffffff;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.final-loading-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Background decorative circles */
.bg-circles {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(79, 125, 243, 0.1);
}

.bg-circle-1 {
    width: 240px;
    height: 240px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(79, 125, 243, 0.05);
}

.bg-circle-2 {
    width: 430px;
    height: 430px;
    top: -95px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-circle-3 {
    width: 626px;
    height: 626px;
    top: -193px;
    left: 50%;
    transform: translateX(-50%);
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.avatar-bubble-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
}

.avatar {
    width: 80px;
    height: auto;
    position: relative;
    z-index: 2;
}

.subtext {
    font-size: 15px;
    color: #4a4a5a;
    line-height: 1.6;
}

.subtext strong {
    color: #1a1a2e;
}

.final-loading-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Circular Progress */
.progress-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 24px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
}

.progress-ring-bg {
    stroke: #E8ECF4;
}

.progress-ring-circle {
    stroke-dasharray: 753.98; /* 2 * PI * 120 */
    stroke-dashoffset: 753.98;
    transition: stroke-dashoffset 0.1s ease-out;
    filter: drop-shadow(0 0 8px rgba(58, 104, 255, 0.6));
}

/* Tick marks around the circle */
.tick-marks line {
    stroke: #D0D7E5;
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.5;
}

.tick-marks line.active {
    stroke: #fb923c;
    opacity: 0.5;
}

/* Center Content */
.progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.percent-badge {
    background: #0E44F7;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(14, 68, 247, 0.4);
}

.status-text-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.status-text {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    line-height: 1.4;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.status-text.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.status-text.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

/* Dots spinner wrapper */
.dots-wrapper {
    display: none;
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
}

.dots-wrapper.active {
    display: flex;
}

.dots-spinner {
    position: absolute;
    inset: 0;
}

.dots-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

/* Individual dots generated by JS */
.dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fb923c;
    transform-origin: center;
}

/* Timer */
.timer-display {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fb923c;
    letter-spacing: 0.04em;
    line-height: 1;
}

/* Card Footer */
.card-footer {
    background: #1a1a2e;
    color: white;
    width: calc(100% + 80px);
    margin: 0 -40px -40px;
    padding: 16px;
    border-radius: 0 0 24px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* SSL Section */
.ssl-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    gap: 8px;
}

.ssl-badge {
    height: 45px;
    width: auto;
}

.ssl-text {
    font-size: 12px;
    color: #6a6a7a;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.progress-wrapper {
    animation: pulse 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .timer-display {
        font-size: 18px;
    }

    .loading-card {
        padding: 30px 24px;
    }

    .card-footer {
        width: calc(100% + 48px);
        margin: 0 -24px -30px;
    }

    .bubble-text {
        font-size: 16px;
    }

    .avatar {
        width: 60px;
    }

    .speech-bubble {
        padding: 12px 18px;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.progress-wrapper {
    animation: pulse 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .status-text {
        font-size: 16px;
    }
    .progress-wrapper {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .multi-step-wrapper.form-wrapper {
        max-width: 98vw;
        margin: 1rem 1vw;
        border-radius: 16px;
        box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.10);
    }

    .speech-bubble {
        font-size: 1rem;
        line-height: 1;
        max-width: 246px;
        height: 78px;
        padding: 20px 2px 9px 18px;
    }

    #progress-container {
        height: 8px;
        margin-top: 2rem;
        margin-bottom: 0rem;
        outline: #FFF solid 6px;
        box-shadow: 0px 2px 26px 0px rgba(0, 0, 0, 0.16);
    }

    .central-circle {
        width: 90vw;
        top: 60px;
    }

    .step-card,
    #step-match .step-card,
    #step-final .step-card {
        width: 100% !important;
        min-width: unset;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 12px;
        /* box-shadow removed */
        position: static;
        transform: none;
    }

    #step-match .step-card {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -190%);
        width: 90% !important;
    }


    .loading-header img.loading-spinner {
        transform: translate(-50%, -76%);
        width: 376px;
    }

    .banner-avatar {
        width: 60px;
        height: 60px;
        left: 10px;
        top: -10px;
    }

    .banner-text,
    .bubble-text {
        margin-left: 86px;
        padding: 6px 10px;
        font-size: 1rem;
    }

    .banner-text h2,
    .bubble-text {
        font-size: 1.1rem;
    }

    .banner-text p {
        font-size: 0.95rem;
    }

    .label-text {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .input-field,
    .select-field {
        font-size: 1rem;
        padding: 12px 10px;
        border-radius: 10px;
        margin-bottom: 14px;
    }

    .actions {
        gap: 10px;
        flex-direction: column;
    }

    .btn,
    .btn-choice {
        padding: 10px 10px;
        font-size: 1rem;
        border-radius: 10px;
        width: 100%;
        min-width: unset;
    }

    .btn-group.questions {
        display: block;
    }

    .btn-group.questions button.btn.btn-choice {
        display: inline-block;
        width: 40%;
        margin: 0 0.3rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .popup-card {
        width: 90%;
        top: 300px;
    }

    .ssl-badge {
        width: 80px;
    }

    .question {
        margin-bottom: 18px;
    }

    .question-text {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .bank-fields {
        flex-direction: column;
        gap: 0px;
        text-align: left;
    }

    .bank-check-image, .edit-icon {
        width: 13px;
        height: 13px;
        margin-top: 16px;
        margin-left: 8px;
    }

    .field-group label {
        margin-right: 0.6rem;
        font-size: 16px;
    }

    .input-aba {
        max-width: 100%;
    }

    .status-list {
        margin-left: 0.5rem;
    }

    .status-item {
        font-size: 0.95rem;
    }

    .status-icon {
        width: 20px;
        height: 20px;
    }

    .card-footer {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .dots {
        width: 80px;
    }

    .loading-header {
        padding: 1.5rem;
        height: auto;
        margin-bottom: 1rem;
        border-radius: 12px 12px 0 0;
    }

    .loading-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
    }

    .match-check {
        width: 50px;
        height: 50px;
    }

    #disclosure.section.disclosure-section.form-disclosure {
        margin-top: 220px;
    }

    .disclosure-text {
        font-size: 0.7rem;
        margin: 10px 0;
    }

    .subtext {
        font-size: 0.95rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .subtext-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .warn-image {
        width: 28px;
        height: auto;
    }
}

/* Media Query: smaller screens */
@media (max-width: 480px) {
    .step-card {
        padding: 20px 10px;
    }

    .banner-text h2 {
        font-size: 1.1rem;
    }

    .banner-text p {
        font-size: 0.9rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .btn, .btn-choice {
        padding: 8px 16px;
        font-size: 1.2rem;
    }

    .input-field, .select-field {
        font-size: 1rem;
    }
}

