/* assets/css/booking.css – RFG Booking v2 */

:root {
    --rfg-green:       #1a6b3a;
    --rfg-green-light: #e8f5ee;
    --rfg-green-mid:   #c3e6d0;
    --rfg-green-dark:  #114d29;
    --rfg-text:        #1a1a2e;
    --rfg-muted:       #6b7280;
    --rfg-border:      #e5e7eb;
    --rfg-bg:          #f9fafb;
    --rfg-white:       #ffffff;
    --rfg-success:     #10b981;
    --rfg-radius:      10px;
    --rfg-shadow:      0 4px 20px rgba(26,107,58,.08);
}

.rfg-booking-wrap {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--rfg-text);
}
.rfg-hidden { display: none !important; }

/* ── Frise ─────────────────────────────────────────── */
.rfg-frise {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    position: relative;
}
.rfg-frise-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}
.rfg-frise-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background: var(--rfg-border);
    z-index: 0;
    transition: background .35s;
}
.rfg-frise-step.done:not(:last-child)::after { background: var(--rfg-green); }

.rfg-frise-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--rfg-border);
    background: var(--rfg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--rfg-muted);
    transition: all .25s;
    position: relative;
    z-index: 2;
}
.rfg-frise-step.active .rfg-frise-dot {
    border-color: var(--rfg-green);
    color: var(--rfg-green);
}
.rfg-frise-step.done .rfg-frise-dot {
    border-color: var(--rfg-green);
    background: var(--rfg-green);
    color: #fff;
}
.rfg-frise-lbl {
    font-size: 10px;
    color: var(--rfg-muted);
    margin-top: 5px;
    text-align: center;
    line-height: 1.3;
    transition: color .25s;
}
.rfg-frise-step.active .rfg-frise-lbl { color: var(--rfg-green); font-weight: 600; }
.rfg-frise-step.done .rfg-frise-lbl   { color: var(--rfg-green); }

/* ── Étapes ────────────────────────────────────────── */
.rfg-step {
    background: var(--rfg-white);
    border: 1px solid var(--rfg-border);
    border-radius: var(--rfg-radius);
    padding: 32px 36px;
    box-shadow: var(--rfg-shadow);
}
.rfg-step-header { margin-bottom: 24px; }
.rfg-pill {
    display: inline-block;
    background: var(--rfg-green-light);
    color: var(--rfg-green);
    font-size: 10px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.rfg-step-title { font-size: 20px; font-weight: 700; margin: 0 0 5px; }
.rfg-step-sub   { color: var(--rfg-muted); font-size: 13px; margin: 0; }

/* ── Grille 3×2 types de structure ─────────────────── */
.rfg-structure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.rfg-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 1.5px solid var(--rfg-border);
    border-radius: var(--rfg-radius);
    background: var(--rfg-white);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s, transform .1s;
}
.rfg-type-card:hover, .rfg-type-card.is-active {
    border-color: var(--rfg-green);
    background: var(--rfg-green-light);
    transform: translateY(-1px);
}
.rfg-type-icon {
    color: var(--rfg-muted);
    transition: color .15s;
    display: block;
}
.rfg-type-card:hover .rfg-type-icon,
.rfg-type-card.is-active .rfg-type-icon { color: var(--rfg-green); }
.rfg-type-label { font-size: 12px; font-weight: 600; color: var(--rfg-text); line-height: 1.3; }
.rfg-type-desc  { font-size: 10px; color: var(--rfg-muted); line-height: 1.3; }

