.form-component-wrapper * {
    font-family: var(--inter-font);
}

.form-component-container {
    max-width: 1400px;
    width: 100%;
    padding: 40px 15px;
    margin: 0 auto;
}

.rounded-16 {
    border-radius: var(--rounded-16) !important;
}

.form-top-head {
    background-color: var(--black);
    padding: 20px 15px;
}

.form-head-content {
    max-width: 710px;
    width: 100%;
    margin: 0 auto;
    color: var(--white);
    font-family: var(--base-font);
}

.form-head-content h2 {
    position: var(--position-relative);
    font-size: 18px;
    line-height: 1.46;
    margin-bottom: 20px;
    padding-bottom: 13px;
    font-family: var(--base-font);
}

.form-head-content h2:after {
    content: "";
    width: 50px;
    height: 2px;
    background-color: #ED0000;
    position: var(--position-absolute);
    left: var(--left);
    bottom: 0;
    transform: var(--transformX);
}

.form-head-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 2px;
    font-family: var(--base-font);
}

.form-component-block {
    padding: 25px 12px;
    box-shadow:
        0px 10px 15px -3px rgba(0, 0, 0, 0.10),
        0px 4px 6px -4px rgba(0, 0, 0, 0.10);
    
}

.custom-select {
    max-width: 672px;
    position: relative;
    font-family: Inter, sans-serif;
}

.f-cmp-label {
    display: block;
    font-size: var(--fz);
    color: #314158;
}

.f-cmp-label span {
    color: var(--light-red);
}

.select-box {
    border: 2px solid #E8DCE2;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
}

.select-box.active {
    border-color: #050B20;
}

.selectedText {
    font-size: 15px;
}

.select-dropdown {
    background: #111;
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    margin-top: 6px;
    display: none;
    z-index: 10;
}

.select-dropdown li {
    padding: 10px 12px;
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
}

.select-dropdown li:hover {
    background: transparent !important;
    background-color: transparent !important;
}

.select-dropdown li.active::before {
    content: "✓";
    margin-right: 8px;
}

.arrow {
    transition: transform 0.3s ease;
}

.select-box.active .arrow {
    transform: rotate(180deg);
}

.form-step-title {
    color: var(--deep-black);
    font-size: 18px;
    margin-bottom: 20px;
}

.demand-selection-heading {
    color: #62748E;
    font-size: 14px;

}

.width-937,
.width-1108 {
    width: 100%;
}

.width-937 {
    max-width: 937px;
}

.width-1108 {
    max-width: 1108px;
}

.border-style {
    border: 2px solid #E2E8F0;
}

.search-label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.search-input {
    position: relative;
    margin-bottom: 16px;
}

.search-input input {
    max-width: 927px;
    width: 100%;
    padding: 14px 14px 12px 40px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    opacity: 0.6;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card {
    gap: 14px;
}


.icon-location {
    width: 36px;
    height: 36px;
    background-color: #F1F5F9;
}

.result-card .icon {
    font-size: 18px;
    color: #ed0000;
}

.result-card-content {
    margin-bottom: 0;
}

.concession-name {
    color: #0F172B;
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
    font-weight: var(--fw-normal);
    line-height: 1.3;
}

.concession-address {
    font-size: 13px;
    color: #45556C;
    margin-bottom: 6px;
}

.concession-city {
    font-size: 13px;
    color: #62748E;
}

/* STEP TITLE */
.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

.tab-cmp-buttons {
    gap: 16px;
}

.cmp-tab-btn {
    flex: 1;
    padding: 16px 20px 16px 24px;
    max-width: 400px;
    cursor: pointer;
    color: #0F172B;
    font-size: var(--fz);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmp-tab-btn strong {
    font-weight: var(--fw-normal);
}

.cmp-tab-btn.active {
    border-color: var(--light-red);
    background-color: #FFE2E2;
    color: var(--light-red);
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.10), 0px 20px 25px rgba(0, 0, 0, 0.10);
}

.cmp-tab-icon {
    display: none !important;
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-16);
    background-color: #F1F5F9;
}

