/* ============================================================
   CHARTE GRAPHIQUE PARTAGÉE
   Vin #73041e · Doré #b89b53 · Police Georgia
   Fichier commun aux formulaires RDV et Collaboration
============================================================ */

/* ── VARIABLES ── */
:root {
    --appt-gold: #b89b53;
    --appt-gold-grad: linear-gradient(90deg,#e7aa51 0%,#ffe499 25%,#8d5a1b 50%,#e7aa51 75%,#ac7031 100%);
    --appt-wine: #73041e;
    --appt-wine-light: rgba(115,4,30,0.12);
    --appt-wine-mid: rgba(115,4,30,0.3);
    --appt-bg: #08090c;
    --appt-card: #0d0f14;
    --appt-border: rgba(184,155,83,0.2);
    --appt-border-strong: rgba(184,155,83,0.38);
    --appt-text: #e8e0d0;
    --appt-text-dim: #a09080;
    --appt-radius: 24px;
    --appt-radius-sm: 12px;
    --appt-shadow: 0 30px 80px rgba(0,0,0,0.6);
    /* alias pour rétrocompatibilité collab */
    --gold: #b89b53;
}

/* ── ANIMATIONS ── */
@keyframes appt-fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes appt-slideUp { from{opacity:0;transform:translateY(36px)} to{opacity:1;transform:translateY(0)} }
@keyframes appt-pop     { from{opacity:0;transform:scale(0.92)} to{opacity:1;transform:scale(1)} }
@keyframes appt-spin    { to{transform:rotate(360deg)} }
@keyframes appt-pulse   {
    0%,100%{box-shadow:0 0 0 0 rgba(184,155,83,0.4)}
    50%    {box-shadow:0 0 0 10px rgba(184,155,83,0)}
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideBack {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}
@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Classes d'animation ── */
.slide-in   { animation: slideIn  0.4s ease-out; }
.slide-back { animation: slideBack 0.4s ease-out; }
.error-pulse { animation: shake 0.3s ease-in-out; }
.error-pulse input:not([type="radio"]):not([type="checkbox"]) { border-bottom-color: #ff4d4d !important; }

/* ============================================================
   MODAL OVERLAY (partagé)
============================================================ */
.appointment-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5,7,10,0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    align-items: center !important;
    justify-content: center;
    padding: 16px !important;
    overscroll-behavior: contain;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.appointment-modal::-webkit-scrollbar { display: none; }
.appointment-modal.active {
    display: flex;
    animation: appt-fadeIn 0.25s ease;
}

/* Mode section statique */
.appointment-section {
    padding: clamp(60px,8vw,100px) clamp(16px,5vw,40px);
}
.appointment-section .appointment-container {
    max-width: 860px;
    margin: 0 auto;
}

/* Tablette/Desktop : dialog centré */
@media (min-width: 640px) {
    .appointment-modal {
        align-items: center;
        padding: 20px;
    }
}

/* ============================================================
   CONTAINER PRINCIPAL (partagé)
============================================================ */
.appointment-container {
    width: 100%;
    max-width: 860px;
    background: var(--appt-card);
    border: 1px solid var(--appt-border-strong);
    border-radius: var(--appt-radius) var(--appt-radius) 0 0;
    border-bottom: none;
    padding: clamp(28px,5vw,54px) clamp(18px,5vw,50px) calc(clamp(28px,5vw,54px) + env(safe-area-inset-bottom));
    box-shadow: var(--appt-shadow);
    position: relative;
    max-height: 93dvh;
    overflow-y: auto;
    overflow-x: visible !important; /* Crucial pour laisser déborder la liste des pays */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: appt-slideUp 0.35s cubic-bezier(0.4,0,0.2,1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.appointment-container::-webkit-scrollbar { display: none; }

/* Handle indicator (mobile) */
.appointment-container::before {
    content: '';
    display: block;
    width: 44px; height: 4px;
    background: rgba(255,255,255,0.14);
    border-radius: 4px;
    margin: -14px auto 20px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .appointment-container {
        border-radius: var(--appt-radius);
        border: 1px solid var(--appt-border-strong);
        max-height: 92vh;
        animation: appt-pop 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    .appointment-container::before { display: none; }
}
@media (min-width: 960px) {
    .appointment-container { max-width: 860px; }
}

/* ── COLLAB MODAL : centré sur tous les écrans ── */
#collabModal {
    align-items: center !important;
    padding: 16px !important;
}
#collabModal .appointment-container {
    border-radius: var(--appt-radius) !important;
    border: 1px solid var(--appt-border-strong) !important;
    border-bottom: 1px solid var(--appt-border-strong) !important;
    max-width: 680px;
    width: 100%;
    max-height: 90dvh;
    animation: appt-pop 0.3s cubic-bezier(0.4,0,0.2,1) !important;
}
#collabModal .appointment-container::before { display: none !important; }

.appointment-section .appointment-container {
    max-height: none;
    border-radius: var(--appt-radius);
    border: 1px solid var(--appt-border-strong);
    overflow: visible;
}
.appointment-section .appointment-container::before { display: none; }

/* ── BOUTON FERMER ── */
.close-modal-btn {
    position: absolute;
    top: clamp(14px,3vw,22px);
    right: clamp(14px,3vw,22px);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--appt-border);
    color: var(--appt-gold);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
    z-index: 10;
    line-height: 1;
}
.close-modal-btn:hover {
    transform: rotate(90deg);
    background: var(--appt-wine-light);
    border-color: var(--appt-gold);
}

/* ============================================================
   EN-TÊTE & STEPPER (partagé)
============================================================ */
.appt-header {
    text-align: center;
    margin-bottom: clamp(24px,4vw,40px);
    padding-top: 8px;
}
.appt-header h3 {
    font-family: Georgia, serif;
    font-size: clamp(1.4rem,3.5vw,2.2rem);
    color: #fff;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.appt-header p {
    color: var(--appt-text-dim);
    font-size: clamp(0.82rem,1.8vw,0.95rem);
}

/* En-tête collab */
.form-header {
    text-align: center;
    margin-bottom: clamp(24px,4vw,40px);
    padding-top: 8px;
}
.form-header h3 {
    font-family: Georgia, 'Playfair Display', serif;
    font-size: clamp(1.4rem,3.5vw,2rem);
    color: var(--appt-gold);
    font-weight: 700;
    margin: 0 0 8px;
}

/* ── STEPPER ── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: clamp(20px,3vw,36px) auto clamp(24px,4vw,44px);
    max-width: 360px;
    gap: 0;
}
.stepper-line-bg {
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,0.07);
    transform: translateY(-50%);
    z-index: 0;
}
.step-progress {
    position: absolute;
    top: 50%; left: 0;
    height: 2px;
    background: var(--appt-gold-grad);
    width: 0%;
    transition: width 0.4s ease;
    z-index: 1;
    transform: translateY(-50%);
}
.stepper-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}
.step-circle {
    width: 42px; height: 42px;
    background: var(--appt-card);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.3);
    transition: all 0.35s;
    flex-shrink: 0;
    z-index: 2;
}
.step-circle.active {
    border-color: var(--appt-gold);
    color: var(--appt-gold);
    box-shadow: 0 0 18px rgba(184,155,83,0.35);
    animation: appt-pulse 2s infinite;
}
.step-circle.done {
    background: var(--appt-gold-grad);
    border-color: transparent;
    color: #1a0a0f;
    animation: none;
}
@media (max-width: 420px) {
    .step-circle { width: 36px; height: 36px; font-size: 0.82rem; }
}

/* ============================================================
   ÉTAPES FORMULAIRE (partagé)
============================================================ */
.form-step { display: none; }
.form-step.active { display: block; animation: appt-slideUp 0.4s cubic-bezier(0.4,0,0.2,1); }

.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(20px,3vw,32px);
    padding-left: 16px;
    border-left: 3px solid var(--appt-wine);
    position: relative;
}
.step-title::before {
    content: '';
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 3px;
    background: var(--appt-gold-grad);
    border-radius: 4px;
}
.step-title h3 {
    font-family: Georgia, serif;
    color: #fff;
    font-size: clamp(1rem,2.5vw,1.2rem);
    font-weight: 700;
    margin: 0;
}
.step-title i { color: var(--appt-gold); font-size: 1.1rem; flex-shrink: 0; }

/* ── GRILLE D'INPUTS ── */
.input-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 20px;
}
@media (max-width: 479px) {
    .input-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ── INPUT GROUP ── */
.input-group {
    position: relative;
    margin-bottom: clamp(22px,3vw,32px);
    overflow: visible !important; /* Laisse le menu des pays déborder en dehors de l'input */
}
.input-group input:not([type="radio"]):not([type="checkbox"]),
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 0 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    transition: border-color 0.25s;
    outline: none;
    -webkit-appearance: none;
}
.input-group select {
    background: var(--appt-card) !important;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
}
.input-group select option { background: #1a1d24; color: #fff; }
.input-group textarea { resize: vertical; min-height: 80px; }

.input-group input:focus,
.input-group textarea:focus { border-bottom-color: var(--appt-gold); }

.input-group label {
    position: absolute;
    top: 14px; left: 0;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
    transition: all 0.25s;
    font-size: 0.95rem;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.72rem;
    color: var(--appt-gold);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ── TIMEZONE DISPLAY ── */
#timezone_display {
    background: rgba(184,155,83,0.08);
    border: 1px dashed var(--appt-gold);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--appt-gold);
    margin-top: 8px;
    display: none;
}

/* ── DURÉE ── */
.duration-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(184,155,83,0.08);
    border: 1px solid var(--appt-border);
    padding: 10px 16px;
    border-radius: var(--appt-radius-sm);
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: clamp(18px,3vw,26px);
}
.duration-badge i { color: var(--appt-gold); }
.duration-badge strong { color: var(--appt-gold); }

