.sb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

html.sb-modal-open,
body.sb-modal-open {
    overflow: hidden !important;
}

.sb-modal-content.sb-dark-theme {
    position: relative;
    background: #111111;
    border: 1px solid #b89662;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #eeeeee;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sb-modal-content.sb-dark-theme * {
    box-sizing: border-box;
}

.sb-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #b89662;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.sb-modal-close:hover {
    color: #fff;
}

.sb-booking-container {
    width: 100%;
}

.sb-step {
    animation: fadeIn 0.3s ease-in-out;
}

.sb-step-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.sb-step-num {
    color: #666;
    font-size: 14px;
    margin-right: 15px;
}

.sb-step-title {
    color: #eeeeee;
    font-size: 16px;
    text-transform: uppercase;
}

.sb-progress-bar {
    width: 100%;
    height: 2px;
    background: #333;
    margin-bottom: 25px;
    position: relative;
}

.sb-progress-fill {
    height: 100%;
    background: #b89662;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
}

.sb-step-desc {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Time Slots Grid */
.sb-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.sb-slot-btn {
    background: transparent;
    border: 1px solid #b89662;
    color: #eeeeee;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.sb-slot-btn::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #eeeeee;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.sb-slot-btn:hover:not([disabled]) {
    background: rgba(184, 150, 98, 0.1);
}

.sb-slot-btn.selected {
    border-color: #fff;
    background: rgba(184, 150, 98, 0.2);
}

.sb-slot-btn.selected::before {
    background: #eeeeee;
    box-shadow: inset 0 0 0 3px #111111;
}

.sb-slot-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #555;
    color: #888;
}

.sb-slot-btn[disabled]::before {
    border-color: #555;
}

/* Summary Block */
.sb-booking-summary {
    background: rgba(184, 150, 98, 0.1);
    border: 1px solid #b89662;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.sb-summary-item {
    color: #eeeeee;
    font-size: 15px;
    margin-bottom: 5px;
}

.sb-summary-item:last-child {
    margin-bottom: 0;
}

.sb-summary-item strong {
    color: #b89662;
    margin-right: 5px;
}

/* Forms */
.sb-form-group {
    margin-bottom: 20px;
}

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

.sb-dark-input {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #eeeeee;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.sb-dark-input:focus {
    border-color: #b89662;
}

/* Date picker specific styling for dark mode */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Actions */
.sb-actions {
    margin-top: 30px;
    display: flex;
}

.sb-actions-between {
    justify-content: space-between;
}

.sb-btn-outline {
    background: transparent;
    border: 1px solid #b89662;
    color: #b89662;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.sb-btn-outline:hover:not([disabled]) {
    background: #b89662;
    color: #111;
}

.sb-btn-outline[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.sb-error {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 1rem 1rem;
    margin-top: 15px;
    border-radius: 0.375rem;
    font-size: 15px;
}

.sb-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    padding: 1rem 1rem;
    margin-top: 15px;
    border-radius: 0.375rem;
    font-size: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .sb-slots-grid {
        grid-template-columns: 1fr;
    }
    .sb-modal-content.sb-dark-theme {
        padding: 25px 20px;
    }
}