.cmp-tab-btn.active .cmp-tab-icon {
    display: none !important;
    background: var(--light-red);
    box-shadow:
        0px 10px 15px -3px rgba(0, 0, 0, 0.10),
        0px 4px 6px -4px rgba(0, 0, 0, 0.10);
}

.cmp-tab-btn.active img {
    transition: none;
    filter: brightness(0) invert(1);
}

/* FORM GRID */
.cmp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-cmp-group {
    display: flex;
    flex-direction: column;
}

.form-cmp-group.full {
    grid-column: span 2;
}

.form-cmp-label {
    font-size: var(--fz);
    color: #314158;
}

.required-element {
    color: var(--light-red);
    font-size: var(--fz);
    font-style: normal;
}

.form-cmp-input::placeholder {
    color: #90A1B9;
    opacity: 1;
}

.form-cmp-textarea::placeholder {
    color: #90A1B9;
    opacity: 1;
}

.form-cmp-input::-webkit-input-placeholder,
.form-cmp-textarea::-webkit-input-placeholder {
    color: #90A1B9;
}

.form-cmp-input::-moz-placeholder,
.form-cmp-textarea::-moz-placeholder {
    color: #90A1B9;
}

.form-cmp-input:-ms-input-placeholder,
.form-cmp-textarea:-ms-input-placeholder {
    color: #90A1B9;
}

.form-cmp-input:-moz-placeholder,
.form-cmp-textarea:-moz-placeholder {
    color: #90A1B9;
}

.form-cmp-input,
.form-cmp-textarea {
    color: var(--soft-black);
    padding: 12px;
    font-size: var(--fz);
    width: 100%;
    border-radius:0;
}

.form-cmp-textarea {
    min-height: 152px;
    resize: none;
}

.cmp-helper-txt {
    color: #62748E;
    font-size: 14px;
}

.form-component-wrapper .tab-content {
    display: none;
}

.form-component-wrapper .tab-content.active {
    display: block;
}

.form-cmp-bottom {
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.submit-form-button {
    background: transparent;
    border: 1px solid var(--light-red);
    color: #62748E;
    font-size: var(--fz);
    width: auto;
    padding: 14px 28px 13px;
    align-items: first baseline;
}

.submit-form-button:hover {
    background-color: var(--light-red);
    color: var(--white);
}

.icon-check {
    background: url("../images/check.svg") no-repeat;
    width: 15px;
    height: 11px;
    display: inline-block;
}

.submit-form-button:hover .icon-check,
.submit-form-button:hover svg {
    filter: brightness(0) invert(1);
}

/* Page 2 */
.tradein-estimation-banner {
    background: linear-gradient(90deg, var(--light-red) 0%, #C40008 100%);
    border-radius: 16px 16px 0 0;
    color: #fff;
}

.tradein-estimation-inner {
    gap: 16px;
}

.tradein-estimation-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--rounded-16);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tradein-estimation-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.tradein-estimation-desc {
    color: #FFE2E2;
    font-size: 15px;
    letter-spacing: -0.3px;
}

.step-indicator {
    background-color: #F8FAFC;
    gap: 12px;
    padding: 25px 15px;
}

.step {
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-circle);
    background: #e5e7eb;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.step.active .step-circle {
    background: var(--light-red);
    color: #fff;
    box-shadow:
        0px 8px 10px rgba(0, 0, 0, 0.10),
        0px 20px 25px rgba(0, 0, 0, 0.10);
}

.step-label {
    font-size: 12px;
    color: var(--deep-black);
    font-weight: var(--fw-normal);
}

.step.active .step-label {
    color: #0f172a;
}

.step-line {
    width: 24%;
    height: 4px;
    border-radius: 16px;
    background: #E2E8F0;
}

.state-card {
    padding: 16px 20px 16px 24px;
    cursor: pointer;
    transition: 0.2s;
}

