/**
 * Estimation form - Multi-step "Estimer votre bien"
 * Bootstrap 5 + custom styles
 * Mobile responsive, clean UI with shadow cards
 */
 :root {
    --brand-primary: #07344a;
    --brand-light-bg: #f2f5fb;
    --brand-dark-bg: #04143a;
    --brand-text: #1a1a1a;
    --text-muted-custom: #64748b;
    --brand-purple: #07344a;
    --bg-yellow-light: #fff8d6;
    --footer-bg: #161c2d;
    --footer-text: #9ba3af;
    --footer-heading: #516873;
}
.btn-brand-estimation {
    background-color: var(--brand-primary);
    color: white;
    border: none;
}
.btn-brand-estimation:hover {
    background-color: rgb(7 52 74 / 84%);;
    color: white;
}
.btn-brand-estimation:focus {
    background-color: rgb(7 52 74 / 84%);;
    color: white;
}
.btn-brand-estimation:active {
    background-color: rgb(7 52 74 / 84%);;
    color: white;
}
/* Section spacing */
.estimation-section {
    min-height: 60vh;
}

.estimation-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

/* Progress bar */
.estimation-progress-wrap {
    max-width: 100%;
}

.estimation-progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.estimation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #107baf, #07344a);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.estimation-steps-indicator {
    font-size: 0.75rem;
    color: #6c757d;
}

.estimation-step-dot {
    transition: color 0.2s;
}

.estimation-step-dot.active {
    color: #07344a;
    font-weight: bold;
}

.estimation-step-dot.completed {
    color: #198754;
    font-weight: bold;
}

/* Card container */
.estimation-card {
    border-radius: 1rem;
    overflow: hidden;
}

/* Selectable option cards (zone & type) */
.estimation-card-option {
    transition: all 0.2s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.estimation-card-option:hover {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateY(-2px);
}

.estimation-radio-input:checked + .estimation-card-option {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    box-shadow: 0 0 0 2px #0d6efd;
}

.cursor-pointer {
    cursor: pointer;
}

/* Step title */
.estimation-step-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Step transition: show/hide with fade */
.estimation-step {
    animation: estimationStepIn 0.35s ease;
}

@keyframes estimationStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.estimation-buttons {
    flex-wrap: wrap;
}

/* Step 4: Price display - animated */
.estimation-price-wrap {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
}

.estimation-price-display {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #198754;
    transition: transform 0.3s ease;
}

.estimation-price-display.animate {
    animation: estimationPricePulse 0.6s ease;
}

@keyframes estimationPricePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Step 5 thank you recap */
.estimation-recap p {
    margin-bottom: 0.35rem;
}

/* Validation feedback */
.estimation-step .form-control.is-invalid,
.estimation-step .form-check-input.is-invalid {
    border-color: #dc3545;
}

/* Mobile: stack option cards nicely on small screens */
@media (max-width: 575.98px) {
    .estimation-card-option {
        min-height: 80px;
        padding: 0.75rem !important;
    }

    .estimation-card-option .fs-3 {
        font-size: 1.5rem !important;
    }

    .estimation-step-title {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 1.25rem !important;
    }
}
