/* Global Variables */
:root {
    --primary-color: #a56c4e;
    --primary-light: #d6b8a8;
    --text-color: #333;
    --bg-color: #f9efeb;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    /* Modern font */
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.booking-container {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
}

/* Steps Progress */
.steps-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.step-indicator.active {
    background: var(--primary-color);
    color: white;
}

.progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    z-index: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

select,
input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border 0.3s;
}

select:focus,
input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    /* Responsive columns */
    gap: 10px;
    margin-top: 20px;
}

.day-column {
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.day-header {
    background: #f4f4f4;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.slots-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-slot {
    background: #e8f0fe;
    color: #1967d2;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.time-slot:hover {
    background: #d2e3fc;
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #8e5b40;
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
}

/* Hidden Utilities */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .booking-container {
        padding: 20px;
        margin: 10px;
    }

    .calendar-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .day-column {
        min-width: 80%;
        /* Show one day at a time essentially on small screens */
        scroll-snap-align: center;
    }
}

/* Error Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay.hidden {
    display: none;
}