.state-card h4 {
    font-size: 16px;
    color: #0F172B;
    margin-bottom: 6px;
}

.state-card p {
    margin: 0;
    font-size: 14px;
    color: #45556C;
}

/* hide radio */
.state-card input {
    display: none;
}

.state-card.active {
    background: #fff5f5;
    border-color: var(--light-red);
}

.state-card.active h4 {
    color: var(--light-red);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* default: Step 1 visible */
.step1-actions {
    display: flex;
    justify-content: flex-end;
}

.step2-actions {
    display: none;
    justify-content: space-between;
}

.alert-box {
    background-color: #EFF6FF;
    border: 2px solid #BEDBFF;
    margin: 40px auto 0;
}

.alert-box-icon {
    width: 20px;
}

.alert-box-content {
    width: calc(100% - 22px);
}

.alert-box-title {
    color: #1C398E;
    font-size: 16px;
    font-weight: var(--fw-normal);
    line-height: 1.3;
    margin-bottom: 8px;
}

.alert-box-desc {
    color: #1447E6;
    font-size: 14px;
    line-height: 1.5;
}

.alert-green-box {
    background-color: #F0FDF4;
    border-color: #B9F8CF;
}

.alert-green-box .alert-box-title {
    color: #0D542B;
}

.alert-green-box .alert-box-desc {
    color: #008236;
}


/* Page 3 */
/* VIN INPUT */
.vin-input {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Helper text already exists as .cmp-helper-txt */

/* VERIFY BUTTON */

/* Enabled state (JS se class add hogi) */
.verify-vin-btn.is-active {
    background-color: var(--light-red);
    border-color: var(--light-red);
    color: #fff;
    cursor: pointer;
}

.form-cmp-label-icon {
    width: 16px;
}

.verify-vin-btn.is-active:hover {
    opacity: 0.95;
}

.btn-verify-vehicle {
    background-color: #CAD5E2;
    padding: 17px;
    color: #62748E;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
}

.vehicle-tab-btn {
    background-color: #F1F5F9;
}

.vehicle-tab-btn.active {
    background-color: var(--light-red);
    color: #fff;
}

.icon-document {
    background: url("../images/icon-document.svg") no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Heading */
.recall-head {
    max-width: 950px;
}

.recall-head h3 {
    font-size: 20px;
    font-weight: var(--fw-normal);
    color: var(--deep-black);
}

.recall-head p {
    font-size: var(--fz);
    color: #45556C;
    line-height: 1.6;
}

/* Cards */
.recall-card {
    background-color: #F8FAFC;
    padding: 24px;
}



.recall-icon {
    background-color: #FFE2E2;
    width: 48px;
    height: 48px;
    border-radius: var(--rounded-16);
    margin-bottom: 16px;
}

.recall-card h5 {
    font-size: 16px;
    color: var(--deep-black);
    font-weight: var(--fw-normal);
    margin-bottom: 8px;
}

.recall-card p {
    font-size: 14px;
    color: #45556C;
    margin: 0;
}

/* page 4 */
.blank-space {
    height: 40px;
    background-color: rgba(98, 116, 42, 0.10);
    border-bottom: 1px solid rgba(226, 232, 240, 0.50);
}

/* page 5 */
.multi-steps-indicator {
    overflow: auto;
}

.step.step-dot {
    flex: 0 0 94px;
    max-width: 94px;
    text-align: center;
    margin-right: 15px;
}

.multi-steps-indicator .step-line {
    display: none;
}


.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-flow-card {
    padding: 20px 15px;
    cursor: pointer;
    transition: 0.2s;
    background-color: var(--white);
}

.service-flow-card:after {
    content: "";
    background: var(--light-red) url("../images/icon-checked.svg") no-repeat center center;
    width: 25px;
    height: 25px;
    display: block;
    border-radius: var(--rounded-circle);
    display: none;
    position: var(--position-absolute);
    top: 18px;
    right: 18px;
}

.service-flow-card.active:after {
    display: block;
}

.service-flow-card input {
    display: none;
}

.service-flow-card-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 12px;
}

.service-flow-card-title {
    color: #0F172B;
    font-size: var(--fz);
    font-weight: var(--fw-normal);
}

.service-flow-card-desc {
    font-size: 14px;
    color: #62748E;
    line-height: 1.48;
}

.service-flow-card.active {
    border-color: var(--light-red);
    background: #fff5f5;
    transform: scale(1.04);
}

.service-flow-card.active .service-flow-card-title {
    color: var(--light-red)
}

.step-actions {
    display: flex;
    justify-content: space-between;
}



.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* page-5 */
.width-903 {
    max-width: 903px;
    width: 100%;
}

.service-query-label,
.aftersales-service-label {
    font-size: var(--fz);
}

.service-query-label {
    color: var(--deep-black);
}

.aftersales-service-label {
    color: #45556C;
}


/* calendar */
.calendar-card {
    width: 927px;
    max-width: 100%;
    background-color: var(--white);
}

/* HEADER */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.calendar-title {
    font-size: var(--fz);
    color: var(--deep-black);
}

.calendar-month {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fz);
    color: var(--deep-black);
}

.month-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
}

