.modal-main-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 15px 0; /* better than 120px for full view */
    z-index: 999;
}

/* DESKTOP FULL HEIGHT */
.modal-inner-container {
    width: 1000px;
    height: calc(100vh - 80px); /* full height with top/bottom spacing */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

/* SCROLL ONLY INSIDE BODY */
.modal-body {
    overflow-y: auto;
    flex: 1;
}

.hidemodal {
    display: none;
}

/* HEADER CONTAINER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px 15px 20px; /* TOP RIGHT BOTTOM LEFT */
    border-bottom: 1px solid #eaeaea;
}

/* LEFT SIDE */
.header-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* MAIN HEADING */
.modal-heading h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #371e0f;
    margin: 0;
}

/* SERVICE INFO ROW */
.service_info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SERVICE NAME */
.service_info h3 {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #2b2b2b; /* dark color */
    text-transform: capitalize;
    margin: 0;
}

/* PRICE */
.service_info span {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0.1em; /* 10% */
    text-transform: uppercase;
    color: #dfaa8b;
}

/* CLOSE BUTTON */
.header-right button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header-right img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.header-right img:hover {
    opacity: 1;
}
/* BODY CONTAINER */
.modal-body {
    padding: 10px 20px;
}

/* HEADING */
.body-heading h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 18px !important;
    line-height: 100%;
    letter-spacing: 0.1em; /* 10% */
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 15px;
}

/* RADIO GROUP */
.body_selectpro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
}

/* HIDE DEFAULT RADIO */
.body_selectpro input[type="radio"] {
    display: none;
}

.body_selectpro label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    color: #371e0f;
}

/* Outer circle */
.body_selectpro label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #371e0f;
    border-radius: 50%;
}

/* Inner dot */
.body_selectpro input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #dfaa8b;
    border-radius: 50%;
}

/* PROFESSIONAL LIST GRID */
.body-pro-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    opacity: 0.5;
    justify-items: self-start;
}

/* CARD CONTAINER */
.professional-card {
    height: -webkit-fill-available;
    padding: 5px;
    padding-bottom: 10px;
    border: 2px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.professional-card {
    position: relative;
}

.professional-card.selected {
    border-color: #dfaa8b;
}

.professional-card.selected::after {
    content: "✔";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dfaa8b;
    color: #fff;
    font-size: 12px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    border-radius: 50%;
}

/* IMAGE */
.pro-img img {
    width: 220px;
    height: 120px;
    border-radius: 4px;
    object-fit: cover;
    object-position: top;
}
/* INFO CONTAINER */
.pro-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pro-info h4{
    text-transform: capitalize;
    font-size: 14px !important;
}


.pro-info p{
    font-size: 12px;
    text-transform: capitalize;
    color: gray;
}

/* NAME */
.pro-top h4 {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    /* letter-spacing: 1px; */
    text-transform: uppercase;
    color: #371e0f;
    margin: 0;
}

/* PRICE */
.price {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #dfaa8b;
}

/* RATING BELOW */
.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #371e0f;
}

/* STAR */
.star {
    color: #f4b400;
}
/* HOVER EFFECT */
.professional-card:hover {
    border-color: #dfaa8b;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px 40px;
}

.prev-btn,
.next-btn {
    padding: 10px 40px;
    border: none;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    border-radius: 40px;
}

.prev-btn {
    background: #eee;
}

