/* RDV */

.rdv-card {
    background: #fff;
    padding: 20px 15px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
    margin: auto;
    max-height: 600px;
    overflow: auto;
}

/* ── Progress bar ─────────────────────────────────────────────────── */
.rdv-card .progress-label {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: #111;
}
.rdv-card .progress-bar-wrap {
    background: #E4E7EC;
    border-radius: 99px;
    height: 5px;
    margin-bottom: 36px;
}
.rdv-card .progress-bar-fill {
    background: var(--btn-color);
    height: 100%;
    border-radius: 99px;
    transition: width .35s ease;
}

button.btn-help {
    border: 0px;
    background: transparent;
    color: #298ee2;
}

/* ── Titles ───────────────────────────────────────────────────────── */
.rdv-card .step-title {
    font-size: 19px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: #0d0d0d;
}
.rdv-card .step-subtitle {
    font-size: 14px;
    color: #667085;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── Fields ───────────────────────────────────────────────────────── */
.rdv-card .field-label {
    font-weight: 700;
    font-size: 14px;
    color: #000000;
    margin-bottom: 5px;
    display: block;
}
.rdv-card .field-group { margin-bottom: 15px; }
.rdv-card .field-row { display: flex; gap: 14px; }
.rdv-card .field-row .field-group { flex: 1; }

.rdv-card select,.rdv-card input[type="text"],.rdv-card input[type="email"],.rdv-card textarea {
    width: 100%;
    border: 1.5px solid var(--input-border);
    border-radius: var(--border-radius);
    padding: 10px 12px;
    font-size: 14px;
    color: #858585;
    background: #fff;
    appearance: none;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.rdv-card select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.rdv-card select:focus, input:focus, textarea:focus { border-color: var(--input-focus); }
.rdv-card select:disabled { background-color: #f9fafb; color: #98a2b3; cursor: not-allowed; }
.rdv-card textarea { resize: none; min-height: 120px; }

/* Textarea avec icône image */
.rdv-card .textarea-wrap { position: relative; }
.rdv-card .textarea-wrap textarea { padding-bottom: 50px; }
.rdv-card .textarea-img-btn {
    position: absolute; bottom: 12px; right: 12px;
    background: #f2f4f7; border: none; border-radius: 8px;
    padding: 6px 10px; cursor: pointer; font-size: 18px;
    color: #667085;
}

/* Phone field */
.rdv-card .phone-wrap {
    display: flex;
    border: 1.5px solid var(--input-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color .2s;
}
.rdv-card .phone-wrap:focus-within { border-color: var(--input-focus); }
.rdv-card .phone-icon { display: flex; align-items: center; padding: 0 12px; color: #667085; font-size: 16px; }
.rdv-card .phone-number { border: 0px !important; flex: 1; padding: 14px 12px; font-size: 15px; outline: none; }

/* ── Time slots ───────────────────────────────────────────────────── */
.rdv-card .slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}
.rdv-card .slot-btn {
    border: 1.5px solid var(--input-border);
    border-radius: var(--border-radius);
    padding: 10px 8px;
    background: #fff;
    font-size: 14px;
    color: #344054;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    font-weight: 500;
}
.rdv-card .slot-btn:hover { border-color: var(--btn-color); }
.rdv-card .slot-btn.selected {
    border-color: var(--slot-selected-border);
    color: var(--slot-selected-text);
    font-weight: 700;
    background: #f0f7ff;
}
.rdv-card .slots-empty { color: #98a2b3; font-size: 13px; margin: 0px !important; }

/* ── Checkbox ─────────────────────────────────────────────────────── */
.rdv-card .checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 24px;
}
.rdv-card .checkbox-wrap input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--btn-color);
    cursor: pointer;
    flex-shrink: 0;
}
.rdv-card .checkbox-wrap label { font-size: 14px; color: #344054; cursor: pointer; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.rdv-card .btn-row { display: flex; gap: 12px; margin-top: 24px; }
.rdv-card .btn-primary {
    flex: 1;
    background: var(--btn-color);
    color: var(--btn-text-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s;
}
.rdv-card .btn-primary:hover { opacity: .88; }
.rdv-card .btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.rdv-card .btn-back {
    flex: 1;
    background: var(--btn-back-color);
    color: var(--btn-back-text);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s;
}
.rdv-card .btn-back:hover { opacity: .8; }

/* ── Steps visibility ─────────────────────────────────────────────── */
.rdv-card .step { display: none; }
.rdv-card .step.active { display: block; }

/* ── Success screen ───────────────────────────────────────────────── */
.rdv-card .success-screen {
    text-align: center;
    padding: 40px 20px;
}
.rdv-card .success-icon {
    font-size: 80px;
    margin-bottom: 24px;
}
.rdv-card .success-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 14px;
}
.rdv-card .success-text { font-size: 15px; color: #667085; line-height: 1.7; }

/* ── Footer ───────────────────────────────────────────────────────── */
.rdv-card .rdv-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #98a2b3;
}

/* ── Error message ────────────────────────────────────────────────── */
.rdv-card .error-msg {
    background: #fef2f2;
    color: #dc2626;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}
.rdv-card .error-msg.visible { display: block; }

/* ── Loader ───────────────────────────────────────────────────────── */
.rdv-card .spinner {
    width: 18px; height: 18px;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: none;
}
.rdv-card .btn-primary.loading .spinner { display: inline-block; }
.rdv-card .btn-primary.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }




