/* Specific styles for the booking system */

/* Inherit some base styles from main css via link, but override here */

body {
    background-color: var(--bg-color);
    /* Use main var */
}

/* Adjust for fixed navbar */
.booking-container {
    padding-top: 120px;
    /* Clear navbar */
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.booking-card {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin: 20px;
}

.booking-header {
    text-align: center;
    margin-bottom: 32px;
}

.booking-header h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.booking-header p {
    color: var(--text-muted);
}

/* Calendar */
.calendar-wrapper {
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-btn:hover {
    background-color: var(--bg-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day-header {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-bottom: 8px;
}

.calendar-day {
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.calendar-day:hover:not(.disabled) {
    background-color: var(--bg-color);
}

.calendar-day.active {
    background-color: var(--accent-color);
    /* Updated to Gold/Black theme */
    color: var(--white);
}

.calendar-day.disabled {
    color: #D1D5DB;
    cursor: not-allowed;
}

.calendar-day.today {
    font-weight: 700;
    color: var(--accent-color);
    border: 1px solid var(--accent-light);
}

/* Time Slots */
.time-slots {
    margin-bottom: 32px;
    animation: fadeIn 0.3s ease;
}

.time-slots h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: var(--text-main);
}

.time-slot.selected {
    background-color: var(--text-main);
    color: var(--white);
    border-color: var(--text-main);
}

/* Form */
.booking-form {
    animation: fadeIn 0.3s ease;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.booking-form h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.selected-info {
    background-color: var(--accent-light);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-main);
    margin-top: 4px;
}

.hidden {
    display: none;
}

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

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

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.success-message h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 20px 0 10px;
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    justify-content: center;
}

/* Checkmark Animation */
.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--white);
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px var(--accent-color);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px var(--accent-color);
    }
}


/* MOBILE RESPONSIVENESS */
@media (max-width: 600px) {
    .booking-container {
        padding-top: 100px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .booking-card {
        padding: 24px 20px;
        /* Reduced padding */
        margin: 0;
    }

    .booking-header h2 {
        font-size: 1.5rem;
    }

    /* Calendar Mobile Optimization */
    .calendar-grid {
        gap: 4px;
        /* Tighter gap */
    }

    .calendar-day {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .calendar-wrapper {
        padding: 12px;
    }

    /* Time Slots Mobile */
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Force 3 columns */
    }

    .time-slot {
        font-size: 0.85rem;
        padding: 8px;
    }

    /* Form Mobile */
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
}