/* Container */
.antirouille-calculateur {
    /* Match the global site font (Poppins) */
    font-family: "Poppins", sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0px !important;
    color: #000;
}

/* Layout for calculator row */
.calc-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.calc-col {
    flex: 1;
}

/* Labels */
.calc-label {
    display: block;
    font-size: 42px; /* Style large comme l'image */
    font-weight: bold;
    margin-bottom: 30px;
    font-family: "Poppins", sans-serif;
}

/* Selects */
.calc-input {
    width: 100%;
    height: 60px;
    line-height: 60px; /* vertically center text */
    border: 2px solid #C41221;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 18px;
    background-color: #fff;
    color: #333;
    outline: none;
    font-family: "Poppins", sans-serif;
    /* Hide native browser styling so we can replace it */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}

/* Hide the native select when replaced by custom dropdown */
.calc-input--hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
}

/* Title */
.services-title {
    font-size: 48px;
    font-weight: bold;
    margin: 40px 0 20px 0;
    font-family: "Poppins", sans-serif;
}

/* Service cards */
.service-card {
    display: flex;
    border: 2px solid #C41221;
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    background-color: #fff;
    min-height: 100px;
}

.service-info {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-name {
    font-size: 20px;
    font-weight: normal;
    font-family: "Poppins", sans-serif;
}

.service-promo {
    color: #C41221;
    font-size: 16px;
    margin-top: 5px;
    font-family: "Poppins", sans-serif;
}

.service-price-old {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    font-size: 24px;
    font-weight: bold;
    border-left: none;
    font-family: "Poppins", sans-serif;
    white-space: nowrap; /* garder le prix et +tx sur une seule ligne */
    text-decoration: line-through;
}

/* Étendre le texte barré au +tx si appliqué */
.service-price-old sup {
    text-decoration: inherit;
}

.service-price-new {
    background-color: #C41221;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    min-width: 140px;
    font-size: 28px;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
}

/* Responsive design for calculator */
@media (max-width: 768px) {
    .calc-row {
        flex-direction: column;
    }

    .service-card {
        flex-direction: column;
    }

    .service-price-old {
        justify-content: flex-end;
        padding: 15px;
    }

    .service-price-new {
        padding: 15px;
    }

    .calc-label {
        font-size: 32px;
    }

    .services-title {
        font-size: 36px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-4 {
    padding: 0 15px;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-8 {
    padding: 0 15px;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Custom Select Box */
.select-box {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
    /* font-family: 'Poppins', sans-serif; */
    font-size: 18px;
    color: #60666d;
}

.select-box__current {
    position: relative;
    /* Match visual style of .calc-input */
    width: 100%;
    height: 60px;
    line-height: 60px; /* vertically center text */
    border: 2px solid #C41221;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 18px;
    background-color: #fff;
    color: #333;
    display: flex;
    align-items: center;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    outline: none;
}

.select-box__current:focus {
    box-shadow: 0 0 0 3px rgba(196, 18, 33, 0.2);
}

/* Modèle dropdown disabled until Marque is selected */
.select-box.is-disabled .select-box__current {
    background-color: #e9e9e9;
    border-color: #bbb;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

.select-box.is-disabled {
    opacity: 0.85;
}

.select-box__current.is-open + .select-box__list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation-name: none;
}

.select-box__current.is-open .select-box__icon {
    transform: translateY(-50%) rotate(180deg);
}

.select-box__icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 20px;
    opacity: 0.3;
    transition: 0.2s ease;
}

/* Placeholder uses a span for the arrow (no flash, no extra image load) */
.select-box--placeholder .select-box__icon {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    margin-left: 5px;
}

.select-box__value {
    display: flex;
    width: 100%;
}

.select-box__input {
    display: none;
}

.select-box__input:checked + .select-box__input-text {
    display: block;
}

.select-box__input-text {
    /* We only use a single visible text element for the current selection */
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Override global paragraph margins inside the calculator so the
   theme rule ".entry-content p { margin-bottom: 1.6em; }" does not
   affect the text inside our custom select */
.antirouille-calculateur p.select-box__input-text {
    margin-bottom: 0;
}

.select-box__list {
    position: absolute;
    width: 100%;
    padding: 0 !important;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation-name: HideList;
    animation-duration: 0.5s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: step-start;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    border-radius: 12px;
}

/* List items inside custom selects – avoid global <li> styles */
.select-box__item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.select-box__item::before {
    display: none !important;
}

.select-box__option {
    font-family: "Poppins", sans-serif;
    text-align: left;
    font-size: 14px;
    width: 100%;
    display: block;
    padding: 15px;
    background-color: #ffffff00;
    color: #5e5e5e !important;
    cursor: pointer;
    box-shadow: none !important;
}

.select-box__option:hover,
.select-box__option:focus {
    color: #546c84;
    background-color: #e7e7e7;
}

/* Optional group label style when we convert optgroups */
.select-box__group {
    font-family: "Poppins", sans-serif;
    text-align: left;
    font-size: 16px;
    padding: 10px 15px 5px;
    font-size: 14px;
    font-weight: 600;
    color: #3b3b3b;
    cursor: default;
}

@keyframes HideList {
    from {
        transform: scaleY(1);
    }
    to {
        transform: scaleY(0);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .select-box {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .select-box {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .select-box {
        width: 100%;
    }
}