/* WEEKDAYS */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 14px;
}

.calendar-weekdays span {
    font-size: 12px;
    color: #62748E;
}

/* GRID */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px 0;
    text-align: center;
}

/* DATE CELL */
.calendar-date {
    width: 32px;
    height: 32px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-16);
    font-size: 14px;
    cursor: pointer;
    color: #314158;
}

/* SELECTED DATE */
.calendar-date.active {
    background-color: var(--light-red);
    color: var(--white);
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.10), 0px 20px 25px rgba(0, 0, 0, 0.10);
}

/* TIME SLOT SECTION */

.time-title {
    color: var(--deep-black);
    font-size: var(--fz);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}


.time-slot {
    padding: 12px;
    background: #F8FAFC;
    border-radius: var(--rounded-16);
    color: #314158;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
}

/* SELECTED TIME SLOT */
.time-slot.active {
    background-color: var(--light-red);
    color: var(--white);
    border-color: var(--light-red);
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.10), 0px 20px 25px rgba(0, 0, 0, 0.10);
}

/* Page 6 */
.choose-model-cards .service-flow-card.active {
    background-color: var(--white);
}

.choose-model-cards {
    text-align: center;
}

.choose-model-cards img {
    width: 100%;
    max-width: 264px;
}

.card-primary-label {
    font-size: var(--fz);
    color: var(--deep-black);
    text-transform: uppercase;
    font-weight: var(--fw-normal);
    margin: 24px 0 12px;
}

.card-secondary-info {
    color: #45556C;
    font-size: 12px;
    text-transform: uppercase;
    border-top: 1px solid #E2E8F0;
    padding-top: 10px;
}

.card-action-link {
    color: var(--deep-black);
    font-size: 14px;
    text-align: left;
    display: table;
}

.service-flow-card.active .card-primary-label,
.service-flow-card.active .card-action-link {
    color: var(--light-red);
}









/* Responsive */
@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
}



/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .form-wrapper {
        margin: 16px;
        padding: 16px;
    }
}

@media (max-width: 767px) {
    .cmp-tab-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cmp-form-grid {
        grid-template-columns: 1fr;
    }

    .form-cmp-group.full {
        grid-column: span 1;
    }
}

