/* ==========================================
   BUYING FINDER FORM - PHASE 2 (PREMIUM)
   ========================================== */

:root {
    --primary-color: #8F0141;
    /* Fallback */
    --primary-hover: #8F0141;
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --focus-ring: rgba(180, 35, 102, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* ================================
   HERO SECTION
=================================== */
.buying-hero {
    background: linear-gradient(135deg, var(--primary, var(--primary-color)) 0%, var(--primary-dark, #8a1548) 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
}

.buying-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.icon-badge {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.buying-hero h1 {
    font-size: 38px;
    margin-bottom: 16px;
    color: white;
    font-weight: 700;
}

.buying-hero p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    font-size: 14px;
    font-weight: 500;
}

/* ================================
   MAIN CONTAINER & GRID
=================================== */
.buying-section {
    padding: 60px 20px 100px;
    background: var(--bg-color);
}

.buying-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ================================
   LEFT COLUMN: FORM CARD
=================================== */
.finder-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid white;
    position: relative;
    overflow: hidden;
}

/* Header inside Form */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease forwards;
}

.section-title {
    font-size: 26px;
    color: var(--primary, var(--primary-color));
    margin-bottom: 5px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 14px;
}

/* Stepper */
.finder-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 35px;
    position: relative;
}

.finder-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.finder-stepper .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-gray);
    transition: all 0.4s ease;
}

.finder-stepper .step.active .circle {
    background: var(--primary, var(--primary-color));
    border-color: var(--primary, var(--primary-color));
    color: #fff;
    box-shadow: 0 0 0 4px var(--focus-ring);
    transform: scale(1.1);
}

.finder-stepper .line {
    width: 80px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 15px;
    position: relative;
    top: -12px;
}

.finder-stepper span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.3s;
}

.finder-stepper .step.active span {
    color: var(--primary, var(--primary-color));
}

/* ================================
   FORM ELEMENTS
=================================== */
.step-box {
    display: none;
}

.step-box.active {
    display: block;
    animation: slideUpFade 0.5s ease forwards;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary, var(--primary-color));
    width: 16px;
    text-align: center;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

/* Inputs */
.finder-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.finder-form input:focus {
    outline: none;
    border-color: var(--primary, var(--primary-color));
    box-shadow: 0 0 0 4px var(--focus-ring);  
}

.finder-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    height: 100px;
}

.finder-form textarea:focus {
    outline: none;
    border-color: var(--primary, var(--primary-color));
    box-shadow: 0 0 0 4px var(--focus-ring);
}







.form-group.focused label {
    color: var(--primary, var(--primary-color));
    transition: color 0.3s;
}

/* Pills */
.pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    background: #f1f5f9;
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pill:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.pill.active {
    background: var(--primary, var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 12px rgba(180, 35, 102, 0.3);
    border-color: transparent;
    transform: translateY(-1px);
}

/* Buttons */
.finder-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary, var(--primary-color)), var(--primary-hover));
    border: none;
    border-radius: 100px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(180, 35, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.finder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 35, 102, 0.3);
}

.btn-row {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.ghost {
    background: transparent;
    color: var(--text-gray);
    box-shadow: none;
    border: 2px solid var(--border-color);
}

.ghost:hover {
    background: #f1f5f9;
    color: var(--text-dark);
    box-shadow: none;
}

/* ================================
   RIGHT COLUMN: INFO CARD
=================================== */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
    /* Sticky scroll */
    animation: slideInRight 0.8s ease forwards;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.benefits-list li:last-child {
    border-bottom: none;
    margin-bottom: 0px;
    padding-bottom: 0;
}

/* Stagger */
.benefits-list li:nth-child(1) {
    animation-delay: 0.2s;
}

.benefits-list li:nth-child(2) {
    animation-delay: 0.4s;
}

.benefits-list li:nth-child(3) {
    animation-delay: 0.6s;
}

.benefits-list li:nth-child(4) {
    animation-delay: 0.8s;
}

.benefits-list i {
    color: var(--primary, var(--primary-color));
    font-size: 20px;
    margin-top: 2px;
}

.benefits-list strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 4px;
}

