/**
 * ====================================================================
 * MAROLINA SPA - PREMIUM PROMOTIONAL OFFER POPUP STYLES
 * Theme: Luxury Pink, Pearl White & Silver
 * ====================================================================
 * Elegant Rose-Blush, Frosted Glass, Silver Metallic Shimmer & Crisp White.
 */

/* ------------------------------------------------------------------
   1. Popup Overlay / Backdrop
   ------------------------------------------------------------------ */
.spa-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(22, 12, 16, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    box-sizing: border-box;
}

.spa-popup-overlay.spa-popup-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Prevent background scrolling when open */
body.spa-popup-open {
    overflow: hidden !important;
    touch-action: none;
}

/* ------------------------------------------------------------------
   2. Popup Dialog Container (With Spa Background & Rose-Silver Glow)
   ------------------------------------------------------------------ */
.spa-popup-container {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    border-radius: 24px;
    background-image: url('../img/banner5.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85),
                0 0 0 1px rgba(255, 182, 193, 0.35),
                0 0 45px rgba(231, 163, 145, 0.28),
                0 0 20px rgba(226, 232, 240, 0.2);
    transform: scale(0.88) translateY(25px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    overflow: hidden;
    box-sizing: border-box;
}

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

/* Luxury Pink & Silver Dark Glass Overlay */
.spa-popup-backdrop-filter {
    background: linear-gradient(
        145deg,
        rgba(26, 14, 19, 0.95) 0%,
        rgba(36, 20, 26, 0.92) 50%,
        rgba(18, 10, 14, 0.97) 100%
    );
    border-radius: 24px;
    padding: 36px 36px 30px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 214, 224, 0.22);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 182, 193, 0.4) transparent;
}

/* Custom Scrollbar */
.spa-popup-backdrop-filter::-webkit-scrollbar {
    width: 6px;
}
.spa-popup-backdrop-filter::-webkit-scrollbar-track {
    background: transparent;
}
.spa-popup-backdrop-filter::-webkit-scrollbar-thumb {
    background: rgba(255, 182, 193, 0.35);
    border-radius: 10px;
}

/* ------------------------------------------------------------------
   3. Close Button (Silver & Pink Frosted Circle)
   ------------------------------------------------------------------ */
.spa-popup-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 192, 203, 0.4);
    color: #f8fafc;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.spa-popup-close-btn:hover,
.spa-popup-close-btn:focus {
    background: rgba(255, 182, 193, 0.25);
    border-color: #ffffff;
    color: #ffd6df;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 18px rgba(255, 182, 193, 0.5), 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------------
   4. Header Section
   ------------------------------------------------------------------ */
.spa-popup-header {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.spa-popup-logo-wrapper {
    margin-bottom: 12px;
}

.spa-popup-logo {
    max-height: 48px;
    max-width: 170px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Limited Time Badge in Pink & Silver */
.spa-popup-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 18px;
    background: rgba(255, 182, 193, 0.12);
    border: 1px solid rgba(241, 245, 249, 0.4);
    border-radius: 50px;
    margin-bottom: 10px;
    box-shadow: 0 0 16px rgba(255, 182, 193, 0.2), 0 0 6px rgba(226, 232, 240, 0.25);
}

.spa-popup-badge-sparkle {
    color: #ffb6c1;
    font-size: 13px;
    animation: spaPinkSparkle 2s infinite ease-in-out;
}

.spa-popup-badge-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    font-family: 'Mulish', sans-serif;
    text-shadow: 0 0 8px rgba(255, 192, 203, 0.4);
}

/* Title with Silver & Rose-Pink Gradient */
.spa-popup-title {
    font-family: 'Mulish', serif, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.spa-popup-title span {
    background: linear-gradient(135deg, #ffffff 0%, #ffc5d3 40%, #e2e8f0 75%, #ff9ebb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 182, 193, 0.3));
}

.spa-popup-subtitle {
    font-size: 14px;
    color: #e2d5dc;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ------------------------------------------------------------------
   5. Offer Packages (Pink, Silver & White Cards)
   ------------------------------------------------------------------ */
.spa-popup-packages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    margin-bottom: 24px;
}

.spa-popup-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 192, 203, 0.28);
    border-radius: 18px;
    padding: 22px 20px 20px;
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 182, 193, 0.08);
}