@media(max-width:980px) {
    .calendar-card {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .form-component-block {
        padding: 30px 16px;
    }

    .result-card-content {
        width: calc(100% - 36px);
    }

    /* page 2 */
    .tradein-estimation-content {
        width: calc(100% - 48px);
    }
}

@media (min-width:992px) {
    .form-component-container {
        max-width: 940px;
    }

    .form-component-block {
        padding: 30px 24px;
    }

    /* page 5 */
    .multi-steps-indicator .step-line {
        display: inline-block;
        width: 82px;
    }

    .step.step-dot {
        margin-right: 0;
    }


    .calendar-date {
        width: 72px;
        height: 72px;
    }



}

@media (min-width:1200px) {
    .form-component-container {
        max-width: 1130px;
    }
}

@media (min-width:1280px) {
    .form-component-container {
        max-width: 1200px;
    }

    .form-component-block {
        padding: 45px 36px;
    }

    .form-top-head {
        padding: 40px 20px;
    }

    .form-head-content h2,
    .form-step-title {
        font-size: 20px;
    }

    .form-head-content h2 {
        line-height: 2;
    }

    .form-head-content p,
    .search-input input,
    .concession-name {
        font-size: var(--fz);
    }

    .form-step-title {
        margin-bottom: 36px;
    }

    .search-input input {
        padding: 17px 14px 16px 40px;
    }

    .concession-address,
    .concession-city {
        font-size: 14px;
    }

    .icon-location {
        width: 44px;
        height: 44px;
    }

    .result-card-content {
        width: calc(100% - 44px);
    }

    .result-card {
        gap: 18px;
    }

    .cmp-tab-icon {
    display: none !important;
        width: 48px;
        height: 48px;
    }

    .tab-cmp-buttons {
        gap: 24px;
    }

    .cmp-tab-btn {
        max-width: 486px;
        padding: 21px 16px 19px 50px;
    }

    .form-cmp-input,
    .form-cmp-textarea {
        padding: 14px;
    }

    /* Page 2 */
    .tradein-estimation-title {
        font-size: 30px;
    }

    .tradein-estimation-desc {
        font-size: var(--fz);
    }

    .step-circle {
        width: 53px;
        height: 53px;
        font-size: 18px;
    }

    .alert-box {
        margin-top: 60px;
    }

    /* page 4 */
    .blank-space {
        height: 82px;
    }

    /* page 5 */
    .multi-steps-indicator .step-circle {
        width: 48px;
        height: 48px;
    }

    .multi-steps-indicator .step-label {
        font-size: 10px;
        text-align: center;
    }

    .calendar-date {
        width: 124px;
        height: 124px;
    }




}

@media (min-width:1440px) {
    .form-component-container {
        max-width:1321px;
    }

    .alert-box {
        margin-top: 120px;
        margin-bottom: 70px;
    }
}

/* ========================================================================== */
/* CookiesWork — Maintenir la puce sous les formulaires & masquer lors saisie */
/* ========================================================================== */
.cookieswork-trigger-btn {
    z-index: 40 !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
}

body.is-typing-form .cookieswork-trigger-btn,
body.maurin-fpopup-open .cookieswork-trigger-btn,
body:has(form :focus) .cookieswork-trigger-btn,
body:has(input:focus) .cookieswork-trigger-btn,
body:has(textarea:focus) .cookieswork-trigger-btn,
body:has(select:focus) .cookieswork-trigger-btn,
.maurin-fpopup-overlay.open ~ .cookieswork-trigger-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.6) !important;
    z-index: -1 !important;
}

form,
.form-component-wrapper,
.form-component-container,
.carsens-form-card,
.f-form,
.f-test-drive-card,
.contact-form {
    position: relative;
    z-index: 45;
}

/* ========================================================================== */
/* Lot 1 Responsive : Immunité anti-zoom iOS Safari sur champs de saisie      */
/* ========================================================================== */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="date"],
    input[type="search"],
    select,
    textarea,
    .form-control,
    .form-select,
    .select-box,
    .selectedText,
    .fseb-input,
    .fseb-select {
        font-size: 16px !important;
    }
}

/* ========================================================================== */
/* Lot 1 Responsive : Cibles tactiles sélecteurs et cases à cocher           */
/* ========================================================================== */
.select-box {
    min-height: 48px;
}
.form-check {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-check-input {
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}