/* Wrapper and form pacing */
.bencode-booking-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 1.5rem;
}

.bbc-success-banner {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.bbc-calendar {
    background: #fff;
    border-radius: 20px;
    padding: 1.3rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

.bbc-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.85rem;
}

.bbc-nav {
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    background: #fff;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bbc-nav:hover {
    border-color: #6a1b9a;
    transform: translateY(-1px);
}

.bbc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.04em;
}

.bbc-step {
    opacity: 0;
    transform: translateY(18px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.45s ease;
}

.bbc-step.is-active {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
    pointer-events: auto;
}

.bbc-step-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid #fecaca;
}

.bbc-step-error.is-visible {
    opacity: 1;
}

.bbc-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.75rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bbc-day--empty {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.bbc-days-grid.is-sliding {
    opacity: 0;
    transform: translateX(8px);
}

.bbc-day {
    width: 100%;
    padding: 0.65rem 0;
    border: 1px solid #d4d4d8;
    background: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bbc-day:hover:not(.bbc-day--disabled) {
    border-color: #6a1b9a;
}

.bbc-day--disabled {
    background: #f4f4f5;
    color: #a1a1aa;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.bbc-day--selected {
    background: #5b21b6;
    color: #fff;
    border-color: #5b21b6;
}

.bbc-day--today {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.bbc-timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.bbc-timeslot-btn {
    border-radius: 999px;
    padding: 0.65rem 1rem;
    border: 1px solid #d4d4d8;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.bbc-timeslot-btn:hover {
    border-color: #6a1b9a;
    transform: translateY(-1px);
}

.bbc-timeslot-btn--selected {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.3);
}

.bbc-timeslots-placeholder,
.bbc-timeslots-loading,
.bbc-timeslots-error,
.bbc-timeslots-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.bbc-waitlist {
    margin-top: 1.3rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    background: #f8fafc;
    display: none;
}

.bbc-waitlist.is-active {
    display: block;
}

.bbc-waitlist-message {
    margin: 0 0 0.9rem;
    font-weight: 600;
    color: #1d1c1d;
    line-height: 1.4;
}

.bbc-waitlist-button {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bbc-waitlist-button:hover {
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

.bbc-waitlist-form {
    display: grid;
    gap: 0.8rem;
}

.bbc-waitlist-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827;
}

.bbc-waitlist-description {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
}

.bbc-waitlist-field {
    display: grid;
    gap: 0.35rem;
}

.bbc-waitlist-field label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4b5563;
}

.bbc-waitlist-field input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
}

.bbc-waitlist-status {
    margin: 0;
    font-size: 0.88rem;
    display: none;
}

.bbc-waitlist-status.is-error {
    color: #b91c1c;
}

.bbc-waitlist-status.is-success {
    color: #047857;
}

.bbc-waitlist-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.bbc-waitlist-submit {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    background: #111827;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.bbc-waitlist-cancel {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    background: #fff;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
}

.bbc-timeslots-loading {
    font-style: italic;
}

.bbc-timeslots-error {
    color: #b91c1c;
}

.bbc-timeslots-note {
    color: #4b5563;
}

.bbc-timeslot-helper {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.bbc-timezone-info {
    margin-top: 1rem;
    background: #f8fafc;
    border: 1px dashed #dbeafe;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.bbc-timezone-info-text {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
}

.bbc-timezone-toggle {
    border: none;
    background: #111827;
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}


.bbc-sidebar-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1.1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.bbc-field-row {
    margin-bottom: 0.9rem;
}

.bbc-field-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: #374151;
}

.bbc-field-row input,
.bbc-field-row select,
.bbc-field-row textarea {
    width: 100%;
    border: 1px solid #d4d4d8;
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
}

.bbc-step-actions {
    margin-top: 1.2rem;
}

.bbc-submit-note {
    margin-top: 1rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.bbc-next-btn,
.bbc-back-btn,
.bbc-submit-btn {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    background: #6a1b9a;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-right: 0.5rem;
}

.bbc-back-btn {
    background: #4b5563;
}

.bbc-next-btn:hover,
.bbc-back-btn:hover,
.bbc-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.25);
}

.bbc-next-btn:focus,
.bbc-back-btn:focus,
.bbc-submit-btn:focus {
    outline: 2px solid #c084fc;
    outline-offset: 3px;
}

.bbc-submit-btn--loading {
    opacity: 0.8;
    cursor: wait;
}

@media (max-width: 680px) {
    .bbc-step {
        padding: 0;
    }

    .bbc-timeslots-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
}