.spa-popup-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 182, 193, 0.65);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 182, 193, 0.3), 0 0 10px rgba(241, 245, 249, 0.25);
    background: rgba(255, 255, 255, 0.07);
}

.spa-popup-card-popular {
    border-color: rgba(241, 245, 249, 0.45);
    background: rgba(255, 192, 203, 0.06);
}

/* Silver & White Best Value Tag */
.spa-popup-card-tag {
    position: absolute;
    top: -11px;
    right: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 40%, #cbd5e1 75%, #ffb6c1 100%);
    color: #2b1219;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.spa-popup-card-header {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(255, 192, 203, 0.25);
    margin-bottom: 14px;
}

.spa-popup-card-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffdbe4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
    text-shadow: 0 0 8px rgba(255, 182, 193, 0.3);
}

.spa-popup-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

/* Price Value in Pink, White & Silver */
.spa-popup-price-val {
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #ffd1dc 45%, #e2e8f0 80%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(255, 182, 193, 0.4));
}

.spa-popup-price-unit {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* Service Items List */
.spa-popup-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spa-popup-services-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spa-popup-services-list li:last-child {
    border-bottom: none;
}

.spa-popup-bullet-icon {
    color: #ff9ebb;
    font-size: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 158, 187, 0.6));
}

/* ------------------------------------------------------------------
   6. CTA Button (Pink, White & Silver Metallic Luxury)
   ------------------------------------------------------------------ */
.spa-popup-cta-wrapper {
    width: 100%;
    text-align: center;
}

.spa-popup-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    padding: 16px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffb6c1 0%, #ffffff 42%, #f1f5f9 65%, #e7a391 100%);
    color: #2b1118 !important;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(255, 182, 193, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Shimmer shine effect */
.spa-popup-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.spa-popup-cta-btn:hover::before {
    left: 100%;
}

.spa-popup-cta-btn:hover,
.spa-popup-cta-btn:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 38px rgba(255, 182, 193, 0.65), 0 0 20px rgba(255, 255, 255, 0.5);
    color: #1a080d !important;
}

.spa-popup-cta-arrow {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.spa-popup-cta-btn:hover .spa-popup-cta-arrow {
    transform: translateX(4px);
}

.spa-popup-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.spa-popup-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 50px;
    background: #25d366;
    color: #ffffff !important;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: all 0.35s ease;
    cursor: pointer;
}

.spa-popup-whatsapp-btn:hover,
.spa-popup-whatsapp-btn:focus {
    background: #1eb954;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

.spa-popup-whatsapp-btn i {
    font-size: 18px;
}

.spa-popup-footer-trust {
    margin-top: 12px;
    font-size: 12px;
    color: #d1c1ca;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.spa-popup-footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e5d8df;
}

/* ------------------------------------------------------------------
   7. Keyframe Animations
   ------------------------------------------------------------------ */
@keyframes spaPinkSparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ------------------------------------------------------------------
   8. Responsive Behavior
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .spa-popup-overlay {
        padding: 16px 14px 40px;
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 20px));
        align-items: center;
    }
    .spa-popup-container {
        max-height: 84vh;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .spa-popup-backdrop-filter {
        padding: 28px 20px 24px;
        max-height: 84vh;
    }
    .spa-popup-title {
        font-size: 22px;
    }
    .spa-popup-subtitle {
        font-size: 13px;
    }
    .spa-popup-packages-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 18px;
    }
    .spa-popup-card {
        padding: 16px 16px 14px;
    }
    .spa-popup-card-name {
        font-size: 15px;
    }
    .spa-popup-price-val {
        font-size: 28px;
    }
    .spa-popup-services-list li {
        font-size: 13px;
        padding: 5px 0;
    }
    .spa-popup-cta-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    .spa-popup-whatsapp-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    .spa-popup-close-btn {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .spa-popup-overlay {
        padding: 12px 10px 48px;
        padding-bottom: calc(36px + env(safe-area-inset-bottom, 20px));
    }
    .spa-popup-container {
        max-height: 82vh;
        margin-bottom: 25px;
    }
    .spa-popup-backdrop-filter {
        max-height: 82vh;
        padding: 26px 16px 20px;
    }
    .spa-popup-title {
        font-size: 20px;
    }
    .spa-popup-badge-text {
        font-size: 11px;
        letter-spacing: 1px;
    }
    .spa-popup-footer-trust {
        font-size: 11px;
        gap: 8px;
    }
}
