/* =============================================
   HERO ESTIMATION FORM — Formulaire inline compact
   ============================================ */

.hero--estimation .hero__content {
    max-width: 1000px;
    padding-bottom: 2rem;
}

.hero--estimation .hero__subtitle {
    margin-bottom: 1.75rem;
}

/* Hero Form Container */
.hero-form {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.hero-form__row {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.375rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255,255,255,0.15);
}

.hero-form__field {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-form__field--address {
    flex: 2.2;
    min-width: 0; /* Allow shrinking */
}

.hero-form__field--surface {
    flex: 0.8;
    min-width: 60px;
}

.hero-form__field--type {
    flex: 1;
    min-width: 80px;
}

.hero-form__field--rooms {
    flex: 0.9;
    min-width: 70px;
}

.hero-form__field--submit {
    flex: 0 0 auto;
    padding: 0;
}

/* Hide separators — fields blend into one bar */
.hero-form__field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
}

/* Input wrapper */
.hero-form__input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-form__icon {
    position: absolute;
    left: 0.75rem;
    font-size: 0.875rem;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* Inputs — clean, no borders */
.hero-form__input {
    width: 100%;
    padding: 0.75rem 0.625rem 0.75rem 2.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #1f2933;
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.hero-form__input:hover,
.hero-form__input:focus {
    background: rgba(26, 60, 94, 0.04);
}

.hero-form__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Surface input — shorter */
.hero-form__input--surface {
    padding-left: 2rem;
    padding-right: 0.5rem;
    text-align: center;
}

/* Selects */
.hero-form__input--type,
.hero-form__input--rooms {
    padding-left: 2rem;
    padding-right: 1.5rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submit button */
.hero-form__submit {
    white-space: nowrap;
    padding: 0.75rem 1.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    border: none;
    cursor: pointer;
}

.hero-form__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 1rem;
}

.hero-form__submit:hover .hero-form__arrow {
    transform: translateX(3px);
}

/* Detail link */
.hero-form__detail-link {
    margin-top: 1rem;
    text-align: center;
}

.hero-form__detail-link-a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.hero-form__detail-link-a:hover {
    color: #fff;
}

/* Address with Google Places — remove emoji icon, cleaner */
.hero-form__field--address .hero-form__icon {
    display: none;
}

.hero-form__input--address {
    padding-left: 0.875rem;
}

/* =============================================
   GOOGLE PLACES DROPDOWN
   ============================================ */
.pac-container {
    border-radius: 16px !important;
    margin-top: 8px !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    padding: 0.5rem 0 !important;
    font-family: inherit !important;
    z-index: 99999 !important;
    overflow: hidden !important;
}

.pac-item {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    border: none !important;
    line-height: 1.4 !important;
}

.pac-item:hover,
.pac-item-selected {
    background: rgba(26, 60, 94, 0.06) !important;
}

.pac-item-query {
    font-size: 0.875rem !important;
    color: #1f2933 !important;
    font-weight: 600 !important;
}

.pac-matched {
    font-weight: 700 !important;
    color: #1a3c5e !important;
}

.pac-icon {
    margin-right: 0.75rem !important;
    filter: grayscale(30%) !important;
}

.pac-secondary-text {
    color: #64748b !important;
    font-size: 0.8125rem !important;
}

/* =============================================
   DATA.GOUV SUGGESTIONS (fallback)
   ============================================ */
.hero-form__suggestions {
    position: absolute;
    top: 100%;
    left: 0.375rem;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    padding: 0.375rem 0;
}

.hero-form__suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: background 0.15s;
    border-bottom: none;
}

.hero-form__suggestion:hover,
.hero-form__suggestion--highlighted {
    background: rgba(26, 60, 94, 0.06) !important;
}

.hero-form__suggestion-icon {
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.6;
}

.hero-form__suggestion-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hero-form__suggestion-label {
    font-weight: 500;
    color: #1f2933;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-form__suggestion-context {
    font-size: 0.75rem;
    color: #64748b;
}

.hero-form__suggestions::-webkit-scrollbar {
    width: 5px;
}
.hero-form__suggestions::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* =============================================
   BANT FORM PAGE
   ============================================ */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a3c5e, #0f2644);
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.page-header__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c9a24d;
    margin-bottom: 0.5rem;
}

.page-header__title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.625rem;
    line-height: 1.2;
}

.page-header__subtitle {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto;
}

/* Progress Steps */
.form-progress {
    background: #f6f3ee;
    padding: 1.25rem 0;
}

.form-progress__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.form-progress__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
}

.form-progress__step--active,
.form-progress__step--done {
    opacity: 1;
}

.form-progress__step-number {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #e5e0d8;
    color: #64748b;
}

.form-progress__step--active .form-progress__step-number {
    background: #1a3c5e;
    color: #fff;
}

.form-progress__step--done .form-progress__step-number {
    background: #059669;
    color: #fff;
    font-size: 0.75rem;
}

.form-progress__step-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

.form-progress__line {
    width: 2.5rem;
    height: 2px;
    background: #e5e0d8;
    margin: 0 0.625rem;
}

.form-progress__line--done {
    background: #059669;
}

/* BANT Form Sections */
.bant-form-section {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.bant-section {
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.bant-section--recap {
    background: #f6f3ee;
    border-color: #c9a24d;
}

.bant-section--contact {
    background: linear-gradient(135deg, rgba(26,60,94,0.03), rgba(15,38,68,0.02));
}

.bant-section__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a3c5e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    border-bottom: 2px solid #f6f3ee;
    padding-bottom: 0.625rem;
}

.bant-section__emoji,
.bant-section__icon {
    width: 1.35rem;
    height: 1.35rem;
    color: #c8a45d;
    flex-shrink: 0;
}

.form-progress__icon {
    width: 1rem;
    height: 1rem;
}

.radio-card__icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.375rem;
    flex-shrink: 0;
}

