.rdv-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 50%, #e8f4f8 100%);
    padding: 100px 20px 60px;
}

.rdv-container {
    display: flex;
    width: 100%;
    max-width: 960px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.rdv-side {
    flex: 1;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.rdv-side > i {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 25px;
    opacity: 0.9;
}

.rdv-side h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.rdv-side p {
    opacity: 0.75;
    font-size: 1rem;
    line-height: 1.7;
}

.rdv-features {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.rdv-features li {
    font-size: 0.95rem;
    opacity: 0.85;
}

.rdv-form-panel {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rdv-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 35px;
}

.rdv-logo i {
    font-size: 1.6rem;
}

.rdv-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rdv-form h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
}

.rdv-vehicle-group {
    display: flex;
    gap: 14px;
    align-items: end;
}

.rdv-vehicle-group .rdv-group:first-child {
    flex: 1;
}

.rdv-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rdv-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.rdv-group input,
.rdv-group select,
.rdv-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.rdv-group input:focus,
.rdv-group select:focus,
.rdv-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.rdv-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.rdv-check input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.rdv-group.error input,
.rdv-group.error textarea,
.rdv-group.error select {
    border-color: var(--danger);
    background-color: rgba(220, 53, 69, 0.05);
}


/* MOBILE */
@media screen and (max-width: 800px) {
    .rdv-side {
        display: none;
    }

    .rdv-container {
        max-width: 480px;
    }

    .rdv-form-panel {
        padding: 40px 25px;
    }

    .rdv-vehicle-group {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ============================================================
   Calendrier RDV
   ============================================================ */
.rdv-calendar {
    background: var(--bg-light, #f9fafb);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.rdv-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rdv-cal-title {
    font-weight: 600;
    font-size: 1rem;
}

.rdv-cal-nav {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.rdv-cal-nav:hover {
    background: #e5e7eb;
}

.rdv-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

.rdv-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.rdv-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.rdv-cal-day:hover:not(.rdv-cal-day--disabled):not(.rdv-cal-day--empty) {
    background: var(--primary, #2563eb);
    color: #fff;
}

.rdv-cal-day--selected {
    background: var(--primary, #2563eb) !important;
    color: #fff !important;
    font-weight: 700;
}

.rdv-cal-day--disabled {
    background: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
}

.rdv-cal-day--empty {
    background: transparent;
    cursor: default;
}

/* ============================================================
   Créneaux
   ============================================================ */
.rdv-slots {
    margin-top: 16px;
}

.rdv-slots-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.rdv-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.rdv-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.rdv-slot:hover {
    border-color: var(--primary, #2563eb);
    background: #eff6ff;
}

.rdv-slot--selected {
    background: var(--primary, #2563eb) !important;
    color: #fff !important;
    border-color: var(--primary, #2563eb) !important;
}

.rdv-slot--selected .rdv-slot-tech {
    color: rgba(255,255,255,0.8) !important;
}

.rdv-slot--none {
    grid-column: 1 / -1;
    text-align: center;
    color: #9ca3af;
    padding: 20px;
    cursor: default;
}

.rdv-slot-time {
    font-weight: 600;
    font-size: 0.95rem;
}

.rdv-slot-tech {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}
