/* Loan Cure Solutions — Popup component extracted from approved CSS. */

/* ==================================================
   GLOBAL FREE CONSULTATION POPUP
   ================================================== */

.consultation-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.consultation-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.consultation-modal {
    position: relative;
    width: min(570px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #f5f1e8;
    color: #211d18;
    border-radius: 16px;
    padding: 38px 38px 32px;
    box-shadow: 0 30px 90px rgba(0,0,0,.4);
    transform: translateY(15px) scale(.98);
    transition: transform .25s ease;
}

.consultation-overlay.is-open .consultation-modal {
    transform: translateY(0) scale(1);
}

.consultation-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    padding: 4px;
    background: transparent;
    color: #211d18;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
}

.consultation-modal h2 {
    margin: 0 40px 7px 0;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.2;
    color: #211d18;
}

.consultation-subtitle {
    margin: 0 0 25px;
    color: #655f57;
    font-size: 16px;
    line-height: 1.5;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consultation-two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9d8d4;
    border-radius: 8px;
    background: #fff;
    color: #211d18;
    padding: 15px 17px;
    font: inherit;
    outline: none;
}

.consultation-form input,
.consultation-form select {
    min-height: 55px;
}

.consultation-form textarea {
    resize: vertical;
    min-height: 90px;
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
    border-color: #c9a86a;
    box-shadow: 0 0 0 3px rgba(201,168,106,.12);
}

.consultation-form input::placeholder,
.consultation-form textarea::placeholder {
    color: #9a9690;
}

.consultation-submit {
    min-height: 57px;
    border: 0;
    border-radius: 8px;
    background: #c9a86a;
    color: #111a20;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.consultation-submit:hover {
    background: #d7b978;
    transform: translateY(-1px);
}

.consultation-consent {
    margin: 0;
    text-align: center;
    color: #514b44;
    font-size: 12px;
    line-height: 1.45;
}

body.consultation-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .consultation-overlay {
        padding: 12px;
        align-items: center;
    }

    .consultation-modal {
        padding: 31px 20px 24px;
        border-radius: 12px;
        max-height: calc(100vh - 24px);
    }

    .consultation-modal h2 {
        font-size: 28px;
    }

    .consultation-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .consultation-two-fields {
        grid-template-columns: 1fr;
    }

    .consultation-form {
        gap: 12px;
    }
}

/* Allow page scrolling while consultation popup is open */
body.consultation-open {
    overflow: auto !important;
}


/* ==========================================================
   PREMIUM WHY CHOOSE
   ========================================================== */

.why-choose-premium {
    position: relative;
    padding: 105px 0;
    background:
        radial-gradient(circle at 90% 5%, rgba(201,168,106,.14), transparent 28%),
        #f6f2e9;
    overflow: hidden;
}

.why-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.why-heading h2,
.faq-premium-heading h2 {
    margin: 10px 0 15px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.06;
    letter-spacing: -.025em;
    color: #152127;
}

.why-heading p,
.faq-premium-heading p {
    max-width: 650px;
    margin: 0;
    color: #68645e;
    font-size: 16px;
    line-height: 1.8;
}

.why-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(28,38,43,.12);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.58);
    box-shadow: 0 24px 65px rgba(24,30,33,.07);
}

.why-premium-card {
    position: relative;
    min-height: 310px;
    padding: 34px 29px;
    border-right: 1px solid rgba(28,38,43,.11);
    transition: transform .25s ease, background .25s ease;
}

.why-premium-card:last-child {
    border-right: 0;
}

.why-premium-card:hover {
    background: #fff;
}

.why-number {
    position: absolute;
    top: 24px;
    right: 25px;
    color: rgba(25,34,39,.28);
    font-size: 12px;
    letter-spacing: .12em;
}

.why-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 55px;
    border: 1px solid rgba(201,168,106,.55);
    border-radius: 50%;
    color: #a87d31;
    font-size: 20px;
}

.why-premium-card h3 {
    margin: 0 0 13px;
    font-family: 'Playfair Display', serif;
    color: #182329;
    font-size: 22px;
    line-height: 1.25;
}

.why-premium-card p {
    margin: 0;
    color: #716c65;
    font-size: 14px;
    line-height: 1.75;
}

.why-bottom-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 22px;
    padding: 25px 30px;
    background: #172329;
    border-radius: 14px;
    color: #fff;
}

.why-bottom-strip strong,
.why-bottom-strip span {
    display: block;
}

