/* Reset default styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and HTML */
body, html {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    /* background: linear-gradient(to bottom, #f0f0f0, #ffffff); */ /* Replaced with solid light grey */
    background-color: #F8F9FA; /* Light grey background */
    min-height: 100vh;
    background-attachment: fixed;
    color: #333333; /* Default text color */
}

/* Wrapper */
.wrapper {
    position: relative;
}

/* Header */
header {
    background: #ffffff; /* White background */
    border-bottom: 3px solid #1d428a; /* Blue border */
    color: #333333; /* Dark grey text color */
    padding: 30px 20px;
    text-align: center; /* Center content */
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Center content horizontally */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}


/* Header logo */
.header-logo {
    max-width: 400px; /* Increased logo size */
    width: auto;      /* Ensure the image scales within its container */
    height: auto;
    z-index: 20;
    margin: 0 auto; /* Center the logo */
}


/* Contact Info */
.contact-info {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;    /* Grey text color */
    text-align: right;
    font-size: 0.95rem;
    z-index: 100;
}

.contact-info p {
    margin: 0;
    line-height: 1.5;
    color: #666666;
}

.contact-info i {
    color: #1d428a; /* Blue icons */
}

/* Content */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #F8F9FA; /* Ensure content background matches body */
}

/* Main content wrapper */
.main-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1300px;
    width: 100%;
    margin: 20px auto 200px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Calendar Wrapper */
.calendar-wrapper,
.time-slots,
.booking-container {
    width: 32%;
    min-width: 300px;
    height: 450px;
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #4b4c4d56;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centered-heading {
    margin-top: 10px; 
}

/* Centered Heading Styles */
.calendar-wrapper > h5.centered-heading,
.time-slots > h5.centered-heading,
.booking-container > h5.centered-heading {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    width: 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    /* color: #333; */ /* Inherit from body */
}

/* Calendar Container */
.calendar-container {
    width: 100%;
    height: 100%;
    padding: 10px; /* Adjust padding as needed */
    box-sizing: border-box;
}

/* Datepicker Styles */
.air-datepicker {
    width: 100%;
    height: 100%;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent;
}

.air-datepicker-nav {
    margin-bottom: 10px;
}

.air-datepicker-cell {
    font-size: 16px;
    padding: 10px;
}

.air-datepicker-cell.-weekend- {
    color: #e74c3c;
}

.air-datepicker-cell.-selected- {
    background-color: #1d428a !important; /* Use primary color for selection */
    color: white !important;
}

.air-datepicker-cell.-current- {
    border: 2px solid #1d428a; /* Use primary color for current day border */
}

.air-datepicker-cell.-current-.-selected- {
    background-color: #1d428a !important; /* Use primary color for selected current day */
    color: white !important;
}

.air-datepicker-nav--title {
    font-size: 22px;
}

/* Time Slots */
.time-slots {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-slots .time-slots-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    overflow-y: auto;
    width: 100%;
}

.time-slot {
    /* background: #000000; */ /* Replaced with new button style */
    background-color: #1d428a; /* Default primary background */
    color: #FFFFFF; /* White text */
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
}

.time-slot:hover {
    /* background: linear-gradient(to bottom, #d6a04a, #c68d32); */ /* Replaced with darker primary */
    background-color: #153661; /* Darker primary for hover */
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Adjusted shadow */
}

.time-slot.selected {
    /* background: linear-gradient(to bottom, #c68d32, hsl(37, 63%, 56%)); */ /* Replaced with active primary */
    background-color: #5cb8b2; /* Teal color for better visibility */
    color: white;
    border: 2px solid #1d428a; /* Add border for additional visibility */
    box-shadow: 0 0 0 3px rgba(92, 184, 178, 0.3); /* Add outer glow effect */
}

/* .time-slot.booked {
    background-color: #e0e0e0;
    color: #a0a0a0;
} */

