/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden; /* Hides the scrollbars */
    overflow-y: scroll; /* Ensures vertical scrolling is still possible */
    scrollbar-width: none; /* For Firefox: Hides the scrollbar */
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #f0f4f8, #ffffff);
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #00509e, #00274d);
    color: #ffffff;
    padding: 16px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header p {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.85;
}
footer {
    background: linear-gradient(135deg, #00509e, #00274d);
  /* background-color: rgba(0, 0, 0, 0.8); Dark semi-transparent background */
  color: white; /* White text for the footer */
  text-align: center; /* Center-align content */
  padding: 20px 0; /* Add vertical padding */
  position: relative; /* Adjust position as needed */
  bottom: 0;
  width: 100%;
  z-index: 2;
  font-size: 0.9rem; /* Slightly smaller font size */
}

footer a {
  color: white; /* Set link color to white */
  text-decoration: none; /* Remove underline */
  margin: 0 5px; /* Add spacing between links */
}

footer a:hover {
  text-decoration: underline; /* Underline on hover */
}
.footer-text {
  color: white; /* Set text color to white */
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
}

nav button {
    margin: 0 8px;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0073e6, #00509e);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

nav button:hover {
    background: linear-gradient(135deg, #00509e, #00376b);
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

nav button:focus {
    outline: 2px solid white;
    transform: scale(1.05);
}

/* Main Content */
main {
    padding: 32px 16px;
    max-width: 960px;
    margin: auto;
}

section {
    width: 100vw;
    padding: 32px 16px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    text-align: center;
    margin: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #00376b;
}

section p {
    font-size: 0.8rem;
    margin-bottom: 16px;
    color: #555;
    line-height: 1.44;
}

section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 16px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    margin: auto;
}

.input-group {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

.input-field {
    flex: 1;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
    transition: all 0.3s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00509e;
    background: #eaf4fc;
    box-shadow: 0 0 6px rgba(0, 80, 158, 0.4);
}

/* Button styling */
button {
    padding: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #0073e6, #00509e);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

button:hover {
    background: linear-gradient(135deg, #00509e, #00376b);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 16px;
    background-color: #00274d;
    color: white;
    font-size: 0.72rem;
    margin-top: 40px;
    box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00509e;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.76rem;
    }

    nav {
        flex-direction: column;
        gap: 8px;
    }

    nav button {
        width: 72%;
        margin: 4px auto;
    }

    section {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.44rem;
    }

    nav button {
        font-size: 0.72rem;
    }

    section {
        padding: 16px;
    }

    button {
        padding: 12px;
        font-size: 0.72rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Darker background for better contrast */
    padding-top: 60px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal.display-block {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.modal-content .close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #ff0000;
}

#available-slots button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    background: #00509e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#available-slots button:hover {
    background: #00376b;
    transform: scale(1.05);
}

/* Added styles for smooth UI */
#available-slots button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.5);
}

/* Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .modal-content h3 {
        font-size: 1.2rem;
    }
}


/* Style for the calendar container */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    grid-template-rows: auto repeat(4, 1fr);
    width: 72%;
    max-width: 960px;
    margin: 16px auto;
    justify-content: center;
    align-items: center;
}

.disabled-date {
    background-color: #444; /* Dark gray background */
    color: #ccc; /* Light gray text */
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.8; /* Slight transparency for effect */
    border: 1px solid #333; /* Add a subtle border for contrast */
}



/* Style for the days of the week header */
.calendar-header {
    display: contents;
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
}

.calendar-header div {
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #333;
}

/* Style for the individual day blocks */
.calendar-day {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    font-size: 1rem;
    width: 176px;
    height: 176px;
    box-sizing: border-box;
}

/* Style for "booked" dates */
.calendar-day.booked {
    background-color: #f7f7f7;
    color: #333;
}

.calendar-day.booked .booked-pill-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 90%; /* Adjusted to take up almost the full width */
}

/* Updated style for the booked-pill */
.calendar-day .booked-pill {
    display: block;
    padding: 6px 12px; /* Increased padding for a larger, more prominent pill */
    background-color: #FF6347;
    color: white;
    font-size: 0.9rem; /* Slightly larger font for better readability */
    border-radius: 8px; /* Adjusted for a smoother appearance */
    width: 100%; /* Takes up the full width of the container */
    text-align: center; /* Ensures text is centered */
    box-sizing: border-box; /* Ensures padding doesn't overflow */
    word-wrap: break-word; /* Handles long text gracefully */
}


.calendar-day .date {
    font-weight: bold;
    color: #333;
}

.calendar-day .slots {
    font-size: 0.8rem;
    color: #777;
}

.calendar-day:hover {
    background-color: #e6e6e6;
}



/* Mobile-friendly adjustments */
@media (max-width: 600px) {
    /* Hide calendar and show mobile date picker */
    #calendar-container {
        display: none;
    }

    .mobile-datepicker {
        display: block;
        width: 100%;
        margin-top: 20px;
        font-size: 1rem;
        background-color: #ffffff;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        padding: 14px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        font-family: 'Roboto', sans-serif;
        color: #333;
        transition: all 0.3s ease;
        position: relative;
        text-align: center;
    }

    .mobile-datepicker:focus {
        outline: none;
        border-color: #6200ea;
        box-shadow: 0 0 10px rgba(98, 0, 234, 0.5);
    }

    .mobile-datepicker::placeholder {
        color: #bbb;
        font-style: italic;
    }

    .mobile-datepicker-label {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        color: #6200ea;
        margin-bottom: 8px;
        text-align: center;
    }

    #calendar {
        display: none; /* Hide calendar */
    }
    
    .calendar-day {
        width: 140px; /* Adjusted for smaller screens */
        height: 140px; /* Keep square shape */
        border-radius: 12px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, #ffffff, #f9f9f9);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        overflow: hidden;
    }

    .calendar-day:hover {
        transform: scale(1.05);
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    }

    .calendar-header div {
        font-size: 0.9rem;
        padding: 10px;
        background-color: #6200ea;
        color: #fff;
        border-radius: 6px;
        font-weight: bold;
    }

    .calendar-day.booked {
        background-color: #ffe0e0;
        border: 2px solid #f44336;
        color: #b71c1c;
    }

    .calendar-day.booked .booked-pill {
        font-size: 0.7rem;
        padding: 4px 8px;
        background-color: #f44336;
        border-radius: 4px;
        color: white;
    }
    /* Style for the combined pill when multiple slots are selected */
.calendar-day .combined-pill {
    display: block;
    padding: 6px 12px;
    background-color: #FF6347;
    color: white;
    font-size: 0.9rem;
    border-radius: 8px;
    width: auto;  /* Allow pill to adjust size dynamically */
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
    margin-top: 8px; /* Slight margin between multiple pills */
}

/* Adjusted styles for the pills inside booked dates */
.calendar-day .booked-pill {
    display: none; /* Hide individual pills if combined pill exists */
}


    .calendar-day .date {
        font-size: 1.3rem;
        font-weight: bold;
        color: #333;
    }

    .calendar-day .slots {
        font-size: 0.85rem;
        color: #666;
    }
}

/* Desktop or larger screens */
@media (min-width: 601px) {
    .mobile-datepicker {
        display: none; /* Hide mobile date picker */
    }

    #calendar-container {
        display: block;
    }
}
  /* Dropdown styles */
  .dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.dropbtn {
background-color: #04AA6D;
color: white;
padding: 12px;
width: 100%;
font-size: 16px;
border: none;
cursor: pointer;
display: flex;
justify-content: space-between; /* Align text and arrow */
align-items: center; /* Vertically align the text and the arrow */
}

.arrow {
font-size: 18px;
margin-left: 8px; /* Space between text and the arrow */
}

.dropbtn:hover, .dropbtn:focus {
background-color: #3e8e41;
}


#myInput {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f6f6f6;
    min-width: 230px;
    overflow: auto;
    border: 1px solid #ddd;
    z-index: 1;
    width: 100%;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

.calendar-visible {
    display: block;
}





