/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}

/* Main section */
main {
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background-color: #fff; 
    overflow-x: hidden;
}

.booking-div {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 equal columns per row */
    grid-gap: 20px; /* Space between columns and rows */
    width: 100%;
    max-width: 1200px; /* Set max width */
    margin-top: 40px;
    align-items: flex-start; /* Align items to the top */
    margin-left: auto; /* Center the grid container horizontally */
    margin-right: auto; /* Center the grid container horizontally */
}

.date-and-time{
    display: flex;
    flex-direction: row;
    gap: 20px; /* Add spacing between videos */
    width: 30vw;
    margin-top: 40px;
    align-items: flex-start; /* Align items to the top */
}

/* Calendar */
.calendar {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.calendar-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.calendar-header button {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.calendar-header button:hover {
    color: #00bfa5;
}

.calendar-body{
    position:relative;
    max-width: 100%;
}

.calendar-days {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-dates div {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #f8f9fa; /* Default color */
    transition: background-color 0.3s ease;
}

/* Hover effect */
.calendar-dates div:hover {
    background-color: #90caf9; /* Light blue on hover */
    color: white;
}

/* Selected day styling */
.selected-day {
    background-color: #00bfa5; /* Green background for selected day */
    color: white;
}

/* Time Slots as radio buttons */
.time-slots {
    display: grid;
    gap: 10px; /* Space between time slots */
    justify-items: stretch; /* Stretch to make sure both columns are evenly aligned */
    align-items: center; /* Align the time slots in the center vertically */
    max-width: 400px; /* Adjust width to better fit 2 columns */
    max-height: 400px;
    margin-left: auto;
    margin-right: auto;
}

.radio-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d0e7ff; /* Soft blue for default state */
    padding: 10px 20px;
    font-size: 1.2rem;
    border: 2px solid transparent;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%; /* Make sure each container takes full column width */
    box-sizing: border-box; /* Include padding in width calculations */
    text-align: center;
}

.radio-container input[type="radio"] {
    display: none; /* Hide the default radio button */
}

/* Selected time slot */
.selected-time {
    background-color: #00bfa5; /* Green for selected */
    color: white;
}

/* Hover effect */
.radio-container:hover {
    background-color: #90caf9; /* Light blue on hover */
    color: white;
}
/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin-left: 20px;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    grid-column: 1 / 2; /* Occupies the first column */
}

.booking-form label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.booking-form .readonly {
    background-color: #eee;
    cursor: not-allowed;
}

.booking-form button {
    background-color: #3f51b5;
    color: white;
    padding: 12px 25px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.booking-form button:hover {
    background-color: #303f9f;
}

.readonly.booking-details {
    resize: none; /* Disable user resizing */
    height: auto; /* Automatically adjust height */
    overflow: hidden; /* Hide scrollbar */
    min-height: 50px; /* Set a minimum height */
    width: 100%; /* Full width to fit the container */
    font-size: 16px; /* Optional: Adjust font size */
    padding: 10px; /* Optional: Add padding for a better appearance */
    border: 1px solid #ccc; /* Optional: Add border for better visibility */
    box-sizing: border-box; /* Ensure padding doesn't affect the overall width */
}

.patient-type {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #00bfa5; /* Adds color to the checkbox */
    border-radius: 3px; /* This creates the square appearance */
    vertical-align: middle; /* Align checkbox with label */
}

.selected-time {
    background-color: #00bfa5;
    color: rgb(0, 0, 0);
    border: 2px solid #00bfa5;
}

/* Intro section styling */
.intro {
    width: 100vw; /* Full viewport width */
    background-color: #d6f5d6; /* Soft green background */
    padding: 50px 20px; /* Padding for breathing room */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* Center the text */
}

/* Heading (h1) styling */
.intro h1 {
    font-size: 4rem; /* Larger font for the heading */
    font-family: 'Poppins', sans-serif; /* Modern, clean font */
    color: #2c5f2d; /* Darker green for contrast */
    margin-bottom: 20px; /* Space between the heading and paragraph */
}

/* Paragraph (p) styling */
.intro p {
    font-size: 1.5rem; /* Larger font for the paragraph */
    font-family: 'Arial', sans-serif; /* Simple and clean font */
    color: #333; /* Dark gray for readability */
    max-width: 1000px; /* Limit the width of the paragraph for readability */
    line-height: 1.8; /* Increased line height for better readability */
    margin: 0 auto; /* Center the paragraph horizontally */
}

@media screen and (max-width: 1200px) {
    .booking-div {
        display: flex; /* Use Flexbox for layout */
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        gap: 20px; /* Space between items */
        width: 100%; /* Full width */
        max-width: 1200px; /* Limit the width */
        margin: 40px auto; /* Center the container horizontally */
        padding: 0 20px; /* Add horizontal padding to avoid overflow */
        box-sizing: border-box; /* Include padding in width calculations */
    }
}

@media screen and (max-width: 768px) {
    .date-and-time {
        display: flex; /* Use Flexbox for layout */
        flex-direction: row; /* Place calendar and time slots side-by-side */
        justify-content: center; /* Center content horizontally */
        align-items: center; /* Center content vertically */
        gap: 20px; /* Space between calendar and time slots */
        width: 100%; /* Full width */
        max-width: 800px; /* Limit the max width for better alignment */
        margin: 0 auto; /* Center the container within its parent */
        padding: 20px; /* Add some padding for spacing */
        box-sizing: border-box; /* Include padding in width calculations */
    }
    
    .date-and-time > * {
        margin: 0; /* Remove margin from child elements */
        padding: 0; /* Remove padding from child elements */
    }
        /* Calendar */
    .calendar {
        width: 50vw;
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .calendar-header button {
        background-color: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .calendar-header button:hover {
        color: #00bfa5;
    }

    .calendar-days {
        font-size: 3vw;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 10px;
        text-align: center;
        font-weight: bold;
        color: #333;
        margin-bottom: 10px;
    }

    .calendar-dates {
        font-size: 2vw;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
    }

    .calendar-dates div {
        text-align: center;
        padding: 10px;
        cursor: pointer;
        border-radius: 5px;
        background-color: #f8f9fa; /* Default color */
        transition: background-color 0.3s ease;
    }

    /* Time Slots as radio buttons */
    .time-slots {
        display: grid;
        gap: 10px; /* Space between time slots */
    }

    .radio-container {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #d0e7ff; /* Soft blue for default state */
        padding: 10px 20px;
        font-size: 1rem;
        border: 2px solid transparent;
        margin-bottom: 10px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        width: 100%; /* Ensure each container takes the full column width */
        box-sizing: border-box; /* Include padding in width calculations */
        text-align: center;
        white-space: nowrap; /* Prevent text from wrapping */
    }
    main img {
        width: 100vw;
    }
}

.banner img {
    display: none; /* Hide all images by default */
}

/* For screens larger than 1400px, display the second image and hide the first one */
@media screen and (min-width: 1400px) {
    .banner img:nth-child(1) {
        display: block;
    }
}

/* For screens smaller than 1400px, display the first image and hide the second one */
@media screen and (max-width: 1399px) {
    .banner img:nth-child(2) {
        display: block;
    }
}