.bant-section__letter {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.bant-section__letter--b { background: #3b82f6; }
.bant-section__letter--a { background: #8b5cf6; }
.bant-section__letter--n { background: #10b981; }
.bant-section__letter--t { background: #f59e0b; }

.bant-section__text {
    font-size: 1.0625rem;
}

.bant-section__help {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* Recap Card */
.recap-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e0d8;
}

.recap-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.875rem;
}

.recap-card__item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.recap-card__label {
    font-size: 0.6875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.recap-card__value {
    font-size: 0.875rem;
    color: #1f2933;
}

/* Radio Cards */
.radio-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-card__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card__label {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.84375rem;
    font-weight: 500;
    color: #4a5568;
    background: #f6f3ee;
    border: 2px solid #e5e0d8;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-card__input:checked + .radio-card__label {
    border-color: #1a3c5e;
    background: rgba(26, 60, 94, 0.08);
    color: #1a3c5e;
    font-weight: 600;
}

.radio-card:hover .radio-card__label {
    border-color: #1a3c5e;
}

.radio-card__input:focus-visible + .radio-card__label {
    box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.2);
}

.radio-cards--timeline {
    flex-direction: column;
    gap: 0.375rem;
}

.radio-card--inline .radio-card__label {
    width: 100%;
    border-radius: 12px;
}

/* Input group with suffix */
.form-input-group {
    position: relative;
}

.form-input-group .form-input {
    padding-right: 2.5rem;
}

.form-input-group__suffix {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
    border-left: 2px solid #e5e0d8;
    border-radius: 0 var(--radius-md,8px) var(--radius-md,8px) 0;
}

/* BANT Submit */
.bant-form__actions {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.bant-form__submit {
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bant-form__secure {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

/* =============================================
   THANK YOU PAGE
   ============================================ */

.thankyou-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
}

.thankyou-hero {
    width: 100%;
}

.thankyou-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    color: #16a34a;
}

.thankyou-icon--error {
    color: #dc2626;
}

.thankyou-icon__svg {
    width: 3.5rem;
    height: 3.5rem;
}

.thankyou-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3c5e;
    margin-bottom: 0.5rem;
}

.thankyou-subtitle {
    font-size: 1.0625rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.thankyou-recap {
    background: #f6f3ee;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

.thankyou-recap__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a3c5e;
    margin-bottom: 0.875rem;
    text-align: center;
}

.thankyou-recap__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.thankyou-recap__item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.thankyou-recap__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #64748b;
}

.thankyou-recap__value {
    font-size: 0.875rem;
    color: #1f2933;
}

.thankyou-steps {
    margin-bottom: 2rem;
}

.thankyou-steps__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a3c5e;
    margin-bottom: 1.25rem;
}

.thankyou-steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.thankyou-step {
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.thankyou-step__number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #1a3c5e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 auto 0.75rem;
}

.thankyou-step__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a3c5e;
    margin-bottom: 0.375rem;
}

.thankyou-step__text {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.thankyou-cta {
    display: flex;
    justify-content: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

/* =============================================
   RESPONSIVE — TABLETTE & MOBILE
   ============================================ */

/* Tablette */
@media (max-width: 1024px) {
    .hero--estimation .hero__content {
        max-width: 100%;
        padding: 3rem 1.25rem 1.5rem;
    }

    .hero-form {
        max-width: 100%;
    }

    .hero-form__row {
        border-radius: 16px;
        padding: 0.375rem;
    }

    /* 2 colonnes : adresse seule en haut, puis surface+type, puis pieces+submit */
    .hero-form__field--address {
        flex: 1 1 100%;
    }

    .hero-form__field--surface {
        flex: 1 1 calc(50% - 0.125rem);
    }

    .hero-form__field--type {
        flex: 1 1 calc(50% - 0.125rem);
    }

    .hero-form__field--rooms {
        flex: 1 1 calc(50% - 0.125rem);
    }

    .hero-form__field--submit {
        flex: 1 1 calc(50% - 0.125rem);
    }

    .hero-form__field:not(:last-child)::after {
        display: none;
    }

    .hero-form__submit {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .hero--estimation .hero__content {
        padding: 2.5rem 1rem 1.25rem;
    }

    .hero--estimation .hero__title {
        font-size: 1.75rem;
    }

    .hero--estimation .hero__subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .hero-form__row {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.375rem;
        gap: 0;
    }

    .hero-form__field {
        flex: 1 1 100% ;
    }

    .hero-form__input {
        padding: 0.8125rem 0.75rem 0.8125rem 2.375rem;
        font-size: 0.9375rem;
        border-radius: 12px;
    }

    .hero-form__submit {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        border-radius: 50px;
    }

    .hero-form__field--address .hero-form__input {
        padding-left: 0.875rem;
    }

    .hero-form__detail-link-a {
        font-size: 0.75rem;
    }

    /* BANT responsive */
    .page-header__title {
        font-size: 1.625rem;
    }

    .page-header__subtitle {
        font-size: 0.9375rem;
    }

    .bant-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .bant-section__title {
        font-size: 1rem;
    }

    .form-progress__line {
        width: 1.25rem;
    }

    .form-progress__step-label {
        display: none;
    }

    .thankyou-title {
        font-size: 1.625rem;
    }

    .thankyou-steps__grid {
        grid-template-columns: 1fr;
    }

    .thankyou-recap__grid {
        grid-template-columns: 1fr;
    }
}
