/* ── Balanced Bay Booking Widget ───────────────────────────────────── */

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

/* Steps */
.bb-step-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Timezone toggle */
.bb-timezone-toggle {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.bb-timezone-toggle select {
    margin-left: 0.5rem;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ── Calendar ───────────────────────────────────────────────────────── */
.bb-cal {
    border: 1px solid #e0d8cf;
    border-radius: 8px;
    overflow: hidden;
    max-width: 360px;
}

.bb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #5c3a1e;
    color: #fff;
}

.bb-cal-label {
    font-weight: 600;
    font-size: 1rem;
}

.bb-btn-icon {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
}
.bb-btn-icon:hover { opacity: 0.75; }

.bb-cal-grid {
    padding: 0.75rem;
    background: #fff;
}

.bb-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
}

.bb-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.bb-cal-day,
.bb-cal-empty {
    text-align: center;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}

.bb-cal-day:hover:not(.bb-cal-day--disabled) {
    background: #f0e8df;
}

.bb-cal-day--disabled {
    color: #ccc;
    cursor: default;
}

.bb-cal-day--selected {
    background: #5c3a1e !important;
    color: #fff;
    font-weight: 600;
}

/* ── Time Slots ─────────────────────────────────────────────────────── */
.bb-slots-wrap {
    margin-top: 1.5rem;
}

.bb-slots-wrap h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.bb-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bb-slot-btn {
    padding: 8px 16px;
    border: 2px solid #c9a87c;
    border-radius: 6px;
    background: #fff;
    color: #5c3a1e;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}

.bb-slot-btn:hover {
    background: #f7f0e8;
}

.bb-slot-btn--selected {
    background: #5c3a1e;
    color: #fff;
    border-color: #5c3a1e;
}

.bb-no-slots,
.bb-error {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

/* ── Selected Summary ───────────────────────────────────────────────── */
.bb-selected-summary {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f7f0e8;
    border-radius: 8px;
    border-left: 4px solid #c9a87c;
}

.bb-selected-summary p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.bb-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}
.bb-btn:hover { opacity: 0.88; }

.bb-btn-primary {
    background: #5c3a1e;
    color: #fff;
}

.bb-back-btn {
    background: none;
    border: none;
    color: #5c3a1e;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    text-decoration: underline;
}

/* ── Intake Form ────────────────────────────────────────────────────── */
.bb-intake-form-wrap {
    max-width: 680px;
}

.bb-intake-header {
    margin-bottom: 1.5rem;
}

.bb-intake-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.bb-form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ede8e1;
}

.bb-form-section:last-of-type {
    border-bottom: none;
}

.bb-field-group {
    margin-bottom: 1.1rem;
}

.bb-field-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
}

.bb-field-group input[type="text"],
.bb-field-group input[type="email"],
.bb-field-group input[type="tel"],
.bb-field-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0c8be;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.bb-field-group input:focus,
.bb-field-group textarea:focus {
    outline: none;
    border-color: #c9a87c;
    box-shadow: 0 0 0 3px rgba(201,168,124,0.15);
}

.bb-field-group textarea {
    resize: vertical;
}

.required {
    color: #c0392b;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.bb-checkbox-row,
.bb-radio-row {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.bb-checkbox-row label,
.bb-radio-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.bb-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
}

/* Agreement text */
.bb-agreement-text h3 {
    font-size: 0.95rem;
    margin: 1rem 0 0.3rem;
}

.bb-agreement-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Form actions */
.bb-form-actions {
    margin-top: 2rem;
}

.bb-form-message {
    margin-top: 1rem;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.bb-message-error {
    background: #fdf0f0;
    border: 1px solid #e8b4b4;
    color: #c0392b;
}

/* Admin card */
.bb-admin-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}