.benefits-list p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.contact-cta {
    margin-top: 30px;
    background: linear-gradient(135deg, var(--primary, var(--primary-color)) 0%, var(--primary-dark, #8a1548) 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
}

.contact-cta p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.phone-link {
    color: white;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ================================
   RESPONSIVE
=================================== */
.double-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media(max-width: 900px) {
    .buying-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .info-card {
        order: 2;
        /* Form first */
        position: static;
    }
}

@media(max-width: 768px) {
    .buying-hero { padding: 80px 16px 50px; }
    .buying-hero h1 { font-size: 28px !important; }
    .buying-hero h2, .buying-hero .long-text-font-style { font-size: 16px !important; }
    .icon-badge { width: 56px; height: 56px; font-size: 24px; }
    .buying-section { padding: 40px 16px 60px; }
    .finder-form { padding: 28px 20px; }
    .section-title { font-size: 22px !important; }
    .info-card { padding: 20px; }
    input, textarea { padding: 12px 14px !important; font-size: 16px; }
    .finder-btn { padding: 14px 20px; font-size: 15px; }
}
@media(max-width: 600px) {
    .buying-hero { padding: 60px 16px 40px; }
    .buying-hero h1 { font-size: 26px !important; }
    .buying-hero h2, .buying-hero .long-text-font-style { font-size: 15px !important; }
    .trust-badges { gap: 10px; }
    .badge-item { padding: 8px 14px; font-size: 13px; }
    .buying-section { padding: 30px 12px 50px; }
    .buying-container { gap: 24px; }
    .form-header { margin-bottom: 20px; }
    .double-row { grid-template-columns: 1fr; }
    .btn-row { flex-direction: column-reverse; gap: 10px; }
    .finder-form { padding: 20px 16px; border-radius: 16px; }
    .section-title { font-size: 20px !important; }
    .section-subtitle { font-size: 13px; }
    .finder-stepper .line { width: 50px; }
    .info-card { padding: 16px; border-radius: 16px; }
    .info-card h3 { font-size: 18px; }
    .benefits-list li { gap: 12px; margin-bottom: 14px; padding-bottom: 14px; }
    .benefits-list strong { font-size: 14px; }
    .benefits-list p { font-size: 12px; }
    .contact-cta { padding: 16px; }
    .phone-link { font-size: 18px; }
}
@media(max-width: 480px) {
    .buying-hero { padding: 40px 12px 32px; }
    .buying-hero h1 { font-size: 22px !important; }
    .buying-hero h2, .buying-hero .long-text-font-style { font-size: 14px !important; }
    .icon-badge { width: 44px; height: 44px; font-size: 20px; margin-bottom: 12px; }
    .badge-item { width: 100%; max-width: 240px; justify-content: center; font-size: 12px; padding: 6px 12px; }
    .buying-container { gap: 16px; }
    .finder-form { padding: 16px 12px; border-radius: 12px; }
    .section-title { font-size: 18px !important; }
    .form-group { margin-bottom: 14px; }
    .form-group label { font-size: 13px; }
    input, textarea { padding: 10px 12px !important; font-size: 15px; border-radius: 10px; }
    .pill { padding: 8px 16px; font-size: 13px; }
    .finder-btn { padding: 12px 16px; font-size: 14px; border-radius: 50px; }
    .info-card { padding: 14px; border-radius: 12px; }
    .info-card h3 { font-size: 16px; }
    .contact-cta { padding: 14px; border-radius: 12px; }
    .phone-link { font-size: 16px; }
}
@media(max-width: 360px) {
    .buying-hero { padding: 30px 10px 24px; }
    .buying-hero h1 { font-size: 20px !important; }
    .buying-hero h2, .buying-hero .long-text-font-style { font-size: 13px !important; }
    .finder-form { padding: 12px 10px; }
    .section-title { font-size: 16px !important; }
    .pill { padding: 6px 12px; font-size: 12px; }
    input, textarea { padding: 8px 10px !important; font-size: 14px; }
    .finder-btn { padding: 10px 14px; font-size: 13px; }
}
@media(max-width: 768px) {
    .finder-form, .info-card, .form-header, .benefits-list li,
    .contact-cta, .step-box.active {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* ================================
   ANIMATIONS
=================================== */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   ALERTS & VALIDATION
=================================== */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUpFade 0.5s ease;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.error-shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}