/* Booking Popup Styles */

/* Calendar Disabled State */
.booked-calendar.calendar-disabled {
    opacity: 0.5;
    pointer-events: none !important;
    position: relative;
}

.booked-calendar.calendar-disabled * {
    pointer-events: none !important;
    cursor: default !important;
}

.booked-calendar.calendar-disabled::after {
    content: 'Bitte wählen Sie zuerst eine Behandlung aus';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

/* Popup Container 
.sc_menuitems_wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}*/

.sc_menuitems_wrap.open {
    display: flex;
}

body.popup-open {
    overflow: hidden;
}

/* Popup Content */
.sc_menuitems {
    position: relative;
    max-width: 800px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.sc_menuitems_item {
    padding: 30px;
}

/* Close Button */
.close_menuitem {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.close_menuitem:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Treatment Image */
.sc_menuitem_image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sc_menuitem_image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Title Section */
.sc_menuitem_box_title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sc_menuitem_title {
    font-size: 24px !important;
    font-weight: 800;
    color: #c8a882;
    flex: 1;
    line-height: 1.3;
}

.sc_menuitem_subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

.sc_menuitem_price {
    font-size: 24px !important;
    font-weight: 700;
    color: #c8a882;
    white-space: nowrap;
    margin-left: 20px;
}

/* Content Sections */
.sc_menuitem_content {
    margin-bottom: 25px;
}

.sc_menuitem_content_title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc_menuitem_content_title span[class^="icon-"] {
    font-size: 20px;
    color: #c8a882;
}

/* Only icons should be absolutely positioned, not the date */
.sc_menuitems_style_menuitems-2 .sc_menuitem_content_title #selected-date {
    position: static !important;
    left: auto !important;
    top: auto !important;
}

.sc_menuitem_description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.sc_menuitems_wrap.booking-popup .time-slot-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 15px;
    color: #333;
}

.sc_menuitems_wrap.booking-popup .time-slot-button:hover {
    background: #fff;
    border-color: #c8a882;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 168, 130, 0.2);
}

.sc_menuitems_wrap.booking-popup .time-slot-button.selected {
    background: #c8a882;
    border-color: #c8a882;
    color: #fff;
}

.sc_menuitems_wrap.booking-popup .time-slot-time {
    font-weight: 600;
    font-size: 16px;
}

.sc_menuitems_wrap.booking-popup .time-slot-separator {
    font-size: 12px;
    margin: 3px 0;
    opacity: 0.6;
}

.sc_menuitems_wrap.booking-popup .no-slots-message {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Form Styles */
.booking-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.form-group-spaced {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #c8a882;
    box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #c8a882;
}

.checkbox-group.consent-checkbox {
    align-items: flex-start;
}

.checkbox-group.consent-checkbox label {
    display: flex;
    gap: 12px;
}

.checkbox-group.consent-checkbox .consent-text {
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
    color: #555;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0;
    white-space: nowrap;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #c8a882;
}

/* Select Styles */
.form-control[type="select"],
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1.5em;
    padding-right: 40px;
    cursor: pointer;
}

.checkbox-group a {
    color: #c8a882;
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: #a68964;
}

/* Order Summary (Certificates) */
.order-summary {
    background: #faf7f2;
    border: 1px solid #efe4d6;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 15px;
}

.order-summary .order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
    padding: 6px 0;
}

.order-summary .order-row.total {
    border-top: 1px solid #e7d8c4;
    margin-top: 8px;
    padding-top: 10px;
    font-size: 16px;
    color: #333;
}

/* Buttons */
.sc_menuitems_wrap.booking-popup .sc_menuitem_more {
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.sc_menuitems_wrap.booking-popup .sc_button {
    display: inline-block;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.sc_menuitems_wrap.booking-popup .btn-cancel,
.sc_menuitems_wrap.booking-popup .btn-back {
    background: #f0f0f0;
    color: #333;
}

.sc_menuitems_wrap.booking-popup .btn-cancel:hover,
.sc_menuitems_wrap.booking-popup .btn-back:hover {
    background: #e0e0e0;
}

.sc_menuitems_wrap.booking-popup .btn-next,
.sc_menuitems_wrap.booking-popup .btn-submit {
    background: #c8a882;
    color: #fff;
}

.sc_menuitems_wrap.booking-popup .btn-next:hover,
.sc_menuitems_wrap.booking-popup .btn-submit:hover {
    background: #a68964;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 168, 130, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sc_menuitems_wrap.booking-popup {
        padding: 10px;
    }
    
    .sc_menuitems_wrap.booking-popup .sc_menuitems {
        max-height: 95vh;
    }
    
    .sc_menuitems_wrap.booking-popup .sc_menuitems_item {
        padding: 20px;
    }
    
    .sc_menuitems_wrap.booking-popup .sc_menuitem_title {
        font-size: 20px;
    }
    
    .sc_menuitems_wrap.booking-popup .sc_menuitem_price {
        font-size: 24px;
    }
    
    .sc_menuitems_wrap.booking-popup .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .sc_menuitems_wrap.booking-popup .time-slot-button {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .sc_menuitems_wrap.booking-popup .sc_menuitem_more {
        flex-direction: column;
    }
    
    .sc_menuitems_wrap.booking-popup .btn-next,
    .sc_menuitems_wrap.booking-popup .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sc_menuitems_wrap.booking-popup .sc_menuitem_box_title {
        flex-direction: column;
        gap: 10px;
    }
    
    .sc_menuitems_wrap.booking-popup .sc_menuitem_price {
        margin-left: 0;
    }
    
    .sc_menuitems_wrap.booking-popup .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
