/* ============================================================
   AGENDAR / BOOKING PAGE — Design System v2
   ============================================================ */

/* ── Page Hero blobs ─────────────────────────────────────────── */
.page-hero__blob-1 {
    width: 460px; height: 460px;
    background: radial-gradient(circle at 40% 40%, var(--sage-100), transparent 70%);
    top: -120px; right: -100px;
    opacity: 0.7;
}

.page-hero__blob-2 {
    width: 280px; height: 280px;
    background: var(--clay-100);
    bottom: -100px; left: 15%;
    opacity: 0.35;
}

/* ── Stepper ──────────────────────────────────────────── */
.stepper {
    padding: 32px 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.stepper__inner {
    display: flex;
    gap: 0;
    align-items: center;
    max-width: 720px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all var(--dur-fast);
    flex-shrink: 0;
}

.step.is-active { color: var(--text); }

.step.is-active .step__num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.step.is-done .step__num {
    background: var(--sage-500);
    border-color: var(--sage-500);
    color: #fff;
}

.step.is-done { color: var(--text-muted); }

.step__line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 16px;
    min-width: 40px;
}

/* ── Booking shell ──────────────────────────────────── */
.booking-section {
    padding: 40px 0 var(--sp-10);
    background: var(--bg);
}

.booking-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Panel base ──────────────────────────────────────── */
.booking-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xs);
}

/* ── Right-column wrapper ─────────────────────────── */
.booking-right {
    display: flex;
    flex-direction: column;
}

.booking-right [hidden] { display: none !important; }

.booking-right > .booking-panel { flex: 1; }

/* ── Placeholder panel ───────────────────────────── */
.booking-panel--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.placeholder-inner {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    margin: 0 auto 20px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-100);
    border-radius: 50%;
    color: var(--ink-300);
}

.placeholder-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 220px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Calendar ─────────────────────────────────────── */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: none;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
    padding: 0;
    font-family: var(--font-sans);
}

.cal-nav:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.cal-nav:disabled {
    color: var(--ink-300);
    cursor: default;
    border-color: var(--border);
}

.cal-month-label {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.005em;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 4px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    transition: opacity 0.2s;
}

.cal-cell {
    aspect-ratio: 1 / 0.82;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    cursor: default;
    transition: background var(--dur-fast), color var(--dur-fast);
    user-select: none;
    font-variant-numeric: tabular-nums;
    position: relative;
}

@keyframes cal-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.cal-cell--shimmer::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--border) 25%, var(--cream-100) 50%, var(--border) 75%);
    background-size: 400% 100%;
    animation: cal-shimmer 2s ease-in-out infinite;
    opacity: 0.5;
}

.cal-month-shimmer {
    display: inline-block;
    width: 130px;
    height: 1em;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--cream-100) 25%, var(--border) 50%, var(--cream-100) 75%);
    background-size: 200% 100%;
    animation: cal-shimmer 1.6s ease-in-out infinite;
    vertical-align: middle;
}

.cal-cell--overflow {
    color: var(--ink-300);
    opacity: 0.6;
    cursor: pointer;
}

.cal-cell--overflow:hover {
    color: var(--text-muted);
    opacity: 0.8;
    background: var(--cream-100);
}

.cal-cell--overflow-available {
    position: relative;
}

.cal-cell--overflow-available::after,
.cal-cell--overflow-available.cal-cell--overflow::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sage-300);
}

.cal-cell--past,
.cal-cell--unavailable {
    color: var(--ink-300);
}

.cal-cell--available {
    background: var(--cream-100);
    color: var(--text);
    font-weight: 400;
    cursor: pointer;
    position: relative;
}

.cal-cell--available::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sage-500);
}

.cal-cell--available:hover {
    background: var(--clay-50);
}

.cal-cell--selected {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 500;
}

.cal-cell--selected::after {
    background: rgba(255,255,255,0.6) !important;
}

.cal-legend {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cal-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cal-dot--available { background: var(--sage-500); }

/* ── Summary card (Right panel) ──────────────────── */
.summary-card {
    padding: 32px;
    background: var(--cream-100);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.summary-card h3 {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-row span {
    color: var(--text-muted);
}

.summary-row b {
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.005em;
    text-align: right;
}

.summary-row.is-pending b {
    color: var(--ink-300);
    font-weight: 400;
    font-style: italic;
}

/* ── Slots panel ───────────────────────────────────── */
.panel-back {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--dur-fast);
    font-family: var(--font-sans);
}

.panel-back:hover { color: var(--text); }

.panel-title {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.005em;
}

.slots-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.slots-loading,
.slots-empty {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 16px 0;
}

.slots-error {
    font-size: 0.82rem;
    color: var(--primary);
    margin-top: 12px;
}

.slot-btn {
    padding: 12px;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
    transition: all var(--dur-fast);
    background: var(--surface);
    font-variant-numeric: tabular-nums;
}

.slot-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.slot-btn--selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.slot-btn--selected:hover {
    color: #fff;
    opacity: 0.9;
}

@keyframes slot-enter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slot-btn--enter {
    animation: slot-enter 0.28s ease-out both;
}

/* ── Booking form ──────────────────────────────────── */
.selected-slot-summary {
    background: var(--cream-100);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 24px;
}

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

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

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
}

.form-group input {
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--cream-100);
    transition: border-color var(--dur-fast), background var(--dur-fast);
    outline: none;
}

.form-group input:focus {
    border-color: var(--sage-500);
    background: #fff;
}

.form-group input.is-invalid {
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--ink-300);
}

.form-error {
    font-size: 0.76rem;
    color: var(--primary);
    min-height: 16px;
    line-height: 1.3;
}

.form-error--general {
    text-align: center;
    margin-top: 4px;
}

.booking-submit {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Confirmation panel ────────────────────────────── */
.booking-panel--confirmation {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 280px;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sage-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.confirmation-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text);
    margin: 0;
    letter-spacing: var(--tracking-tight);
}

.confirmation-text {
    font-size: 0.95rem;
    color: var(--text-body);
    margin: 0;
}

.confirmation-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.6;
    margin: 0;
}

.book-another { margin-top: 8px; }

/* ── Trust section ──────────────────────────────────── */
.trust {
    padding: 64px 0;
    background: var(--cream-100);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.trust__item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--sage-50);
    color: var(--sage-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.trust__item-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust__item h3 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    margin-bottom: 10px;
}

.trust__item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}