/* ── OPTIONS TÉLÉPHONE ── */
#phone_options_container {
    display: none;
    margin-top: 14px;
    padding: clamp(14px,3vw,20px);
    border: 1px solid var(--appt-border);
    border-radius: var(--appt-radius-sm);
    background: rgba(184,155,83,0.04);
}
#phone_options_container p {
    color: var(--appt-gold);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.phone-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--appt-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.phone-radio-label input[type="radio"] {
    accent-color: var(--appt-gold);
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

#admin_phone_display {
    display: none;
    margin-top: 6px;
    padding: 10px 14px;
    background: var(--appt-wine-light);
    border: 1px solid var(--appt-wine-mid);
    border-radius: 8px;
    color: var(--appt-gold);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ============================================================
   SYSTÈME NATIVE SÉLECTEUR DE PAYS (FLAGCDN UNIFIÉ)
============================================================ */
.phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    z-index: 50; /* Permet au menu de passer devant le reste du formulaire */
}

/* Zone sélecteur d'indicatif cliquable */
.country-selector-custom, 
#country_selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 10px 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    min-width: 82px;
}
.country-selector-custom:hover, 
#country_selector:hover {
    background: rgba(255, 255, 255, 0.09);
}
.country-selector-custom img, 
#country_selector img {
    width: 20px;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}
