/* === Fullscreen Popup Overlay === */
.saber-popup {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.saber-popup:not(.hidden) {
    visibility: visible;
    opacity: 1;
}

/* === Inner Popup Card === */
.saber-popup-inner {
    position: relative !important;
    background: #fff; /* white background */
    padding: 28px;
    border-radius: 18px;
    width: 90%;
    max-width: 720px;
    color: #0b282e; /* text color */
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: popupFade 0.25s ease;
}
@keyframes popupFade {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* === Headings === */
.saber-popup-inner h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #0b282e;
}

/* === Steps === */
.step { animation: stepFade 0.2s ease; }
.step.hidden { display: none; }

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

/* === Date Buttons Grid === */
.dates-grid,
.time-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.date-btn,
.time-btn {
    background: #f0f0f0; /* light background */
    border: 1px solid #d0d0d0;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: #0b282e;
    font-size: 13px;
    transition: all 0.2s ease;
}

.date-btn:hover,
.time-btn:hover { background: #e0e0e0; }

.date-btn.active,
.time-btn.active {
    background: #0b282e; /* active color */
    color: #fff;
    border-color: #0b282e;
}

/* === Buttons === */
.saber-btn,
.next-btn,
.submit-btn {
    padding: 0.75rem 1.5rem;
    background: #0b282e;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 20px rgba(11,40,46,0.35);
}

.saber-btn:hover,
.next-btn:hover,
.submit-btn:hover { transform: translateY(-1px); }

.next-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* === Back Buttons === */
.back-btn {
    padding: 0.75rem;
    background: transparent;
    color: #555;
    border-radius: 12px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background 0.2s ease;
}

.back-btn:hover { background: rgba(0,0,0,0.05); }

/* === Button Groups === */
.time-buttons,
.form-buttons { display: flex; gap: 10px; }

/* === Form Inputs === */
#booking-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background: #f7f7f7;
    color: #0b282e;
}

/* Close button top-right */
.close-btn {
    position: absolute !important;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.05);
    color: #0b282e;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
    background: rgba(0,0,0,0.1);
    transform: scale(1.1);
}

/* === Success Screen === */
.booking-success {
    animation: stepFade 0.25s ease;
    text-align: center;
    margin-top: 20px;
}

.booking-success h3 { font-size: 1.4rem; color: #0b282e; margin-bottom: 12px; }
.booking-success p { font-size: 0.95rem; color: #0b282e; line-height: 1.4; margin-bottom: 16px; }
.booking-success .submit-btn { background: #0b282e; color: #fff; width: 100%; }
.booking-main-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0b282e;
}

.booking-subtitle {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #0b282e;
}

/* Time step header */
.time-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    text-align: left;
}
.time-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0b282e;
}

.selected-date-display {
    font-size: 0.9rem;
    color: #555;
}
.form-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    text-align: left;
}

.form-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0b282e;
}

.selected-date-display {
    font-size: 0.9rem;
    color: #555;
}
