/* ── AstroForge Booking — Public Widget Styles ────────────────────── */

.afbk-widget {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}

/* Progress */
.afbk-progress {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.afbk-step {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    transition: all .2s;
}
.afbk-step:last-child { border-right: none; }

.afbk-step span {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
}

.afbk-step--active {
    background: #6366f1;
    color: #fff;
}
.afbk-step--active span { background: rgba(255,255,255,.3); color: #fff; }

.afbk-step--completed { background: #f0fdf4; color: #166534; }
.afbk-step--completed span { background: #bbf7d0; color: #166534; }

/* Panels */
.afbk-panel { padding: 4px 0 20px; }
.afbk-panel--hidden { display: none; }
.afbk-panel h3 { margin: 0 0 16px; font-size: 18px; color: #1e293b; }

/* Service grid */
.afbk-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.afbk-service-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: box-shadow .15s, transform .1s;
    background: #fff;
}
.afbk-service-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.afbk-service-card h4 { margin: 0 0 8px; font-size: 15px; color: #1e293b; }

.afbk-service-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
}

.afbk-deposit-badge {
    background: #fef9c3;
    color: #854d0e;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.afbk-service-desc { font-size: 12px; color: #64748b; margin: 8px 0 0; }

/* Staff grid */
.afbk-staff-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.afbk-staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    min-width: 110px;
    transition: box-shadow .15s;
    background: #fff;
}
.afbk-staff-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }

.afbk-staff-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.afbk-staff-card span { font-size: 13px; font-weight: 500; color: #1e293b; text-align: center; }

/* Date row */
.afbk-date-row { margin-bottom: 16px; }
.afbk-date-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #374151; }
.afbk-date-row input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    min-width: 180px;
}

/* Slot grid */
.afbk-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.afbk-slot-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
    transition: all .15s;
}
.afbk-slot-btn:hover { border-color: #6366f1; color: #6366f1; }
.afbk-slot-btn--selected { background: #6366f1; border-color: #6366f1; color: #fff; }

.afbk-no-slots { color: #64748b; font-style: italic; }

/* Details form */
.afbk-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}
.afbk-summary-row { margin-bottom: 4px; }

.afbk-field { margin-bottom: 16px; }
.afbk-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.afbk-field input,
.afbk-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    color: #1e293b;
    transition: border-color .15s;
}
.afbk-field input:focus,
.afbk-field textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }

/* Buttons */
.afbk-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s;
}
.afbk-btn--primary { background: #6366f1; color: #fff; }
.afbk-btn--primary:hover { background: #4f46e5; }
.afbk-btn--primary:disabled { opacity: .6; cursor: default; }

.afbk-btn--secondary { background: #f1f5f9; color: #374151; border: 1px solid #d1d5db; }
.afbk-btn--secondary:hover { background: #e2e8f0; }

.afbk-btn--back {
    background: none;
    color: #6366f1;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
}
.afbk-btn--back:hover { text-decoration: underline; }

.afbk-nav { margin-top: 8px; }

/* Messages */
.afbk-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 14px;
    font-size: 14px;
}
.afbk-message--error   { background: #fee2e2; color: #991b1b; }
.afbk-message--success { background: #dcfce7; color: #166534; }

/* Waitlist */
.afbk-waitlist-prompt {
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}
.afbk-waitlist-prompt p { margin: 0 0 12px; color: #78350f; font-size: 14px; }

/* Loader */
.afbk-loader { color: #94a3b8; font-style: italic; padding: 12px 0; }
.afbk-error  { color: #dc2626; font-size: 14px; }

/* Responsive */
@media (max-width: 480px) {
    .afbk-service-grid { grid-template-columns: 1fr; }
    .afbk-step { font-size: 11px; padding: 10px 4px; }
    .afbk-step span { display: none; }
}
