/* Explain: Styles for the booking calendar and coverage request form. */
/* Booking page: availability calendar + coverage request form */
.booking-calendar {
    width: 100%;
}

.booking-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.booking-cal-month {
    flex: 1;
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
}

.booking-cal-nav {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, opacity 200ms ease;
}

.booking-cal-nav:hover:not(:disabled),
.booking-cal-nav:focus-visible:not(:disabled) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    outline: none;
}

.booking-cal-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.booking-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}

.booking-cal-weekdays span {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.booking-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
}

.booking-cal-blank {
    display: block;
}

.booking-cal-day {
    display: inline-flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.booking-cal-day:hover:not(:disabled),
.booking-cal-day:focus-visible:not(:disabled) {
    border-color: var(--primary-color);
    background: var(--surface-raised);
    transform: translateY(-2px);
    outline: none;
}

.booking-cal-day.is-selected {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: #0F172A;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.35);
}

.booking-cal-day.is-booked {
    border-color: transparent;
    background: repeating-linear-gradient(45deg, rgba(244, 63, 94, 0.16), rgba(244, 63, 94, 0.16) 5px, transparent 5px, transparent 10px);
    color: var(--text-muted);
    text-decoration: line-through;
    cursor: not-allowed;
}

.booking-cal-day.is-past {
    border-color: transparent;
    background: transparent;
    color: rgba(166, 178, 198, 0.35);
    cursor: not-allowed;
}

.booking-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.booking-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.booking-legend-dot {
    display: inline-block;
    height: 0.85rem;
    width: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
}

.booking-legend-dot.is-open {
    background: var(--surface-color);
}

.booking-legend-dot.is-booked {
    border-color: transparent;
    background: repeating-linear-gradient(45deg, rgba(244, 63, 94, 0.45), rgba(244, 63, 94, 0.45) 3px, transparent 3px, transparent 6px);
}

.booking-legend-dot.is-selected {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

.booking-cal-status {
    min-height: 1.1rem;
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Booking form fields */
.booking-field,
.booking-field-area {
    display: block;
    width: 100%;
    height: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0 1.25rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 200ms ease;
}

.booking-field-area {
    height: auto;
    min-height: 8.5rem;
    border-radius: 1.5rem;
    padding: 0.9rem 1.25rem;
    line-height: 1.7;
    resize: vertical;
}

.booking-field::placeholder,
.booking-field-area::placeholder {
    color: var(--text-muted);
}

.booking-field:focus,
.booking-field-area:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Coverage package choice */
.booking-package {
    position: relative;
    display: block;
    cursor: pointer;
}

.booking-package input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.booking-package-inner {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border: 2px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--surface-raised);
    padding: 1rem 1.15rem;
    transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.booking-package:hover .booking-package-inner {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.booking-package input:checked + .booking-package-inner {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.3);
}

.booking-package input:focus-visible + .booking-package-inner {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.booking-package-top {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.booking-package-name {
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.booking-package-level {
    color: var(--primary-color);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.booking-package-price {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 639px) {
    .booking-cal-day {
        border-radius: 0.6rem;
        font-size: 0.82rem;
    }
}