/* MODERN CTA BAR STYLES */

.cta-bar-container {
    padding: 40px 0;
    width: 100%;
}

.cta-bar-modern {
    background-color: transparent;
    border: 2px solid #5B41FF; /* Vibrant Purple */
    border-radius: 100px;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5B41FF;
    width: 100%;
    margin-bottom: 40px; /* Space before gallery */
    margin-top: 10px;    /* Space after title */
}

.cta-bar-modern .cta-text {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cta-bar-modern .cta-text span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #5B41FF;
}

.cta-bar-modern .cta-phone {
    font-size: 1.4rem;
    font-weight: 700;
    color: #5B41FF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.cta-bar-modern .cta-phone span {
    font-size: 1.6rem;
}

.cta-bar-modern .cta-phone:hover {
    transform: scale(1.02);
}

.cta-bar-modern .btn--secondary {
    padding: 10px 30px;
    font-size: 0.95rem;
    border: 2px solid #5B41FF;
    background: transparent;
    color: #5B41FF;
    font-weight: 700;
    border-radius: 50px;
}

.cta-bar-modern .btn--secondary:hover {
    background: #5B41FF;
    color: #fff;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .cta-bar-modern {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        border-radius: 30px;
        padding: 30px 20px;
    }

    .cta-bar-modern .cta-text {
        flex-direction: column;
        gap: 10px;
    }

    .cta-bar-modern .cta-text span {
        font-size: 1.1rem;
    }

    .cta-bar-modern .cta-phone {
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .cta-bar-container {
        padding: 20px 15px; /* Add padding for container on mobile */
    }

    .cta-bar-modern {
        width: 100%;
        border-radius: 20px;
    }
}

/* DYNAMIC MAP & CALCULATOR SECTION */
#banner-1.banner-section {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #fff;
    overflow: hidden;
}

.map-dynamic-wrapper {
    display: flex;
    flex-wrap: wrap;
    min-height: 550px;
}

.map-half {
    flex: 1 0 50%;
    min-height: 550px;
    background: #eee; /* Placeholder bg */
}

.calculator-half {
    flex: 1 0 50%;
    background: #F8FAFF; /* Very light blue/neutral */
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-panel {
    max-width: 480px;
    width: 100%;
}

.calc-panel h4 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #26155E;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.calc-panel p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

/* INPUT GROUP */
.calc-input-group {
    position: relative;
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.calc-input-group input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid #E6EBFF;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.calc-input-group input:focus {
    border-color: #5B41FF;
}

#btn-detect-location {
    background: #5B41FF;
    color: #fff;
    border: none;
    width: 60px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

#btn-detect-location:hover {
    background: #26155E;
}

/* LOADING STATE */
.calc-loader {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: #5B41FF;
    font-weight: 600;
}

.calc-loader.hidden {
    display: none !important;
}

.spinner-dot {
    width: 10px;
    height: 10px;
    background-color: #5B41FF;
    border-radius: 50%;
    animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* RESULTS AREA (WARM & CONVERSATIONAL) */
.calc-results-warm {
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.calc-results-warm.hidden {
    display: none !important;
}

.warm-message-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 2px solid #E6EBFF;
    box-shadow: 0 10px 30px rgba(38, 21, 94, 0.08);
}

.icon-heart {
    font-size: 32px !important;
    color: #5B41FF !important;
}

.warm-text {
    flex: 1;
}

.warm-text p {
    margin: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    color: #444;
}

.warm-text p strong {
    color: #5B41FF;
    font-weight: 700;
}

#warm-dist-msg {
    margin-top: 5px !important;
    font-size: 1rem !important;
    color: #777;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .map-dynamic-wrapper {
        flex-direction: column;
    }
    .map-half, .calculator-half {
        flex: 1 0 100%;
        min-height: auto;
    }
    .map-half {
        height: 400px;
    }
    .calculator-half {
        padding: 50px 30px;
        align-items: center;
        text-align: center;
    }
    .calc-input-group {
        width: 100%;
    }
    .calc-actions {
        justify-content: center;
    }
}
