/* ── RLT Nutrition Booking Widget ─────────────────────────────────────────── */

.booking-widget {
    max-width: 720px;
    margin: 0 auto;
}

/* ── Step Indicator ──────────────────────────────────────────────────────── */
.booking-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}
.booking-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #b0aaa3;
    transition: color 0.3s;
}
.booking-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e4df;
    color: #b0aaa3;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
}
.booking-step.active {
    color: #0a4d3c;
}
.booking-step.active .step-num {
    background: #0a4d3c;
    color: #fff;
}
.booking-step.done .step-num {
    background: #ffa300;
    color: #fff;
}
.booking-step.done {
    color: #ffa300;
}
.step-divider {
    width: 32px;
    height: 2px;
    background: #e8e4df;
    align-self: center;
}

/* ── Calendar ────────────────────────────────────────────────────────────── */
.booking-calendar {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(44,36,27,0.07);
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cal-header h4 {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 600;
    color: #2c241b;
    margin: 0;
}
.cal-nav {
    display: flex;
    gap: 6px;
}
.cal-nav button {
    width: 36px;
    height: 36px;
    border: 1px solid #e8e4df;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a4d3c;
    font-size: 16px;
    transition: all 0.2s;
}
.cal-nav button:hover:not(:disabled) {
    background: #0a4d3c;
    color: #fff;
    border-color: #0a4d3c;
}
.cal-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-dow {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #0a4d3c;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c241b;
    cursor: default;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.cal-day.empty {
    visibility: hidden;
}
.cal-day.past,
.cal-day.disabled {
    color: #d0ccc7;
}
.cal-day.available {
    cursor: pointer;
    background: #f0faf6;
    color: #0a4d3c;
    font-weight: 600;
}
.cal-day.available:hover {
    background: #0a4d3c;
    color: #fff;
}
.cal-day.selected {
    background: #0a4d3c;
    color: #fff;
    border-color: #ffa300;
    box-shadow: 0 0 0 2px rgba(255,163,0,0.3);
}
.cal-day.today {
    border-color: #ffa300;
}
.cal-loading {
    text-align: center;
    padding: 40px 0;
    color: #9e9790;
    font-size: 14px;
}
.cal-loading .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e8e4df;
    border-top-color: #0a4d3c;
    border-radius: 50%;
    animation: booking-spin 0.7s linear infinite;
    margin-bottom: 8px;
}
@keyframes booking-spin {
    to { transform: rotate(360deg); }
}

/* ── Time Slots ──────────────────────────────────────────────────────────── */
.slots-panel {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.slots-date {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    font-weight: 600;
    color: #2c241b;
    margin-bottom: 16px;
}
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}
.slot-btn {
    padding: 10px 4px;
    border: 1px solid #ddd8d2;
    border-radius: 8px;
    background: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0a4d3c;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.slot-btn:hover {
    border-color: #0a4d3c;
    background: #f0faf6;
}
.slot-btn.selected {
    background: #0a4d3c;
    color: #fff;
    border-color: #0a4d3c;
}
.no-slots {
    text-align: center;
    color: #9e9790;
    padding: 20px 0;
    font-size: 14px;
}

/* ── Booking Form ────────────────────────────────────────────────────────── */
.booking-form-panel {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(44,36,27,0.07);
}
.booking-form-panel h4 {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 600;
    color: #2c241b;
    margin: 0 0 6px;
}
.booking-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0faf6;
    color: #0a4d3c;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.booking-summary i {
    font-size: 15px;
}
.booking-form-panel .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.booking-form-panel .form-row.full {
    grid-template-columns: 1fr;
}
.booking-form-panel label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c241b;
    margin-bottom: 6px;
}
.booking-form-panel input,
.booking-form-panel textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd8d2;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #2c241b;
    transition: border-color 0.2s;
    background: #fff;
}
.booking-form-panel input:focus,
.booking-form-panel textarea:focus {
    outline: none;
    border-color: #0a4d3c;
    box-shadow: 0 0 0 3px rgba(10,77,60,0.08);
}
.booking-form-panel textarea {
    resize: vertical;
    min-height: 80px;
}
.booking-form-panel .form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.booking-form-panel .btn-book {
    padding: 12px 28px;
    background: #ffa300;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.booking-form-panel .btn-book:hover {
    background: #e89300;
    transform: translateY(-1px);
}
.booking-form-panel .btn-book:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.booking-form-panel .btn-back {
    padding: 12px 20px;
    background: transparent;
    color: #0a4d3c;
    border: 1px solid #ddd8d2;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.booking-form-panel .btn-back:hover {
    border-color: #0a4d3c;
    background: #f0faf6;
}

/* ── Confirmation ────────────────────────────────────────────────────────── */
.booking-confirm {
    background: #fff;
    border-radius: 12px;
    padding: 40px 28px;
    box-shadow: 0 2px 16px rgba(44,36,27,0.07);
    text-align: center;
}
.booking-confirm .confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.booking-confirm .confirm-icon i {
    font-size: 28px;
    color: #2d8a5e;
}
.booking-confirm h4 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c241b;
    margin: 0 0 8px;
}
.booking-confirm p {
    color: #6b6560;
    font-size: 14px;
    margin-bottom: 20px;
}
.confirm-details {
    background: #f8f6f4;
    border-radius: 10px;
    padding: 20px;
    display: inline-block;
    text-align: left;
    margin-bottom: 20px;
}
.confirm-details .detail-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
}
.confirm-details .detail-label {
    font-weight: 700;
    color: #0a4d3c;
    min-width: 60px;
}
.confirm-details .detail-value {
    color: #2c241b;
}
.booking-confirm .btn-new {
    display: inline-block;
    padding: 10px 20px;
    color: #0a4d3c;
    border: 1px solid #ddd8d2;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
}
.booking-confirm .btn-new:hover {
    border-color: #0a4d3c;
    background: #f0faf6;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .booking-calendar {
        padding: 18px 14px;
    }
    .cal-day {
        font-size: 13px;
        border-radius: 6px;
    }
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .booking-form-panel .form-row {
        grid-template-columns: 1fr;
    }
    .booking-steps {
        gap: 4px;
    }
    .booking-step span:not(.step-num) {
        display: none;
    }
    .step-divider {
        width: 20px;
    }
    .booking-form-panel,
    .booking-confirm {
        padding: 20px 16px;
    }
}
