/* CSS Variables for Reusability */
:root {
    --primary-color: #063E6C;
    --secondary-color: #eae9e9;
    --font-color: #333;
    --disabled-color: #ccc;
    --font-family: Arial, sans-serif;
    --border-radius: 12px;
    --transition-duration: 0.3s;
    --box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    --padding-base: 2rem;
    --max-width: 1280px;
}

* {
    font-family: Geomanist-Regular;
    -webkit-tap-highlight-color: transparent;


}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    /*margin: 0;*/
    font-family: var(--font-family);
}

/* Date Picker Card */
.date-picker-card {
    background-color: #ffffff;
    border-radius: 25px;
    box-shadow: var(--box-shadow);
    padding: var(--padding-base);
    max-width: var(--max-width);
    width: 90%;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    min-height: 200px;
}

/* Week Days Styling */
.week-days {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.pageButton {
    background-color: #15436C;
    height: 50px;
    width: 50px;
    border: none;
    margin: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    transition: background-color var(--transition-duration) ease, transform 0.2s ease;
}

.pageButton:hover:not(.disabled) {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.02);
}

.pageButton.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #cccccc;
}

.day {
    text-align: center;
    margin: 0.5rem;
    flex: 1;
}

.day-name {
    font-weight: 600;
    color: var(--font-color);
    font-size: 1rem;
}

.day-date {
    margin-top: 0.5rem;
    /*color that shows there's still date available*/
    background-color: #063E6C;
    color: white;
    /*background-color: var(--secondary-color);*/
    border-radius: var(--border-radius);
    padding: 0.625rem;
    font-size: 1rem;
    text-align: center;
    transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease, transform 0.2s ease;
    cursor: pointer;
}

.disabled > .day-date{
!important;
    background-color: var(--secondary-color);
    color: unset;
}

.disabled{
    cursor: not-allowed;
}


.day-date:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.01);
}

/* Selected Date */
.selectedDate {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    padding: 0.9375rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

/* Time Slots */
#timeSlots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

#timeSlots div {
    /*background-color: var(--secondary-color);*/
    background-color: #de6e4b;
    color: #FFFFFF;
    padding: 0.625rem;
    margin: 0.5rem;
    border-radius: var(--border-radius);
    /*box-shadow: var(--box-shadow);*/
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    flex: 1 1 100px;
    max-width: 120px;
    text-align: center;
    transition: background-color var(--transition-duration) ease, transform 0.2s ease;
}

#timeSlots div:hover {
    background-color: #e09f3e;
    color: #ffffff;
    transform: scale(1.02);
}

/* Spinner Overlay */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 25px;
}

/* Spinner itself */
.spinner {
    border: 8px solid #042d4e;
    border-top: 8px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: -25%;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;

}

.spinner-text{
    text-align: center;
    top: 65%;
    right: 0;
    bottom: 0;
    left: 0;
    position: relative;
    margin: auto;
    font-size: 25px;
    color: #012240;
    /*z-index: 1000;*/

}

/* Phone Number Card */
.phoneNumberCard {
    text-align: center;
    margin-top: 2rem;
}

.phoneNumberCard p {
    font-size: 1rem;
}

.phoneNumberCard a {
    color: var(--primary-color);
    text-decoration: none;

}

.day.selected .day-date {
    background-color: #063E6C;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0px 5px 15px rgb(6, 62, 108, 0.5); /* Slight shadow to lift the selected day */
    transform: scale(1.1); /* Slightly larger when selected */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for selection */
}

/* Optional animation to make the selection more engaging */
.day.selected .day-date::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 15px;
    background-color: rgba(0, 113, 227, 0.1);
    z-index: -1;
    transition: background-color 0.3s ease;
}

.disabled {
    color: #ccc;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Optional hover effect for disabled days */
.disabled .day-date:hover {
    background-color: #f7f7f7;
    color: #ccc;
    transform: scale(1);
    z-index: -1;
}

/* Responsive Media Queries */

/* Tablet View */
@media (max-width: 768px) {
    .date-picker-card {
        padding: 1rem;
        width: 95vw;
    }

    .week-days {
        /*transform: scale(0.9);*/
    }

    .day-name,
    .day-date,
    .pageButton {
        font-size: 0.875rem;
    }

    .pageButton {
        border-radius: 50px; /* Circular buttons */
    }

    .selectedDate {
        font-size: 1.125rem;
        padding: 0.625rem;
    }

    #timeSlots div {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
}

/* Mobile View Adjustments */
/* Mobile View Adjustments */
/* Mobile View Adjustments */
@media (max-width: 600px) {
    .week-days {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding-top: 3.5rem; /* Adds space for the buttons above */
    }

    /* Left and right buttons take up half the width */
    .pageButton {
        position: absolute;
        top: 0;
        height: 40px;
        width: calc(50% - 15px); /* 50% width with a small gap */
        border-radius: 20px;
        background-color: #15436C;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-weight: bold;
        font-size: 1.5rem;
        transition: background-color var(--transition-duration) ease;
        /*margin-bottom: 200px;*/
    }

    /* Align left and right buttons */
    .pageButton:first-of-type {
        left: 0;
    }

    .pageButton:last-of-type {
        right: 0;
    }

    /* Remove hover scaling */
    .pageButton:hover:not(.disabled) {
        background-color: var(--primary-color);
        color: #ffffff;
    }

    /* Keep weekday layout in a row */
    .day {
        flex: 1;
        text-align: center;
        margin: 0.5rem;
    }
}