.time-slot.booked {
    background-color: #e0e0e0 !important;
    color: #a0a0a0 !important;
    cursor: not-allowed;
    position: relative;
    font-size: 12px;
    padding: 10px 20px;
    /* Inherit padding and other styles from .time-slot */
}
.time-slot.placeholder {
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    margin: 5px;
    cursor: not-allowed;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Booking Container */
.booking-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.booking-summary {
    /* background: #000000; */ /* Replaced with primary color */
    background-color: #1d428a; /* Primary color background */
    color: #ffffff;
    padding: 60px;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(11, 11, 11, 0.533);
    text-align: left;
    width: 320px;
    height: 200px;
    margin-bottom: 50px;
    margin-top: 30px;
}

.booking-selected-date,
.booking-selected-time {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Next Step */
.next-step {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Buttons */
.btn-custom-gold { /* Renaming conceptually to btn-primary-style */
    /* background: linear-gradient(90deg, #ffcc33, #ffb600); */ /* Gold gradient */
    background-color: #1d428a !important; /* Ensure default primary background */
    color: #FFFFFF !important; /* White text */
    font-family: 'Helvetica', Arial, sans-serif; /* Use clean, modern font */
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    margin-top: 17px;
    margin-right: 10px;
    font-size: 15px !important;
    border-radius: 10px !important;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.btn-custom-gold:hover {
    /* background: linear-gradient(to bottom, #d6a04a, #c68d32); */
    background-color: #153661; /* Darker primary for hover */
    transform: translateY(-2px);
}

.btn-custom-gold:active {
    /* background: linear-gradient(to bottom, #c68d32, #b57b2d); */
    background-color: #0f2a4d; /* Even darker primary for active */
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Footer */
/* footer {
    background-color: #000000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
} */

/* Footer */
footer {
    color: #FFFFFF;
    background-color: #1d428a;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    width: 100%;
    text-align: center;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1.5em;
    letter-spacing: 0px;
}

/* Booking Time Mammo */
.booking-time-mammo {
    display: none; /* Hide this element to fix header spacing */
    /* background-color: #000000; */
    color: #ffffff;
    padding: 60px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: -35px;
}

/* Booking Time Input */
#booking-time {
    width: 100%;
    max-width: 400px;    /* Adjust as needed */
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ffffff;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space below the input if needed */
    display: none; /* Adjust display as needed */
}

/* Air Datepicker Styles */
.air-datepicker {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

/* Booking Time Display */
.booking-time-display {
    display: none;
    margin: 20px 0;
    font-weight: bold;
    font-family: Arial, sans-serif;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Progress Bar */
.progress {
    background-color: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    /* background: linear-gradient(90deg, #ffcc33, #ffb600); */ /* Replaced with primary color */
    background-color: #1d428a; /* Primary color */
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Modal Dialog */
.centered-modal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.modal-backdrop.show {
    opacity: 0.5;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
}

.modal-content {
    position: relative;
    z-index: 1055;
    padding: 20px;
}

/* Spinner Overlay Styles */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #1d428a; /* Use primary color for spinner */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Styles */
.booking-type, .booking-selected {
    margin-bottom: 10px;
}

#booking-form {
    margin: 1rem 0;
}

.modal {
    z-index: 1055;
}

.modal-backdrop {
    background-color: white !important;
    opacity: 1 !important;
}

.is-invalid {
    border-color: #dc3545;
}

/* Responsive Styles */

/* Tablet Layout Adjustments */
@media only screen and (min-width: 768px) and (max-width: 1280px) {
    .main-content-wrapper {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px;
        align-items: center;
    }

    .time-slot {
        padding: 20px 30px !important;
        margin: 5px;
        width: 115px;
        /* Add flex properties */
        flex: 1 1 calc(33.333% - 10px); /* Default to 3 buttons per row */
    }

    .calendar-wrapper,
    .time-slots,
    .booking-container {
        width: 48%;
        height: auto;
        margin-bottom: 20px;
    }

    .time-slots .time-slots-content {
        max-height: 400px;
    }

    /* Fix contact info overlap on tablets */
    header {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        flex-wrap: wrap;
    }

    .header-logo {
        max-width: 350px;
        margin: 0 auto 15px auto;
    }

    .contact-info {
        position: static;
        transform: none;
        margin: 0 auto;
        text-align: center;
        font-size: 0.9rem;
        display: block;
    }
}

/* Mobile Layout Adjustments */
@media only screen and (max-width: 767px) {
    .main-content-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 5px;
    }

    .calendar-wrapper,
    .time-slots,
    .booking-container {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .time-slot {
        padding: 10px 30px !important;
        /* Add flex properties */
        flex: 1 1 calc(33.333% - 10px); /* Default to 3 buttons per row */
    }

    .time-slots .time-slots-content {
        max-height: none;
    }

    /* Adjust header */
    header {
        padding: 15px; /* Increased padding to make the header taller */
        text-align: center;
        flex-direction: column;
        min-height: auto; /* Let content determine height */
    }

    .header-logo {
        position: static;
        margin: 0 auto 10px auto;
        width: 80%;
        max-width: 300px;
        height: auto;
    }

    .contact-info {
        position: static;
        margin-top: 10px;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
    }

    .centered-heading {
        margin-top: 10px;
        text-align: center;
        font-family: Helvetica;
    }

    /* Footer adjustments */
    footer {
        position: relative;
        padding: 8px 0;
        font-size: 0.9rem;
    }

    /* Adjust booking-time-mammo */
    .booking-time-mammo {
        font-size: 18px;
        padding: 30px;
    }

    /* Adjust progress bar */
    .progress {
        height: 15px;
    }

    /* Adjust modal dialogs for mobile */
    .centered-modal .modal-dialog {
        max-width: 95%;
    }
}

/* Additional Adjustments */
.air-datepicker {
    font-size: 16px !important;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent;
}

.air-datepicker .air-datepicker-nav--prev,
.air-datepicker .air-datepicker-nav--next {
    width: 45px !important;
    height: 45px !important;
    font-size: 42px !important;
}

.air-datepicker .air-datepicker-cell {
    padding: 10px 10px !important;
    margin: 0 auto;
}

.air-datepicker .air-datepicker-nav--title {
    font-size: 25px !important;
    text-align: center;
}

/* Style for the year select dropdown */
/* .flatpickr-year-input {
    width: 60px;
    margin-left: 10px;
    padding: 2px 5px;
    font-size: 1rem;
}

.flatpickr-current-month .flatpickr-yearSelect {
    width: 70px;
    height: 30px;
    font-size: 1rem;
    border: none;
    background: transparent;
    color: inherit;
    appearance: none;
    padding: 0;
    margin: 0;
}

.flatpickr-current-month .flatpickr-yearSelect:focus {
    outline: none;
}

.flatpickr-months .flatpickr-month {
    display: flex;
    align-items: center;
}

.flatpickr-current-month .numInputWrapper {
    width: 6ch;
    display: inline-block;
    position: absolute;
    top: 6px;
    right: 18px;
}

.flatpickr-calendar .flatpickr-months .flatpickr-month {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.flatpickr-monthDropdown-months, .flatpickr-monthDropdown-years {
    margin: 0 5px;
}

.flatpickr-monthDropdown-months select, .flatpickr-monthDropdown-years input {
    width: auto;
    padding: 5px;
    font-size: 1rem;
}
 */

 /* Style the year select to match the month select */
.flatpickr-yearDropdown {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1rem;
    font-family: inherit;
    appearance: none; /* Remove default styling */
    -moz-appearance: none; /* Remove default styling in Firefox */
    -webkit-appearance: none; /* Remove default styling in Chrome/Safari */
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    overflow: hidden; /* Hide any overflow */
}

/* Remove spin buttons in Firefox */
.flatpickr-yearDropdown {
    -moz-appearance: none;
}

/* Remove spin buttons in Chrome, Safari, Edge, Opera */
.flatpickr-yearDropdown::-webkit-inner-spin-button,
.flatpickr-yearDropdown::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add a dropdown arrow to the year select */
.flatpickr-yearDropdown::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transform: translateY(-50%);
}

/* Remove default select arrow in IE and Edge */
.flatpickr-yearDropdown::-ms-expand {
    display: none;
}

/* Adjust the container of the month and year selectors */
.flatpickr-current-month {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flatpickr-months .flatpickr-month {
    display: flex;
    align-items: center;
}

/* Adjust the month select to have the same styling */
.flatpickr-monthDropdown-months {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

/* Add dropdown arrow to month select */
.flatpickr-monthDropdown-months::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transform: translateY(-50%);
}

/* Remove default select arrow in IE and Edge for month select */
.flatpickr-monthDropdown-months::-ms-expand {
    display: none;
}

/* Flash message styling */
.flash {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}


