/* ==========================================
   Formulaire RDV - Style type Mondial
   ========================================== */

.page-rdv main {
    padding-top: var(--mondial-header-height, 118px);
}

.rdv-form-page .optional {
    color: #888;
    font-size: 14px;
    font-weight: 400;
}

.rdv-form-page .immatriculation-form,
.rdv-form-page .nom-form,
.rdv-form-page .email-form {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.rdv-form-page .telephone-form {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.rdv-form-page .input-immatriculation,
.rdv-form-page .input-nom,
.rdv-form-page .input-telephone,
.rdv-form-page .input-email {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-size: 18px;
    color: #333;
    text-align: center;
    font-weight: 500;
    outline: none;
}

.rdv-form-page .input-immatriculation {
    letter-spacing: 2px;
}

.rdv-form-page .input-telephone {
    max-width: 350px;
    letter-spacing: 2px;
}

.rdv-form-page .input-immatriculation:focus,
.rdv-form-page .input-nom:focus,
.rdv-form-page .input-telephone:focus,
.rdv-form-page .input-email:focus {
    border-bottom-color: var(--mondial-brand, #D91AA8);
}

.rdv-form-page .flag {
    font-size: 24px;
    min-width: 30px;
}

.rdv-form-page .required {
    color: var(--mondial-brand, #D91AA8);
    font-weight: bold;
}

.rdv-form-page .vehicule-card {
    cursor: pointer;
    user-select: none;
}
.rdv-form-page.vehicule-section {
    background: #f4f4f6;
    padding: 0;
    min-height: auto;
    display: block;
    text-align: left;
}

.rdv-form-header {
    background: linear-gradient(135deg, var(--mondial-brand, #D91AA8) 0%, var(--mondial-brand-dark, #6B2A80) 100%);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(107, 42, 128, 0.25);
}

.rdv-form-header .rdv-form-header__inner {
    position: relative;
}

.page-mondial .rdv-form-header {
    top: var(--mondial-header-height, 118px);
}

.rdv-form-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.rdv-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    grid-column: 2;
}

.rdv-form-header__callback {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 50px;
    white-space: nowrap;
    transition: background 0.2s ease, opacity 0.2s ease;
    grid-column: 3;
    justify-self: end;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.rdv-form-header__callback:active {
    opacity: 0.85;
}

.rdv-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.65;
    white-space: nowrap;
}

.rdv-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.rdv-step--active {
    opacity: 1;
    font-weight: 600;
}

.rdv-step--active .rdv-step__num {
    background: #fff;
    color: var(--mondial-brand-dark, #6B2A80);
    border-color: #fff;
}

.rdv-step--done {
    opacity: 0.85;
}

.rdv-step--done .rdv-step__num {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

.rdv-form-header__callback:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rdv-callback-label--short {
    display: none;
}

.rdv-form-body {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rdv-form-main {
    background: #fff;
    padding: 48px 60px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 600px;
}

.rdv-form-main__inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.rdv-form-title-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.rdv-form-title {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--mondial-brand-dark, #6B2A80);
    margin: 0 0 12px;
    line-height: 1.2;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.rdv-form-title__accent {
    color: var(--mondial-accent, #FFD700);
}

.rdv-form-bracket {
    width: 18px;
    height: 56px;
    border: 4px solid var(--mondial-accent, #FFD700);
    flex-shrink: 0;
}

.rdv-form-bracket--left {
    border-right: none;
    border-radius: 40px 0 0 40px;
}

.rdv-form-bracket--right {
    border-left: none;
    border-radius: 0 40px 40px 0;
}

.rdv-form-subtitle {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 36px;
}

.rdv-form-page .step-content {
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.rdv-form-page .step-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--mondial-brand-dark, #6B2A80);
    margin-bottom: 32px;
    text-align: center;
}

.rdv-form-page .vehicule-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto 32px;
    max-width: 960px;
}

.rdv-form-page .vehicule-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px 16px 20px;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.rdv-form-page .vehicule-card:hover {
    border-color: var(--mondial-brand, #D91AA8);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 26, 168, 0.12);
}

.rdv-form-page .vehicule-card.active {
    border-color: var(--mondial-brand, #D91AA8);
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(217, 26, 168, 0.18);
    transform: none;
}

.rdv-form-page .vehicule-card.active p {
    color: var(--mondial-brand-dark, #6B2A80);
}

.rdv-form-page .vehicule-card.active::after {
    background: var(--mondial-brand, #D91AA8);
}

.rdv-form-page .vehicule-card img {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    transform: none !important;
}

.rdv-form-page .vehicule-card p {
    font-size: 13px;
    color: var(--mondial-brand-dark, #6B2A80);
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.rdv-form-page .vehicule-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.rdv-form-page .btn-passer,
.rdv-form-page .btn-rdv-continue {
    min-width: 200px;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.rdv-form-page .btn-rdv-continue {
    background: #b0b0b0;
    color: #fff;
}

.rdv-form-page .btn-rdv-continue--active,
.rdv-form-page .btn-passer:not(:disabled) {
    background: var(--mondial-brand-dark, #6B2A80);
    color: #fff;
}

.rdv-form-page .btn-rdv-continue--active:hover,
.rdv-form-page .btn-passer:not(:disabled):hover {
    background: var(--mondial-brand, #D91AA8);
}

.rdv-form-page .btn-rdv-continue:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.rdv-form-page .progress-bar {
    display: none;
}

.rdv-form-page #step-2,
.rdv-form-page #step-3,
.rdv-form-page #step-4,
.rdv-form-page #step-5 {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    color: #1a1a1a;
}

.rdv-form-page .input-immatriculation,
.rdv-form-page .input-nom,
.rdv-form-page .input-telephone,
.rdv-form-page .input-email {
    border-bottom: 2px solid #ccc;
    color: #333;
    background: transparent;
}

.rdv-form-page .input-nom,
.rdv-form-page .input-telephone {
    border-bottom-color: #ccc;
    color: #333;
}

.rdv-form-page .input-nom::placeholder,
.rdv-form-page .input-telephone::placeholder {
    color: #999;
}

.rdv-form-page .optional {
    color: #888;
}

.rdv-form-page .required {
    color: var(--mondial-brand, #D91AA8);
}

@media (max-width: 1024px) {
    .rdv-form-body {
        padding: 0 16px;
    }

    .rdv-form-main {
        padding: 32px 20px 60px;
    }

    .rdv-form-title {
        font-size: 24px;
        flex-wrap: wrap;
        white-space: normal;
        justify-content: center;
    }

    .rdv-form-header__inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .rdv-steps {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .rdv-form-header__callback {
        grid-column: auto;
        justify-self: auto;
    }
}

@media (max-width: 768px) {
    /* Pas de double marge : la barre violette colle directement sous le header */
    body.page-mondial.page-rdv main {
        padding-top: 0 !important;
    }

    .page-rdv .rdv-form-page.vehicule-section {
        padding: 0 !important;
        margin: 0;
    }

    .page-mondial .rdv-form-header {
        position: sticky;
        top: var(--mondial-header-height, 96px);
        margin-top: var(--mondial-header-height, 96px);
        min-height: 48px;
    }

    .rdv-form-header__inner {
        position: relative;
        display: block;
        padding: 8px 10px 10px;
        min-height: 40px;
    }

    .rdv-form-header__callback {
        display: block !important;
        position: absolute;
        top: 8px;
        right: 10px;
        font-size: 9px;
        padding: 5px 8px;
        z-index: 2;
        max-width: 44%;
        white-space: nowrap;
        text-align: center;
        line-height: 1.2;
    }

    .rdv-callback-label--full {
        display: none;
    }

    .rdv-callback-label--short {
        display: inline;
    }

    .rdv-steps {
        width: 100%;
        grid-column: auto;
        justify-content: flex-start;
        overflow-x: auto;
        padding-right: 108px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .rdv-steps::-webkit-scrollbar {
        display: none;
    }

    .rdv-step {
        font-size: 11px;
        flex-shrink: 0;
    }

    .rdv-step__num {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    /* Contenu blanc + titre sous la barre violette */
    .page-rdv .rdv-form-body {
        padding: 0 12px;
        margin-top: 0;
    }

    .page-rdv .rdv-form-main {
        padding: 20px 16px 80px;
        margin-top: 0;
        border-radius: 0;
    }

    .page-rdv .rdv-form-title-wrap {
        margin-top: 0;
        padding-top: 4px;
        margin-bottom: 16px;
    }

    .page-rdv .rdv-form-title {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .rdv-form-page .vehicule-options {
        grid-template-columns: 1fr;
    }

    .rdv-form-title {
        font-size: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .rdv-form-bracket {
        display: none;
    }
}

/* ==========================================
   Modal rappel téléphonique
   ========================================== */

.rappel-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rappel-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rappel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rappel-modal.is-open .rappel-modal__backdrop {
    opacity: 1;
}

.rappel-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(107, 42, 128, 0.25);
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.rappel-modal.is-open .rappel-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.rappel-modal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--mondial-brand, #D91AA8) 0%, var(--mondial-brand-dark, #6B2A80) 100%);
    color: #fff;
}

.rappel-modal__header h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.rappel-modal__close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.rappel-modal__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rappel-modal__close:active {
    opacity: 0.75;
}

.rappel-modal__body {
    padding: 28px 32px 32px;
}

.rappel-modal__intro {
    text-align: center;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.rappel-modal__intro strong {
    color: var(--mondial-brand-dark, #6B2A80);
}

.rappel-form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.rappel-form-row--3 {
    grid-template-columns: 100px 1fr 1fr;
}

.rappel-form-row--2 {
    grid-template-columns: 1fr 1fr;
}

.rappel-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rappel-field--full {
    margin-bottom: 20px;
}

.rappel-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mondial-brand-dark, #6B2A80);
}

.rappel-optional {
    font-weight: 400;
    color: #888;
}

.rappel-field input,
.rappel-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8de;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rappel-field input:focus,
.rappel-field select:focus {
    border-color: var(--mondial-brand, #D91AA8);
    box-shadow: 0 0 0 3px rgba(217, 26, 168, 0.12);
}

.rappel-cgu {
    margin: 20px 0 24px;
}

.rappel-cgu__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.rappel-cgu__label input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--mondial-brand, #D91AA8);
}

.rappel-cgu__label a {
    color: var(--mondial-brand, #D91AA8);
    text-decoration: underline;
}

.rappel-cgu__error {
    color: #e53935;
    font-size: 13px;
    margin: 8px 0 0 24px;
}

.rappel-submit {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--mondial-brand, #D91AA8) 0%, var(--mondial-brand-dark, #6B2A80) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.rappel-submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.rappel-submit:active:not(:disabled) {
    transform: translateY(0);
    opacity: 0.88;
}

.rappel-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

body.rappel-modal-open {
    overflow: hidden;
}

.rappel-modal__footer {
    text-align: center;
    margin: 24px 0 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.rappel-modal__footer a {
    color: var(--mondial-brand, #D91AA8);
    font-weight: 600;
    text-decoration: none;
}

.rappel-modal__footer-note {
    font-size: 12px;
    color: #888;
}

@media (max-width: 640px) {
    .rappel-modal__body {
        padding: 20px 16px 24px;
    }

    .rappel-form-row--3,
    .rappel-form-row--2 {
        grid-template-columns: 1fr;
    }

    .rappel-modal__header h2 {
        font-size: 18px;
    }
}
