/**
 * ====================================================================
 * MAROLINA SPA - PREMIUM PROMOTIONAL OFFER POPUP STYLES
 * Theme: Luxury Obsidian Dark Green, Light Sage Green & Champagne Gold
 * ====================================================================
 * Deep Obsidian Glass, Soft Light Sage Highlights, Champagne Metallic Gold & Crisp Pearl White.
 */

/* ------------------------------------------------------------------
   1. Popup Overlay / Backdrop
   ------------------------------------------------------------------ */
.spa-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 21, 19, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    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 & Light Green Gold 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(197, 168, 128, 0.45),
                0 0 45px rgba(155, 196, 178, 0.22),
                0 0 25px rgba(197, 168, 128, 0.25);
    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 Obsidian Dark Green Glass Overlay */
.spa-popup-backdrop-filter {
    background: linear-gradient(
        145deg,
        rgba(26, 36, 33, 0.96) 0%,
        rgba(18, 26, 24, 0.94) 50%,
        rgba(12, 18, 16, 0.98) 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(197, 168, 128, 0.28);
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 168, 128, 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(197, 168, 128, 0.35);
    border-radius: 10px;
}

/* ------------------------------------------------------------------
   3. Close Button (Light Green & Gold 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(197, 168, 128, 0.45);
    color: #FDFBF7;
    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(197, 168, 128, 0.25);
    border-color: #DFCAAC;
    color: #DFCAAC;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 18px rgba(197, 168, 128, 0.5), 0 0 8px rgba(155, 196, 178, 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 Light Sage Green & Gold */
.spa-popup-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 18px;
    background: rgba(155, 196, 178, 0.14);
    border: 1px solid rgba(197, 168, 128, 0.45);
    border-radius: 50px;
    margin-bottom: 10px;
    box-shadow: 0 0 16px rgba(155, 196, 178, 0.2), 0 0 8px rgba(197, 168, 128, 0.22);
}

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

.spa-popup-badge-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #DFCAAC;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 8px rgba(197, 168, 128, 0.35);
}

/* Title with Champagne Gold & Light Sage Shimmer */
.spa-popup-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 600;
    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%, #DFCAAC 40%, #B8D8C8 75%, #C5A880 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(197, 168, 128, 0.3));
}

.spa-popup-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #C5D5CF;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ------------------------------------------------------------------
   5. Offer Packages (Obsidian, Light Green & Gold 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(34, 47, 42, 0.65);
    border: 1px solid rgba(197, 168, 128, 0.3);
    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(155, 196, 178, 0.08);
}

.spa-popup-card:hover {
    transform: translateY(-4px);
    border-color: #C5A880;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(197, 168, 128, 0.35), 0 0 12px rgba(155, 196, 178, 0.25);
    background: rgba(42, 59, 53, 0.75);
}

.spa-popup-card-popular {
    border-color: rgba(197, 168, 128, 0.65);
    background: rgba(38, 53, 48, 0.85);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 18px rgba(197, 168, 128, 0.22);
}

/* Light Green & Gold Best Value Tag */
.spa-popup-card-tag {
    position: absolute;
    top: -11px;
    right: 18px;
    background: linear-gradient(135deg, #DFCAAC 0%, #C5A880 50%, #8FB8A5 100%);
    color: #121A18;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    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(197, 168, 128, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.spa-popup-card-header {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(197, 168, 128, 0.28);
    margin-bottom: 14px;
}

.spa-popup-card-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 600;
    color: #F8F5EE;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

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

/* Price Value in Champagne Gold & Soft Light Green */
.spa-popup-price-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #DFCAAC 45%, #A3C9B8 75%, #C5A880 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(197, 168, 128, 0.35));
}

.spa-popup-price-unit {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #C5A880;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(197, 168, 128, 0.3);
}

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

.spa-popup-services-list li {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 400;
    padding: 7px 0;
    border-bottom: 1px solid rgba(197, 168, 128, 0.12);
}

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

.spa-popup-bullet-icon {
    color: #A3C9B8;
    font-size: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(163, 201, 184, 0.7));
}

/* ------------------------------------------------------------------
   6. CTA Button (Signature Luxury Gold Gradient)
   ------------------------------------------------------------------ */
.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, #DFCAAC 0%, #C5A880 50%, #A48358 100%);
    color: #1A2421 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(197, 168, 128, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.4) 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);
    background: linear-gradient(135deg, #EAD7BE 0%, #D4B892 50%, #B09167 100%);
    box-shadow: 0 14px 38px rgba(197, 168, 128, 0.65), 0 0 20px rgba(163, 201, 184, 0.4);
    color: #121A18 !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: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    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: #20BA56;
    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: #B8C7C1;
    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: #DFCAAC;
}

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

/* Backward compatibility keyframe alias */
@keyframes spaPinkSparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.9);
        color: #A3C9B8;
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        color: #DFCAAC;
    }
}

/* ------------------------------------------------------------------
   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;
    }
}