.why-bottom-strip strong {
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

.why-bottom-strip > div > span {
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

.why-link {
    flex: 0 0 auto;
    color: #e2bf7c;
    font-weight: 700;
    text-decoration: none;
}

.why-link span {
    display: inline;
    margin-left: 7px;
}


/* ==========================================================
   PREMIUM FAQ
   ========================================================== */

.premium-faq-section {
    padding: 110px 0 120px;
    background: #fff;
}

.faq-premium-heading {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.faq-premium-heading p {
    margin-left: auto;
    margin-right: auto;
}

.premium-faq-list {
    width: min(900px, 100%);
    margin: 0 auto;
    border-top: 1px solid #dedbd4;
}

.premium-faq-item {
    border-bottom: 1px solid #dedbd4;
}

.premium-faq-item summary {
    position: relative;
    display: grid;
    grid-template-columns: 50px 1fr 34px;
    align-items: center;
    gap: 18px;
    min-height: 88px;
    padding: 15px 4px;
    list-style: none;
    cursor: pointer;
    color: #182329;
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 600;
}

.premium-faq-item summary::-webkit-details-marker {
    display: none;
}

.premium-faq-item summary > span {
    font-family: 'DM Sans', sans-serif;
    color: #b18a46;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.premium-faq-item summary i {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    border: 1px solid #d7d2c8;
    border-radius: 50%;
    transition: background .2s ease, transform .25s ease;
}

.premium-faq-item summary i::before,
.premium-faq-item summary i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1px;
    background: #172329;
    transform: translate(-50%, -50%);
}

.premium-faq-item summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform .25s ease;
}

.premium-faq-item[open] summary i {
    background: #c9a86a;
    border-color: #c9a86a;
}

.premium-faq-item[open] summary i::after {
    transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
    padding: 0 70px 27px 72px;
}

.faq-answer p {
    max-width: 720px;
    margin: 0;
    color: #69655f;
    font-size: 14px;
    line-height: 1.85;
}

.faq-contact-line {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 38px;
    color: #6c6861;
    font-size: 14px;
}

.faq-contact-line a {
    color: #9a7029;
    font-weight: 700;
    text-decoration: none;
}


/* ==========================================================
   WHY CHOOSE + FAQ RESPONSIVE
   ========================================================== */

@media (max-width: 1000px) {
    .why-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-premium-card {
        border-bottom: 1px solid rgba(28,38,43,.11);
    }

    .why-premium-card:nth-child(2) {
        border-right: 0;
    }

    .why-premium-card:nth-child(3),
    .why-premium-card:nth-child(4) {
        border-bottom: 0;
    }
}

@media (max-width: 650px) {
    .why-choose-premium,
    .premium-faq-section {
        padding: 75px 0;
    }

    .why-heading h2,
    .faq-premium-heading h2 {
        font-size: 37px;
    }

    .why-premium-grid {
        grid-template-columns: 1fr;
    }

    .why-premium-card {
        min-height: auto;
        padding: 28px 24px 30px;
        border-right: 0;
        border-bottom: 1px solid rgba(28,38,43,.11) !important;
    }

    .why-premium-card:last-child {
        border-bottom: 0 !important;
    }

    .why-icon {
        margin-bottom: 35px;
    }

    .why-bottom-strip {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .premium-faq-item summary {
        grid-template-columns: 30px 1fr 32px;
        gap: 10px;
        min-height: 82px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 42px 24px 40px;
    }

    .faq-contact-line {
        flex-direction: column;
        align-items: center;
    }
}


/* CONSULTATION COMPACT POPUP V1 */
.consultation-overlay .consultation-modal {
    width: min(480px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    padding: 26px 26px 22px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.consultation-modal h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.consultation-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
}

.consultation-form {
    gap: 11px;
}

.consultation-two-fields {
    gap: 11px;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
    box-sizing: border-box;
    padding: 11px 13px;
    font-size: 14px;
}

.consultation-form input,
.consultation-form select {
    min-height: 46px;
}

.consultation-form textarea {
    min-height: 65px;
}

.consultation-submit {
    min-height: 48px;
}

@media (max-width: 600px) {
    .consultation-overlay {
        padding: 12px;
    }

    .consultation-overlay .consultation-modal {
        width: 100%;
        padding: 24px 18px 20px;
        max-height: calc(100dvh - 24px);
    }

    .consultation-modal h2 {
        font-size: 25px;
    }

    .consultation-two-fields {
        grid-template-columns: 1fr;
    }
}
