﻿/* ── RSL Booking Popup Styles v2 ──────────────────────────────── */

.rsl-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: rslFadeIn 0.2s ease;
}

@keyframes rslFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.rsl-popup-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px 20px;
    width: 100%;
    max-width: 464px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    animation: rslSlideUp 0.22s ease;
    overflow: visible;
}

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

/* Close Button */
.rsl-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #fff;
    border: 2px solid #e0e0e0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 10;
}
.rsl-popup-close:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Header — compact */
.rsl-popup-header {
    text-align: center;
    margin-bottom: 12px;
}
.rsl-popup-icon {
    width: 40px;
    height: 40px;
    background: #e6f7f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.rsl-popup-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 3px !important;
    line-height: 1.3 !important;
}
.rsl-popup-subtitle {
    font-size: 12px !important;
    color: #777 !important;
    margin: 0 !important;
}

/* Form Groups — compact */
.rsl-form-group {
    margin-bottom: 8px;
}
.rsl-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}
.rsl-required { color: #e53935; }

.rsl-form-group input,
.rsl-form-group select {
    width: 100%;
    padding: 7px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}
.rsl-form-group input:focus,
.rsl-form-group select:focus {
    border-color: #0aa89e;
    box-shadow: 0 0 0 3px rgba(10,168,158,0.12);
    background: #fff;
}
.rsl-form-group input.rsl-input-error,
.rsl-form-group select.rsl-input-error {
    border-color: #e53935;
}

.rsl-error {
    display: block;
    font-size: 11px;
    color: #e53935;
    margin-top: 2px;
    min-height: 13px;
}

.rsl-form-msg {
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
    margin-bottom: 8px;
}
.rsl-form-msg.rsl-msg-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6c6;
}

/* Submit Button */
.rsl-popup-submit {
    width: 100%;
    padding: 10px;
    background: #0aa89e;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}
.rsl-popup-submit:hover  { background: #089088; }
.rsl-popup-submit:active { transform: scale(0.98); }
.rsl-popup-submit:disabled { background: #aaa; cursor: not-allowed; }

/* ── Nice Select: full width + open UPWARD + scroll ─────────────── */
.rsl-popup-box .nice-select,
.rsl-popup-overlay .nice-select,
div#rsl-popup-overlay .rsl-form-group .nice-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    height: 36px !important;
    line-height: 34px !important;
    font-size: 13px !important;
    padding: 0 30px 0 12px !important;
}

/* Dropdown list — open upward */
div#rsl-popup-overlay .rsl-form-group .nice-select .list,
.rsl-popup-box .nice-select .list {
    bottom: 100% !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-bottom: 4px !important;
    margin-top: 0 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12) !important;
    z-index: 100000 !important;
    white-space: nowrap !important;
   
    padding-right: 12px !important;
}

/* Scrollbar styling for dropdown */
div#rsl-popup-overlay .rsl-form-group .nice-select .list::-webkit-scrollbar {
    width: 5px;
}
div#rsl-popup-overlay .rsl-form-group .nice-select .list::-webkit-scrollbar-track {
    background: #f1f1f1;
}
div#rsl-popup-overlay .rsl-form-group .nice-select .list::-webkit-scrollbar-thumb {
    background: #0aa89e;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 480px) {
    .rsl-popup-box {
        padding: 18px 16px 16px;
        border-radius: 12px;
        margin: 8px;
    }
    .rsl-popup-close {
        top: -12px;
        right: -8px;
    }
}
