/* ======================================================
   Biblioteca Booking – Frontend Styles
   ====================================================== */

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

/* Sala selector */
.bb-sala-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.bb-sala-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-size: 16px;
    font-weight: 600;
}

.bb-sala-card input[type="radio"] {
    accent-color: #1d4ed8;
    width: 18px;
    height: 18px;
}

.bb-sala-card:has(input:checked) {
    border-color: #1d4ed8;
    background: #eff6ff;
}

/* Fields */
.bb-field {
    margin-bottom: 16px;
}

.bb-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #374151;
}

.bb-field input[type="text"],
.bb-field input[type="email"],
.bb-field input[type="tel"],
.bb-field input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .15s;
}

.bb-field input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.15);
}

.bb-privacy {
    margin-top: 8px;
}
.bb-privacy label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}
.bb-privacy input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #1d4ed8;
}

/* Buttons */
.bb-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.bb-btn:hover { background: #1e40af; }
.bb-btn:disabled { background: #93c5fd; cursor: not-allowed; }

.bb-back {
    background: none;
    border: none;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 16px;
    text-decoration: underline;
}

/* Slot grid */
.bb-slot-group {
    margin-bottom: 20px;
}

.bb-slot-time {
    font-weight: 700;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.bb-slot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bb-slot-btn {
    padding: 10px 16px;
    border: 2px solid #1d4ed8;
    background: #fff;
    color: #1d4ed8;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.bb-slot-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.bb-slot-btn.bb-slot-full {
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: line-through;
}

.bb-no-slots {
    color: #6b7280;
    font-style: italic;
}

/* Summary */
.bb-summary {
    background: #f0f4ff;
    border-left: 4px solid #1d4ed8;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Messages */
.bb-msg {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 15px;
}

.bb-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.bb-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.bb-info {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #78350f;
}

/* Responsive */
@media (max-width: 480px) {
    .bb-sala-selector { flex-direction: column; }
    .bb-slot-btn { width: 100%; }
}
