/* SBC Booking Widget */
.sbc-widget {
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

/* ── Steps ─────────────────────────────────────────────────────────── */
.sbc-steps {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 36px; gap: 0;
}
.sbc-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    opacity: .35; transition: opacity .25s;
}
.sbc-step.sbc-step-active { opacity: 1; }
.sbc-step.sbc-step-done { opacity: .7; }
.sbc-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid #333; color: #666; display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 700;
    background: #111; transition: all .25s;
}
.sbc-step.sbc-step-active .sbc-step-num { border-color: #e31e24; color: #fff; background: #e31e24; }
.sbc-step.sbc-step-done .sbc-step-num { border-color: #4caf50; color: #4caf50; background: #0a2a0a; }
.sbc-step-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #aaa; }
.sbc-step.sbc-step-active .sbc-step-label { color: #e31e24; }
.sbc-step.sbc-step-done .sbc-step-label { color: #aaa; }
.sbc-step-line { flex: 1; height: 1px; background: #222; max-width: 60px; }

/* ── Sections ───────────────────────────────────────────────────────── */
.sbc-widget-section { animation: sbcFadeIn .2s ease; }
.sbc-hidden { display: none !important; }
@keyframes sbcFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Step title ─────────────────────────────────────────────────────── */
.sbc-step-title {
    font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 6px;
}
.sbc-step-subtitle { color: #bbb; font-size: 13px; margin: 0 0 20px; }

/* ── Service grid ───────────────────────────────────────────────────── */
.sbc-service-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px; margin-top: 16px;
}
.sbc-service-card {
    background: #111; border: 1px solid #222; padding: 20px 16px;
    cursor: pointer; transition: all .15s; text-align: center;
}
.sbc-service-card:hover { border-color: #444; background: #161616; }
.sbc-service-card.sbc-selected { border-color: #e31e24; background: #1a0808; }
.sbc-service-icon { font-size: 28px; margin-bottom: 10px; }
.sbc-service-name { font-size: 13px; color: #e0e0e0; font-weight: 600; line-height: 1.3; }
.sbc-service-duration { font-size: 11px; color: #555; margin-top: 4px; }
.sbc-no-services { grid-column: 1/-1; color: #666; font-size: 13px; padding: 20px; text-align: center; }

/* ── Login prompt ───────────────────────────────────────────────────── */
.sbc-login-prompt { text-align: center; padding: 60px 20px; }
.sbc-login-icon { font-size: 40px; margin-bottom: 16px; }
.sbc-login-prompt h3 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.sbc-login-prompt p { color: #666; font-size: 14px; margin: 0 0 24px; }

/* ── Mini calendar ──────────────────────────────────────────────────── */
.sbc-calendar-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.sbc-cal-nav {
    background: none; border: 1px solid #222; color: #aaa;
    width: 32px; height: 32px; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.sbc-cal-nav:hover { border-color: #555; color: #fff; }
.sbc-cal-month { font-size: 15px; font-weight: 700; color: #fff; }

.sbc-mini-calendar { width: 100%; }
.sbc-mini-calendar table { width: 100%; border-collapse: collapse; }
.sbc-mini-calendar th {
    padding: 8px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: #bbb; text-align: center; font-weight: 700;
}
.sbc-mini-calendar td { padding: 4px; text-align: center; }
.sbc-cal-day {
    width: 40px; height: 40px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 13px; cursor: pointer;
    border: 1px solid transparent; transition: all .12s; color: #666;
    margin: 0 auto;
}
.sbc-cal-day.available { color: #e0e0e0; border-color: #222; cursor: pointer; }
.sbc-cal-day.available:hover { border-color: #e31e24; color: #fff; }
.sbc-cal-day.selected { background: #e31e24; color: #fff; border-color: #e31e24; }
.sbc-cal-day.today { border-color: #ff9800; color: #ff9800; }
.sbc-cal-day.past, .sbc-cal-day.unavailable { opacity: .2; cursor: not-allowed; pointer-events: none; }
.sbc-cal-loading { text-align: center; color: #555; padding: 20px; font-size: 13px; }

/* ── Time slots ─────────────────────────────────────────────────────── */
.sbc-slots-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px; margin: 16px 0;
}
.sbc-slot {
    padding: 12px 8px; border: 1px solid #222; background: #111;
    text-align: center; font-size: 13px; color: #e0e0e0; cursor: pointer;
    transition: all .12s;
}
.sbc-slot:hover { border-color: #e31e24; color: #fff; }
.sbc-slot.selected { background: #e31e24; border-color: #e31e24; color: #fff; }
.sbc-no-slots { grid-column: 1/-1; color: #aaa; font-size: 13px; text-align: center; padding: 20px; }

/* ── Confirm ─────────────────────────────────────────────────────────── */
.sbc-confirm-summary {
    background: #111; border: 1px solid #1e1e1e; margin: 16px 0;
}
.sbc-confirm-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #1a1a1a; font-size: 13px;
}
.sbc-confirm-row:last-child { border-bottom: none; }
.sbc-confirm-row span { color: #aaa; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.sbc-confirm-row strong { color: #fff; }
.sbc-confirm-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.sbc-widget-textarea {
    width: 100%; background: #0a0a0a; border: 1px solid #222; color: #e0e0e0;
    padding: 10px 12px; font-size: 13px; font-family: inherit;
    resize: vertical; outline: none; box-sizing: border-box; min-height: 80px;
}
.sbc-widget-textarea:focus { border-color: #e31e24; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.sbc-widget-btn {
    display: inline-block; background: #e31e24; color: #fff;
    padding: 12px 24px; font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    border: none; text-decoration: none; transition: background .15s; font-family: inherit;
}
.sbc-widget-btn:hover { background: #c0151b; }
.sbc-widget-btn:disabled { opacity: .5; cursor: not-allowed; }
.sbc-back-btn {
    background: none; border: none; color: #aaa; font-size: 13px;
    cursor: pointer; padding: 8px 0; font-family: inherit; transition: color .15s;
}
.sbc-back-btn:hover { color: #fff; }

/* ── Success ─────────────────────────────────────────────────────────── */
.sbc-success-icon { font-size: 48px; margin-bottom: 16px; }
.sbc-success-title { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.sbc-success-note { color: #bbb; font-size: 13px; margin: 16px 0 24px; }

/* ── Loading ─────────────────────────────────────────────────────────── */
.sbc-loading-overlay {
    position: absolute; inset: 0; background: rgba(10,10,10,.8);
    display: flex; align-items: center; justify-content: center; z-index: 10;
}
.sbc-spinner {
    width: 32px; height: 32px;
    border: 2px solid #333; border-top-color: #e31e24;
    border-radius: 50%; animation: sbcSpin .7s linear infinite;
}
@keyframes sbcSpin { to { transform: rotate(360deg); } }
.sbc-loading-text { color: #666; font-size: 13px; }

/* ── Upcoming bookings ───────────────────────────────────────────────── */
.sbc-upcoming-title {
    font-size: 16px; font-weight: 700; color: #fff;
    margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #1e1e1e;
}
.sbc-booking-item {
    background: #111; border: 1px solid #1e1e1e;
    padding: 16px; margin-bottom: 8px;
    display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
}
.sbc-booking-date { min-width: 100px; }
.sbc-booking-date .day { font-size: 13px; font-weight: 700; color: #fff; }
.sbc-booking-date .time { font-size: 12px; color: #aaa; }
.sbc-booking-info { flex: 1; }
.sbc-booking-service { font-size: 14px; color: #e0e0e0; font-weight: 600; margin-bottom: 4px; }
.sbc-booking-status { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 2px 8px; border: 1px solid; }
.sbc-status-confirmed { color: #4caf50; border-color: #4caf50; background: #0a2a0a; }
.sbc-status-pending   { color: #ff9800; border-color: #ff9800; background: #2a1800; }
.sbc-status-cancelled { color: #555; border-color: #333; background: #111; }
.sbc-booking-actions { display: flex; gap: 8px; align-items: center; }
.sbc-btn-cancel, .sbc-btn-change {
    font-size: 11px; padding: 5px 12px; cursor: pointer; font-family: inherit;
    background: none; border: 1px solid #333; color: #666; letter-spacing: 1px;
    text-transform: uppercase; transition: all .15s;
}
.sbc-btn-cancel:hover { border-color: #e31e24; color: #e31e24; }
.sbc-btn-change:hover { border-color: #4caf50; color: #4caf50; }
.sbc-no-bookings { color: #aaa; font-size: 13px; padding: 20px 0; }

/* ── Notification toast ──────────────────────────────────────────────── */
.sbc-notification {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: #1a1a1a; border: 1px solid #333; color: #fff;
    padding: 14px 20px; font-size: 13px; min-width: 260px;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    animation: sbcSlideIn .3s ease; display: flex; align-items: center; gap: 12px;
}
.sbc-notification.sbc-notif-success { border-left: 3px solid #4caf50; }
.sbc-notification.sbc-notif-error   { border-left: 3px solid #e31e24; }
.sbc-notification.sbc-notif-warning { border-left: 3px solid #ff9800; }
.sbc-notif-icon { font-size: 18px; flex-shrink: 0; }
.sbc-notif-msg  { flex: 1; line-height: 1.4; }
.sbc-notif-close { background: none; border: none; color: #666; cursor: pointer; font-size: 16px; padding: 0; line-height: 1; }
.sbc-notif-close:hover { color: #fff; }
@keyframes sbcSlideIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Pending status ──────────────────────────────────────────────────── */
.sbc-status-pending { color: #ff9800; border-color: #ff9800; background: #2a1800; }

/* ── Cancellation fee warning ───────────────────────────────────────── */
.sbc-cancel-fee-warning {
    background: #2a1400; border: 1px solid #ff9800; color: #ff9800;
    padding: 10px 14px; font-size: 12px; margin-top: 8px; line-height: 1.4;
}

@media (max-width: 480px) {
    .sbc-service-grid { grid-template-columns: 1fr 1fr; }
    .sbc-steps { gap: 0; }
    .sbc-step-line { max-width: 30px; }
    .sbc-step-label { display: none; }
    .sbc-notification { bottom: 16px; right: 16px; left: 16px; min-width: unset; }
}
