/* ============================================================
   POPUP.CSS — Book Now / Contact Popup
   ============================================================ */

/* Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal box */
.popup-modal {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    max-width: 860px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease;
    opacity: 0;
    max-height: 92vh;
    position: relative;
}

.popup-overlay.active .popup-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Left panel — visual */
.popup-left {
    background: linear-gradient(160deg, #1A1025 0%, #2D1040 50%, #3D0A2A 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.popup-left::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(194, 24, 91, 0.2);
    filter: blur(60px);
    pointer-events: none;
}

.popup-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(136, 14, 79, 0.15);
    filter: blur(50px);
    pointer-events: none;
}

.popup-logo {
    width: 140px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

.popup-left-content {
    position: relative;
    z-index: 1;
}

.popup-left-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.15;
}

.popup-left-content h2 span {
    background: linear-gradient(135deg, #E91E8C, #C2185B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-left-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.popup-benefits li i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(194, 24, 91, 0.25);
    border: 1px solid rgba(194, 24, 91, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E91E8C;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.popup-left-footer {
    position: relative;
    z-index: 1;
}

.popup-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.popup-rating .stars { color: #FFD700; font-size: 0.9rem; }
.popup-rating span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* Right panel — form */
.popup-right {
    padding: 40px 40px 36px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #7B7191;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #C2185B;
    color: #fff;
    transform: rotate(90deg);
}

.popup-form-header {
    margin-bottom: 28px;
}

.popup-form-header h3 {
    font-size: 1.5rem;
    color: #1A1025;
    margin-bottom: 6px;
}

.popup-form-header p {
    font-size: 0.85rem;
    color: #7B7191;
}

/* Quick action tabs */
.popup-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.popup-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1.5px solid #F0ECF0;
    background: #FAFAFA;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.popup-tab-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.popup-tab-btn span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #3D3050;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-tab-btn.call-action { border-color: rgba(21, 101, 192, 0.2); }
.popup-tab-btn.call-action i { color: #1565C0; }
.popup-tab-btn.call-action:hover {
    background: rgba(21, 101, 192, 0.07);
    border-color: #1565C0;
    transform: translateY(-2px);
}

.popup-tab-btn.whatsapp-action { border-color: rgba(27, 124, 58, 0.2); }
.popup-tab-btn.whatsapp-action i { color: #1B7C3A; }
.popup-tab-btn.whatsapp-action:hover {
    background: rgba(27, 124, 58, 0.07);
    border-color: #1B7C3A;
    transform: translateY(-2px);
}

.popup-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.popup-divider::before,
.popup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #F0ECF0;
}

.popup-divider span {
    font-size: 0.78rem;
    color: #A89DC0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Popup form fields */
.popup-form { display: flex; flex-direction: column; gap: 14px; }

.popup-form-group { display: flex; flex-direction: column; gap: 6px; }

.popup-form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #3D3050;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Montserrat', sans-serif;
}

.popup-form-group input,
.popup-form-group select,
.popup-form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #F0ECF0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background: #FAFAFA;
    color: #1A1025;
    transition: all 0.3s ease;
    outline: none;
}

.popup-form-group input:focus,
.popup-form-group select:focus,
.popup-form-group textarea:focus {
    border-color: #C2185B;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.07);
}

.popup-form-group textarea {
    min-height: 70px;
    resize: vertical;
}

.popup-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E91E8C, #C2185B);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.3);
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.42);
}

.popup-form-note {
    font-size: 0.75rem;
    color: #A89DC0;
    text-align: center;
    margin-top: 10px;
}

/* Popup success state */
.popup-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    gap: 16px;
    flex: 1;
}

.popup-success.show { display: flex; }
.popup-form-area.hide { display: none; }

.popup-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43A047, #2E7D32);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 28px rgba(67, 160, 71, 0.4);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.popup-success h3 { color: #1A1025; font-size: 1.4rem; }
.popup-success p  { color: #7B7191; font-size: 0.9rem; line-height: 1.6; }

/* Floating trigger button (bottom-center on mobile, already has Book btn on desktop) */
.popup-trigger-float {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, #E91E8C, #C2185B);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 28px rgba(194, 24, 91, 0.45);
    cursor: pointer;
    border: none;
    animation: pulseRingBtn 2.5s ease-out infinite;
    gap: 8px;
    align-items: center;
}

@keyframes pulseRingBtn {
    0%   { box-shadow: 0 8px 28px rgba(194,24,91,0.45), 0 0 0 0 rgba(194,24,91,0.4); }
    70%  { box-shadow: 0 8px 28px rgba(194,24,91,0.45), 0 0 0 16px rgba(194,24,91,0); }
    100% { box-shadow: 0 8px 28px rgba(194,24,91,0.45), 0 0 0 0 rgba(194,24,91,0); }
}

/* Responsive */
@media (max-width: 700px) {
    .popup-modal {
        grid-template-columns: 1fr;
        max-height: 95vh;
        border-radius: 16px;
    }
    .popup-left { padding: 28px 24px; }
    .popup-left-content h2 { font-size: 1.5rem; }
    .popup-right { padding: 24px 20px; }
    .popup-trigger-float { display: flex; }
}
