/* 1. Default State: Hidden and fixed to the screen */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000; /* Extremely high to stay on top */
    justify-content: center;
    align-items: flex-start; /* Start from top so user can scroll down */
    padding: 40px 0; /* Space at top/bottom */
    overflow-y: auto; /* Enable scroll if content is long */
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin: auto; /* Centers it within the flex-start container */
}

/* Add style for the 'X' button to ensure it's clickable */
.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #70757a;
}
/* Container for the scrollable modal */
.modal-content {
    background: white;
    /* padding: 30px; */
    padding:0;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    
    /* CRITICAL FOR SCROLL */
    max-height: 80vh;          /* Set a limit */
    display: flex;             /* Enable Flexbox */
    flex-direction: column;    /* Stack items vertically */
    overflow: hidden;          /* Hide overflow from the container itself */
    
    position: relative;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    margin: 40px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Time Slot Buttons */
.slot-btn {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    color: #3c4043;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.slot-btn:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}

/* Style for the "unavailable" dashes */
.slot-btn:disabled, .slot-btn:contains("--") {
    background: #f1f3f4;
    color: #9aa0a6;
    cursor: not-allowed;
    border-color: #e8eaed;
}

/* Remove default link styling for the buttons inside <a> tags */
.calendar-grid a {
    text-decoration: none;
}

/* Section Dividers */
.availability-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.slot-btn {
    background-color: #0071bc; /* The exact blue from your image */
    color: #ffffff;            /* White text */
    border: none;
    padding: 10px 4px;
    border-radius: 6px;        /* Matches the rounded corners in your image */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: center;
    display: inline-block;
}

.slot-btn:hover {
    background-color: #005a96; /* Slightly darker blue on hover */
    color: #ffffff;
}

/* Ensure the links don't change the button text color */
.modal-content a {
    text-decoration: none;
}
.modal-body {
    overflow-y: auto;          /* Enable vertical scroll */
    flex-grow: 1;              /* Take up remaining space */
    padding-right: 10px;       /* Optional: space for scrollbar */
}
.custm-Select select optgroup{
    color:#666;
}