.country-selector-custom span, 
#country_selector span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Flèche décorative du dropdown */
.country-selector-custom::after,
#country_selector::after {
    content: '▼';
    font-size: 8px;
    color: var(--appt-gold);
    margin-left: 2px;
    transition: transform 0.2s;
}

/* Champ de saisie numérique associé */
#client_phone_number, 
#phone_input {
    flex: 1;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 0 8px 8px 0 !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-size: 16px !important;
    outline: none !important;
    transition: border-color 0.2s;
    margin: 0 !important;
}
#client_phone_number:focus, 
#phone_input:focus { 
    border-color: var(--appt-gold) !important; 
}

/* Liste déroulante des pays FlagCDN */
.phone-dropdown,
#phone-dropdown,
#country_dropdown {
    display: none; /* Piloté via Javascript */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 320px;
    max-height: 220px;
    overflow-y: auto;
    background: #11141b;
    border: 1px solid var(--appt-border-strong);
    border-radius: 12px;
    margin-top: 6px;
    padding: 6px 0;
    list-style: none;
    z-index: 99999 !important; /* Force l'apparition au premier plan */
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    scrollbar-width: thin;
    scrollbar-color: var(--appt-gold) rgba(0,0,0,0.2);
}
.phone-dropdown::-webkit-scrollbar,
#phone-dropdown::-webkit-scrollbar,
#country_dropdown::-webkit-scrollbar {
    width: 6px;
}
.phone-dropdown::-webkit-scrollbar-thumb,
#phone-dropdown::-webkit-scrollbar-thumb,
#country_dropdown::-webkit-scrollbar-thumb {
    background-color: var(--appt-gold);
    border-radius: 10px;
}

/* Options de la liste */
.phone-dropdown li,
#phone-dropdown li,
#country_dropdown li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: sans-serif;
}
.phone-dropdown li:hover,
#phone-dropdown li:hover,
#country_dropdown li:hover {
    background: var(--appt-wine-light);
    color: #fff;
}
.phone-dropdown li img,
#phone-dropdown li img,
#country_dropdown li img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* Erreurs téléphone */
#phone-error {
    display: none;
    color: #ff4d4d;
    font-size: 11px;
    margin-top: 6px;
    font-weight: 600;
    animation: fadeInError 0.25s ease;
}