.next-btn {
    background: #dfaa8b;
    color: black;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Modal */
.modal-main-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.hidemodal {
    display: none !important;
}
.modal-inner-container {
    background: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    max-width: 990px;
    width: 90%;
    height: max-content;
    max-height: 90%;
    overflow-y: auto;
}

/* Calendar + Slots */
.calendar-step {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.calendar-box {
    width: 100%;
    /* max-width: 320px; */
    /* border: 1px solid #ddd; */
    border-radius: 12px;
    padding: 5px 15px;
    box-sizing: border-box;
    flex: 1;
}
.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    gap: 1rem;
}
.calendar-header button {
    /* background: #dfaa8b; */
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}
.calendar-header button:hover {
    background: #dfaa8b;
}
.calendar-grid.text-xs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* gap: 4px; */
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.calendar-grid.text-xs div{
    font-family: 'Roboto',sans-serif;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    justify-items: center;
}

/* .day {
    padding: 6px 8px;
    text-align: center;
    border-radius: 30px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.day.available {
    background-color: #dfaa8b;
    color: #fff;
}

.day.available:hover {
    background-color: #cfa46b;
}

.day.selected {
    background-color: #371e0f;
    color: #fff;
}

.day.disabled {
    color: #a5a5a5;
    pointer-events: none;
}

.slots-box {
    flex: 1;
    padding: 5px 0px;
}
.slot {
    padding: 8px 14px;
    border: 1px solid #dfaa8b;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 4px;
    width: 100%;

}
.slot:hover {
    background-color: #f2e1c4;
}
.slot.selected {
    background-color: #dfaa8b;
    color: #fff;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Calendar Step Layout */
.calendar-step {
    display: flex;
    gap: 20px; /* space between calendar and slots */
    flex-wrap: wrap;
}

/* Calendar Box */
/* .calendar-box {
    width: 100%;
    max-width: 320px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
} */

/* Calendar Header */
/* .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-header button {
    background: #dfaa8b;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: #cfa46b;
} */

/* Week Days Row */
/* .calendar-grid.text-xs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280; 
    margin-bottom: 4px;
} */

/* Days Grid */
/* .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
} */

/* Individual Day Cells */
.day {
    padding: 6px 8px;
    text-align: center;
    border-radius: 30px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* Available Day */
.day.available {
    background-color: #dfaa8b;
    color: #fff;
}
.day.available:hover {
    background-color: #cfa46b;
}

/* Disabled Day */
.day.disabled {
    color: #ccc;
    pointer-events: none;
}

/* Slots Box (Right side) */
.slots-box {
    flex: 1;
}

/* Slot Buttons */
.slot {
    padding: 8px 14px;
    border: 1px solid #dfaa8b;
    /* border-radius: 20px; */
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.slot:hover {
    background-color: #f2e1c4;
}

.slot.selected {
    background-color: #dfaa8b;
    color: #fff;
}

.modal-step {
    display: none;
    width: 100%;
}

.modal-step.active {
    display: block;
}

/* Hide previous button on step-1 */
#edit-modal-main-container .modal-inner-container:has(#edit-step-1[style*="display: block"]) .modal-footer,
.modal-inner-container:has(#select-step-1[style*="display: block"]) .modal-footer{
    justify-content: flex-end;
}

#edit-modal-main-container .modal-inner-container:has(#edit-step-1[style*="display: block"]) .modal-footer button:nth-child(1),
.modal-inner-container:has(#select-step-1[style*="display: block"]) .modal-footer button:nth-child(1){
    display: none;
}

/* Detail Modal - Align buttons to the right */
#detail_modal_main_container .modal-footer {
    justify-content: flex-end;
    gap: 10px;
}

/* Modal Container - Edit */
#edit-modal-main-container .edit-body-pro-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    justify-items: self-start;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .body-pro-list{
        grid-template-columns: repeat(6, 1fr);
    }

    .pro-top{
        flex-direction: column;
        align-items: flex-start;
    }

    .body_selectpro{
        margin-bottom: 15px;
    }

    .professional-card{
        padding: 5px;
    }

    .pro-info {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

    .modal-heading h2,
    .body-heading h2{
        font-size: 18px !important;
    } 
}

@media screen and (max-width: 435px) {
    .body-pro-list{
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-top{
        flex-direction: row;
        align-items: center;
    }

    .price{
        font-size: 12px;
    }

    .professional-card{
        padding: 10px;
    }

    .pro-img img {
        height: 120px;
    }

    .modal-header{
        padding: 24px 10px 24px 10px;
    }
    
    .modal-heading h2,
    .body-heading h2{
        font-size: 18px !important;
    } 

    .service_info h3{
        font-size: 14px;
    }

    .service_info span{
        font-size: 16px;
    }

    .modal-body{
        padding: 20px 10px;
    }

    .body-pro-list{
        justify-items: center;
    }

    .body_selectpro label{
        font-size: 12px;
    }

    .modal-footer {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        padding: 20px 30px;
    }

    .modal-inner-container:has(#step-1[style*="display: block"]) .modal-footer{
        justify-content: center;
    }

    .prev-btn,
    .next-btn {
        padding: 10px 30px;
        border: none;
        cursor: pointer;
        font-family: "Oswald", sans-serif;
        font-size: 16px;
        border-radius: 40px;
    }

    .calendar-grid{
        gap: 9px;
        row-gap: 18px;
        font-size: 14px;   
    }

}

@media screen and (max-width: 320px){
    .calendar-grid{
        gap: 3px;
        row-gap: 10px;
        font-size: 12px;
    }
}

/* Professional loading and error states */
.loading-message, .no-professionals-message, .error-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-message p {
    font-size: 16px;
    color: #371E0F;
}

.no-professionals-message p {
    font-size: 16px;
    color: #999;
    font-style: italic;
}

.error-message p {
    font-size: 16px;
    color: #dc3545;
}

/* Professional card designation styling */
.professional-card .designation {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}