/* =============================================================================
   Réserver un soin (/soins-massages/{slug}/reserver). Establishment + calendar
   (left) · time-slot grid (right) · coordonnées · recap bar. Brand palette
   (#1d3c34 green). Calendar + slots are populated by js/pages/reservation.js.
   ========================================================================== */

.reservation-section { padding: 16px 78px 64px; }

.rdv-head { margin-bottom: 30px; }
.rdv-title { font-size: 42px; line-height: 1.1; letter-spacing: 1px; color: #8b9fc2; margin: 0 0 8px; }
.rdv-soin-name { font-family: "Hero New Light"; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #6f6f6f; margin: 0; }
.rdv-soin-price { color: #1d3c34; }

.rdv-error { display: flex; align-items: center; gap: 10px; background: #fdf3f2; border: 1px solid #e7c7c4; color: #a83a30; padding: 14px 18px; border-radius: 2px; font-size: 14px; margin-bottom: 26px; }

/* ── two-column layout ───────────────────────────────────────────────────── */
.rdv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
.rdv-block { margin-bottom: 30px; }
.rdv-subtitle { display: flex; align-items: center; gap: 10px; font-family: "Hero New Light"; font-size: 20px; line-height: 1.3; color: #1d3c34; margin: 0 0 18px; }
.rdv-subtitle i, .rdv-subtitle svg { font-size: 18px; color: #8b9fc2; }

/* establishment select */
.rdv-select-wrap { position: relative; max-width: 470px; }
.rdv-select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #1d3c34; border-bottom: 2px solid #1d3c34; transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.rdv-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 100%; border: 1px solid #cfd6dd; border-radius: 1px; padding: 14px 42px 14px 16px; font-family: "Hero New Light"; font-size: 15px; color: #3f3f3f; background: #fff; cursor: pointer; }
.rdv-select:focus { outline: none; border-color: #1d3c34; }

/* ── calendar ────────────────────────────────────────────────────────────── */
.rdv-calendar { max-width: 470px; border: 1px solid #e6e6e6; background: #fff; padding: 14px 16px 18px; }
.rdv-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rdv-cal-month { font-family: "FreightBig Pro"; font-size: 21px; color: #1d3c34; text-transform: capitalize; }
.rdv-cal-nav { background: none; border: none; font-size: 22px; line-height: 1; color: #1d3c34; cursor: pointer; padding: 2px 10px; }
.rdv-cal-nav:disabled { color: #d2d2d2; cursor: default; }
.rdv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.rdv-cal-wd { font-family: "Hero New Light"; font-size: 12px; letter-spacing: 0.5px; color: #9a9a9a; padding: 4px 0 8px; }
.rdv-cal-cell { aspect-ratio: 1 / 1; }
.rdv-cal-empty { background: transparent; }
.rdv-cal-day { width: 100%; height: 100%; border: none; border-radius: 2px; background: #f5f6f8; color: #3f3f3f; font-family: "Hero New Light"; font-size: 14px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.rdv-cal-day:hover:not([disabled]) { background: #e1e8ee; }
.rdv-cal-day.is-off, .rdv-cal-day[disabled] { background: transparent; color: #cfcfcf; cursor: default; }
.rdv-cal-day.is-selected { background: #1d3c34; color: #fff; }
.rdv-cal-none { font-family: "Hero New Light"; font-size: 13px; line-height: 20px; color: #8a6d3b; background: #fcf8f0; border: 1px solid #eee3cc; border-radius: 2px; padding: 10px 12px; margin: 12px 0 0; }

/* ── slots ───────────────────────────────────────────────────────────────── */
.rdv-slots-hint, .rdv-slots-empty { font-family: "Hero New Light"; font-size: 14px; line-height: 22px; color: #6f6f6f; margin: 4px 0; }
.rdv-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 470px; }
.rdv-slot { border: 1px solid #cfd6dd; border-radius: 1px; background: #fff; color: #3f3f3f; font-family: "Hero New Light"; font-size: 14px; padding: 13px 6px; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.rdv-slot:hover { border-color: #1d3c34; }
.rdv-slot.is-selected { background: #1d3c34; border-color: #1d3c34; color: #fff; }

/* ── coordonnées ─────────────────────────────────────────────────────────── */
.rdv-coordonnees { max-width: 960px; margin-top: 8px; }
.rdv-identity { font-family: "Hero New Light"; font-size: 15px; color: #3f3f3f; margin: 0 0 16px; }
.rdv-identity strong { color: #1d3c34; }
.rdv-identity-email { color: #6f6f6f; margin-left: 8px; }
.rdv-fields { display: grid; grid-template-columns: minmax(0, 360px); gap: 16px 24px; }
.rdv-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
.rdv-field label { display: block; font-family: "Hero New Light"; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #6f6f6f; margin-bottom: 6px; }
.rdv-optional { color: #a9a9a9; letter-spacing: 0; }
.rdv-input, .rdv-textarea { width: 100%; border: 1px solid #cfd6dd; border-radius: 1px; padding: 12px 14px; font-family: "Hero New Light"; font-size: 15px; color: #3f3f3f; background: #fff; }
.rdv-input:focus, .rdv-textarea:focus { outline: none; border-color: #1d3c34; }
.rdv-textarea { resize: vertical; }
.rdv-field-notes { max-width: 720px; margin-top: 18px; }
.rdv-login-hint { font-family: "Hero New Light"; font-size: 13px; color: #6f6f6f; margin: 14px 0 0; }
.rdv-login-hint a { color: #1d3c34; text-decoration: underline; }

/* ── recap + submit bar ──────────────────────────────────────────────────── */
.rdv-summary-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #faf3ef; border: 1px solid #ece2da; padding: 20px 32px; margin-top: 36px; }
.rdv-summary-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rdv-summary-soin { font-family: "FreightBig Pro"; font-size: 19px; color: #1d3c34; }
.rdv-summary-when, .rdv-summary-where { font-family: "Hero New Light"; font-size: 14px; color: #555; }
.rdv-submit { flex: none; display: inline-flex; align-items: center; gap: 10px; background: #1d3c34; color: #fff; border: none; padding: 20px 46px; font-size: 14px; letter-spacing: 2px; cursor: pointer; transition: background .15s ease; }
.rdv-submit:hover:not(:disabled) { background: #143029; }
.rdv-submit:disabled { background: #a7b1ab; cursor: default; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1450px) { .reservation-section { padding: 16px 60px 56px; } }
@media (max-width: 1199px) {
    /* breadcrumb (header clearance) is hidden < 1200px; clear the mobile logo (≈140px). */
    .reservation-section { padding: 178px 40px 56px; }
    .rdv-grid { grid-template-columns: 1fr; gap: 8px 0; }
    .rdv-calendar, .rdv-select-wrap, .rdv-slot-grid { max-width: 560px; }
}
@media (max-width: 767px) {
    .rdv-title { font-size: 32px; }
    .rdv-fields-2 { grid-template-columns: 1fr; }
    .rdv-fields { grid-template-columns: 1fr; }
    .rdv-summary-bar { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
    .rdv-submit { justify-content: center; width: 100%; }
}
@media (max-width: 575px) {
    .reservation-section { padding: 178px 18px 48px; }
    .rdv-slot-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