/* Empêcher le zoom forcé sur les champs iOS */
@media (max-width: 767px) {
    input, select, textarea { font-size: 16px !important; }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .appointment-modal .appointment-container {
        padding-bottom: calc(clamp(28px,5vw,54px) + env(safe-area-inset-bottom)) !important;
    }
}

/* ============================================================
   BOUTONS (partagé)
============================================================ */
.btn-row {
    display: flex;
    align-items: center;
    gap: clamp(10px,2vw,16px);
    margin-top: clamp(28px,4vw,48px);
    flex-wrap: wrap;
}
.btn-next, .btn-submit, .btn-premium {
    flex: 1;
    min-width: 140px;
    padding: clamp(13px,2.5vw,17px) clamp(20px,4vw,40px);
    background: var(--appt-gold-grad);
    background-size: 200% auto;
    color: #1a0a0f !important;
    font-family: Georgia, serif;
    font-size: clamp(0.88rem,1.8vw,1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background-position 0.4s;
    box-shadow: 0 6px 24px rgba(184,155,83,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    -webkit-appearance: none;
    width: 100%;
}
.btn-next:hover, .btn-submit:hover, .btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(184,155,83,0.45);
    background-position: right center;
}
.btn-next:active, .btn-submit:active, .btn-premium:active { transform: translateY(0); }
.btn-next:disabled, .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-prev {
    padding: clamp(12px,2.5vw,16px) clamp(16px,3vw,28px);
    background: transparent;
    color: var(--appt-text-dim);
    border: 1px solid var(--appt-gold);
    border-radius: 50px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: clamp(0.82rem,1.6vw,0.92rem);
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    -webkit-appearance: none;
}
.btn-prev:hover {
    background: rgba(212,175,55,0.1);
    color: #fff;
    border-color: var(--appt-gold);
}
@media (max-width: 420px) {
    .btn-row { flex-direction: column-reverse; }
    .btn-next, .btn-submit, .btn-prev, .btn-premium { width: 100%; }
}

/* ── SPINNER ── */
.btn-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #1a0a0f;
    border-radius: 50%;
    animation: appt-spin 0.7s linear infinite;
}

/* ── ERREURS ── */
.input-error {
    border-bottom-color: #ff6b6b !important;
    background-color: rgba(255, 77, 77, 0.05) !important;
}
.error-hint {
    font-size: 0.76rem;
    color: #ff8080;
    margin-top: 4px;
    display: none;
}
.error-hint.visible { display: block; }

.error-msg {
    display: none;
    color: #ff6b6b;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-group.input-error .error-msg { display: block; animation: fadeInError 0.3s ease; }
.input-group.input-error input,
.input-group.input-error select,
.input-group.input-error textarea { border-bottom: 2px solid #ff6b6b !important; }

/* ============================================================
   MODAL STRIPE (RDV payant)
============================================================ */
#rdv-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(5,7,10,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#rdv-payment-modal::-webkit-scrollbar { display: none; }
#rdv-payment-modal.active { display: flex; animation: appt-fadeIn 0.25s ease; }
@media (min-width: 640px) {
    #rdv-payment-modal { align-items: center; padding: 20px; }
}

.rdv-payment-sheet {
    background: var(--appt-card);
    width: 100%;
    max-width: 480px;
    border-radius: 28px 28px 0 0;
    border: 1px solid var(--appt-border-strong);
    border-bottom: none;
    padding: clamp(24px,4vw,44px) clamp(20px,5vw,40px) calc(clamp(24px,4vw,44px) + env(safe-area-inset-bottom));
    max-height: 95dvh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    animation: appt-slideUp 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}
.rdv-payment-sheet::-webkit-scrollbar { display: none; }
.rdv-payment-sheet::before {
    content: '';
    display: block;
    width: 44px; height: 4px;
    background: rgba(255,255,255,0.14);
    border-radius: 4px;
    margin: -14px auto 22px;
}
@media (min-width: 640px) {
    .rdv-payment-sheet { border-radius: 28px; border: 1px solid var(--appt-border-strong); max-height: 90vh; }
    .rdv-payment-sheet::before { display: none; }
}
.rdv-payment-close {
    position: absolute;
    top: clamp(14px,3vw,22px);
    right: clamp(14px,3vw,22px);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--appt-border);
    color: var(--appt-text-dim);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}
.rdv-payment-close:hover { background: var(--appt-wine-light); color: #fff; }
.rdv-payment-header { text-align: center; margin-bottom: 24px; padding-top: 4px; }
.rdv-payment-header .lock-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.rdv-payment-header h3 {
    font-family: Georgia, serif;
    font-size: clamp(1.2rem,3vw,1.4rem);
    color: #fff; font-weight: 700; margin: 0 0 6px;
}
.rdv-payment-header .subtitle { font-size: 0.88rem; color: var(--appt-text-dim); }
.rdv-payment-header .subtitle strong { color: var(--appt-gold); }
.rdv-price-display {
    font-family: Georgia, serif;
    font-size: 1.8rem; font-weight: 700;
    background: var(--appt-gold-grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-top: 10px; display: block;
}
.rdv-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0; color: var(--appt-text-dim);
    font-size: 0.76rem; letter-spacing: 0.5px;
}
.rdv-divider::before, .rdv-divider::after {
    content:''; flex:1; height: 1px; background: rgba(255,255,255,0.07);
}
#rdv-payment-element {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--appt-radius-sm);
    padding: 16px; min-height: 100px;
}
#rdv-payment-error {
    display: none;
    background: rgba(255,100,100,0.08);
    border: 1px solid rgba(255,100,100,0.25);
    color: #ff8080;
    border-radius: var(--appt-radius-sm);
    padding: 11px 15px; font-size: 0.86rem; margin-top: 12px;
    align-items: center; gap: 8px;
}
#rdv-payment-error.visible { display: flex; }
.rdv-security-badges {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin-top: 16px; flex-wrap: wrap;
}
.rdv-security-badge { display: flex; align-items: center; gap: 5px; color: var(--appt-text-dim); font-size: 0.74rem; }
.rdv-security-badge i { color: var(--appt-gold); font-size: 0.78rem; }

