/* File: webroot/css/booking.css */

/*
 * ====================================================================
 *  BOOKING PAGE SPECIFIC STYLES - 2026 ARCHITECTURE
 * ====================================================================
 *  This stylesheet extends basic.css with layout and components
 *  unique to the booking form interface. It fully utilizes the
 *  design tokens defined in basic.css for a consistent theme.
 */

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 10); /* 40px */
    padding-bottom: calc(var(--spacing-unit) * 4); /* 16px */
    border-bottom: 1px solid var(--border);

    & h1 {
        font-size: clamp(1.5rem, 5vw, 2.25rem); /* Responsive font size */
        font-weight: 800;
        letter-spacing: -0.025em;
        color: var(--text-main);
    }

    & .lang-switcher a {
        font-weight: 600;
        margin-left: calc(var(--spacing-unit) * 4); /* 16px */
        padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3); /* 8px 12px */
        border-radius: calc(var(--border-radius) / 2); /* Half of main radius */
        transition: color 0.2s, background-color 0.2s;
        white-space: nowrap;

        &.active {
            color: var(--primary);
            background-color: color-mix(in srgb, var(--primary) 15%, transparent);
        }
    }
}

.booking-form {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 8); /* 32px */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    transition: background-color 0.2s, border-color 0.2s;
    
    & .step {
        margin-bottom: calc(var(--spacing-unit) * 8); /* 32px */
        
        &:last-of-type {
            margin-bottom: calc(var(--spacing-unit) * 10); /* 40px before button */
        }
        
        & h2 {
            font-size: 1.25rem; /* 20px */
            margin-bottom: calc(var(--spacing-unit) * 4); /* 16px */
            padding-bottom: calc(var(--spacing-unit) * 2); /* 8px */
            border-bottom: 1px solid var(--border);
            color: var(--text-main);
        }
    }
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: calc(var(--spacing-unit) * 3); /* 12px */

    & .slot-btn {
        background-color: var(--bg-color);
        border: 2px solid var(--border);
        color: var(--text-muted);
        padding: calc(var(--spacing-unit) * 3); /* 12px */
        border-radius: calc(var(--border-radius) / 1.5); /* Slightly smaller radius */
        cursor: pointer;
        font-weight: 600;
        text-align: center;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

        &:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
        }

        &.selected {
            background-color: var(--primary);
            color: var(--primary-text);
            border-color: var(--primary);
            transform: scale(1.05);
            box-shadow: 0 4px 15px -3px var(--focus-ring);
        }
    }

    & .empty-msg {
        grid-column: 1 / -1; /* Span full width */
        padding: calc(var(--spacing-unit) * 4) 0;
        color: var(--text-muted);
        font-style: italic;
        text-align: center;
    }
}