/* ── Calendrier ────────────────────────────────────── */
.rfg-cal-nav {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 12px;
}
.rfg-cal-prev, .rfg-cal-next {
    background: none; border: 1px solid var(--rfg-border);
    border-radius: 6px; padding: 5px 12px; cursor: pointer;
    font-size: 14px; color: var(--rfg-text); transition: background .12s;
}
.rfg-cal-prev:hover, .rfg-cal-next:hover { background: var(--rfg-bg); }
.rfg-cal-prev:disabled, .rfg-cal-next:disabled { opacity: .3; cursor: default; }
.rfg-cal-month { font-size: 14px; font-weight: 600; text-transform: capitalize; }
.rfg-cal-grid  { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; text-align: center; }
.rfg-cal-day-hdr {
    font-size: 10px; font-weight: 600; color: var(--rfg-muted);
    text-transform: uppercase; letter-spacing: .04em; padding: 5px 0;
}
.rfg-cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 5px; font-size: 12px; cursor: default; color: var(--rfg-muted);
}
.rfg-cal-day.has-slots {
    background: var(--rfg-green-light); color: var(--rfg-green);
    cursor: pointer; font-weight: 700;
}
.rfg-cal-day.has-slots:hover, .rfg-cal-day.is-selected {
    background: var(--rfg-green); color: #fff;
}
.rfg-cal-day.is-past { color: #d1d5db; }

.rfg-slots-wrap  { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rfg-border); }
.rfg-slots-date  { font-size: 12px; font-weight: 600; color: var(--rfg-muted); margin: 0 0 8px; text-transform: capitalize; }
.rfg-slots-list  { display: flex; flex-wrap: wrap; gap: 7px; }
.rfg-slot-btn {
    padding: 7px 14px; border: 1.5px solid var(--rfg-border);
    border-radius: 6px; background: var(--rfg-white);
    font-size: 13px; font-weight: 600; cursor: pointer;
    color: var(--rfg-text); transition: all .12s;
}
.rfg-slot-btn:hover { border-color: var(--rfg-green); color: var(--rfg-green); background: var(--rfg-green-light); }
.rfg-slot-btn.is-selected { border-color: var(--rfg-green); background: var(--rfg-green); color: #fff; }

/* ── Récap + formulaire ────────────────────────────── */
.rfg-recap {
    background: var(--rfg-green-light); border-radius: 6px;
    padding: 9px 14px; margin-bottom: 18px;
    font-size: 12px; color: var(--rfg-green);
    display: flex; align-items: center; gap: 8px;
}
.rfg-form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.rfg-field { display: flex; flex-direction: column; gap: 5px; }
.rfg-field-full { grid-column: 1/-1; }
.rfg-field label, .rfg-field-full label { font-size: 12px; font-weight: 600; color: var(--rfg-text); }
.rfg-field input, .rfg-field-full input,
.rfg-field textarea, .rfg-field-full textarea {
    border: 1.5px solid var(--rfg-border); border-radius: 6px;
    padding: 9px 12px; font-size: 13px;
    color: var(--rfg-text); background: var(--rfg-white);
    font-family: inherit; outline: none; box-sizing: border-box; width: 100%;
}
.rfg-field input:focus, .rfg-field-full input:focus,
.rfg-field textarea:focus, .rfg-field-full textarea:focus {
    border-color: var(--rfg-green);
    box-shadow: 0 0 0 3px rgba(26,107,58,.1);
}
.rfg-field textarea, .rfg-field-full textarea { resize: vertical; min-height: 72px; }

.rfg-submit-area { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rfg-btn-submit {
    background: var(--rfg-green); color: #fff;
    border: none; border-radius: 7px;
    padding: 11px 28px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.rfg-btn-submit:hover   { background: var(--rfg-green-dark); }
.rfg-btn-submit:disabled { opacity: .55; cursor: wait; }
.rfg-privacy { font-size: 11px; color: var(--rfg-muted); margin: 0; line-height: 1.5; }
.rfg-form-error {
    margin-top: 12px; background: #fef2f2; color: #dc2626;
    border: 1px solid #fecaca; border-radius: 6px;
    padding: 10px 14px; font-size: 13px;
}
.rfg-back { margin-top: 14px; }
.rfg-btn-back {
    background: none; border: none; color: var(--rfg-muted);
    font-size: 12px; cursor: pointer; padding: 0;
}
.rfg-btn-back:hover { color: var(--rfg-text); }

/* ── Confirmation ──────────────────────────────────── */
.rfg-success-wrap  { text-align: center; padding: 24px 0 12px; }
.rfg-check-circle  {
    width: 56px; height: 56px; border-radius: 50%; background: var(--rfg-success);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; color: #fff;
}
.rfg-success-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.rfg-success-date  { font-size: 16px; color: var(--rfg-green); font-weight: 600; margin: 0 0 12px; }
.rfg-success-sub   { font-size: 13px; color: var(--rfg-muted); line-height: 1.6; max-width: 400px; margin: 0 auto 22px; }
.rfg-meet-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 22px; border: 1.5px solid var(--rfg-green);
    border-radius: 7px; color: var(--rfg-green); font-size: 13px;
    font-weight: 600; cursor: pointer; background: transparent; text-decoration: none;
    transition: background .15s;
}
.rfg-meet-btn:hover { background: var(--rfg-green-light); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 560px) {
    .rfg-step { padding: 22px 18px; }
    .rfg-structure-grid { grid-template-columns: repeat(2, 1fr); }
    .rfg-form-grid { grid-template-columns: 1fr; }
    .rfg-field-full { grid-column: 1; }
    .rfg-frise-lbl { display: none; }
}
