/* Cannes Room Booking — frontend styles */

.crb-booking-form {
    display: grid;
    gap: 1rem;
    max-width: 640px;
    font-family: inherit;
}

.crb-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.crb-form-row--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.crb-booking-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.crb-booking-form input,
.crb-booking-form select,
.crb-booking-form textarea {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #c5cbd4;
    border-radius: 4px;
    font: inherit;
}

.crb-submit {
    background: #1f3a5f;
    color: #fff;
    border: 0;
    padding: 0.6rem 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    justify-self: start;
}

.crb-submit:hover { background: #16283f; }
.crb-submit[disabled] { opacity: 0.6; cursor: wait; }

.crb-message {
    margin-top: 0.5rem;
    min-height: 1.4em;
    font-size: 0.95rem;
}
.crb-message.crb-is-error   { color: #b1321d; }
.crb-message.crb-is-success { color: #1a6b2f; }

/* Schedule grid */

.crb-schedule-heading {
    margin: 1.25rem 0 0.4rem;
}

.crb-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.crb-schedule-table th,
.crb-schedule-table td {
    border: 1px solid #d6dae0;
    padding: 0.3rem 0.45rem;
    text-align: center;
    vertical-align: middle;
}

.crb-schedule-table thead th {
    background: #1f3a5f;
    color: #fff;
    font-weight: 600;
}

.crb-schedule-table tbody th {
    background: #f7f8fa;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.crb-cell--free   { background: #fafbfc; color: #9aa0a6; }
.crb-cell--booked { background: #d6e4f0; color: #0b1b2d; font-weight: 500; }

/* Availability widget */

.crb-widget-list { list-style: none; margin: 0; padding: 0; }
.crb-widget-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #eef0f3;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.crb-widget-list li:last-child { border-bottom: 0; }
.crb-widget-room { font-weight: 600; }
.crb-widget-slot { color: #3d4a5a; font-variant-numeric: tabular-nums; }
.crb-widget-none { color: #9aa0a6; font-style: italic; }