/* ============================================================
   SUCCESS OVERLAY
============================================================ */
#success-overlay {
    position: fixed; inset: 0;
    background: rgba(5,7,10,0.93);
    backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10002; padding: 20px;
    animation: appt-fadeIn 0.3s ease;
}
.success-modal {
    max-width: 500px; width: 100%;
    background: var(--appt-card);
    border: 1px solid var(--appt-border-strong);
    color: white;
    padding: clamp(32px,5vw,52px) clamp(24px,5vw,44px);
    border-radius: var(--appt-radius);
    text-align: center;
    box-shadow: 0 0 60px rgba(184,155,83,0.3);
    animation: appt-pop 0.45s cubic-bezier(0.175,0.885,0.32,1.275);
}
.success-modal h2 {
    font-family: Georgia, serif;
    font-size: clamp(1.8rem,4vw,2.5rem);
    color: #fff; margin-bottom: 12px;
}
.success-modal p {
    font-size: clamp(0.9rem,2vw,1.1rem);
    line-height: 1.65; color: var(--appt-text-dim); margin-bottom: 22px;
}
.success-progress-bar {
    width: 100%; background: rgba(255,255,255,0.08);
    height: 4px; border-radius: 4px; overflow: hidden; margin-top: 20px;
}
.success-progress-fill {
    width: 100%; background: var(--appt-gold-grad);
    height: 100%; transition: width 10s linear;
}

/* ============================================================
   FLATPICKR DARK THEME
============================================================ */
.flatpickr-calendar {
    background: #11141b !important;
    border: 1px solid rgba(184,155,83,0.25) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.65) !important;
    border-radius: 18px !important;
    overflow: hidden;
}
.flatpickr-months { background: #11141b !important; }
.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { color: #fff !important; fill: #fff !important; font-family: Georgia, serif; }
.flatpickr-weekdays { background: rgba(184,155,83,0.08) !important; }
span.flatpickr-weekday { color: var(--appt-gold) !important; font-weight: 700; text-transform: uppercase; font-size: 0.72rem; }
.flatpickr-day { color: rgba(255,255,255,0.92) !important; border-radius: 10px !important; transition: all 0.2s ease; }
.flatpickr-day:hover { background: rgba(184,155,83,0.18) !important; border-color: transparent !important; color: #fff !important; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange { background: var(--appt-gold-grad) !important; color: #1a0a0f !important; border-color: transparent !important; font-weight: 700; }
.flatpickr-day.today { border-color: var(--appt-gold) !important; color: var(--appt-gold) !important; }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.notAllowed,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: rgba(255,255,255,0.12) !important; opacity: 0 !important; pointer-events: none; }
.flatpickr-prev-month svg,
.flatpickr-next-month svg { fill: var(--appt-gold) !important; }
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg { fill: #fff !important; }
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm { background: #11141b !important; color: #fff !important; }