/* ==========================================================================
   1. GLOBAL VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --primary-saffron: #FF6F00;
    --deep-gold: #FF9800;
    --warm-yellow: #FFC107;
    --divine-red: #D32F2F;
    --light-bg: #fffef0;
    --border-color: #ffe0b2;
}

* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.text-warning {
    color: var(--primary-saffron) !important;
}

.font-10 {
    font-size: 14px;
    color: #000;
    font-weight: 700;
}

/* Reusable Background Gradient */
.bg-light {
    background: linear-gradient(135deg, var(--warm-yellow) 0%, var(--primary-saffron) 100%) !important;
}

/* ==========================================================================
   2. HEADER, LOGO & HERO SECTION
   ========================================================================== */
.site-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.guru-title {
    display: flex;
    flex-direction: column;
}

.guru-title h3 {
    margin: 0;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: #000;
}

.guru-title .small-text {
    font-size: 12px;
    color: #444;
    margin-bottom: -3px;
}

.powered-logo .powered-text {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: -2px;
}

.card-hero {
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--light-bg) 100%) !important;
    border: 1px solid var(--border-color) !important;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.05);
}

/* ==========================================================================
   3. OWL CAROUSEL & IMAGES
   ========================================================================== */
.carousel-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.owl-carousel .item {
    padding: 5px;
}

.owl-carousel .item img {
    border-radius: 1rem;
    max-height: 250px;
}

.owl-theme .owl-dots .owl-dot span {
    background: transparent !important;
    border: 2px solid var(--deep-gold);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: var(--deep-gold) !important;
    border-color: var(--deep-gold);
}

/* Responsive Image Slider Heights */
@media (min-width: 992px) {
    .carousel-img {
        height: 500px;
        object-fit: cover;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .carousel-img {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .carousel-img {
        height: auto;
        max-height: 250px;
        object-fit: contain;
    }
}

/* ==========================================================================
   4. PACKAGE CARDS & ELEMENTS
   ========================================================================== */
.package {
    position: relative;
    background: #ffffff;
    border: 2px solid #f0f0f0 !important;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    min-height: 200px;
}

.package:hover, 
.package.selected {
    transform: translateY(-4px);
    border-color: var(--pkg-color, var(--primary-saffron)) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.package h5, 
.package .mt-4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Person Badge Pill */
.package .person-badge {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Custom Select Circle Checkmark */
.package .select-circle {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #aaa;
    background: #fff;
    display: inline-block;
    flex-shrink: 0;
}

.package.selected .select-circle {
    background: var(--pkg-color) url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.173 13.414a1 1 0 0 1-1.414 0L1.293 9.95a1 1 0 0 1 1.414-1.414l3.05 3.05 7.536-7.536a1 1 0 0 1 1.414 1.414L6.173 13.414z"/></svg>') center/13px no-repeat;
    border-color: var(--pkg-color);
}

/* Package Info Trigger Buttons */
.btn-info-pill {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 2px;
}

.btn-info-pill:hover {
    background: var(--primary-saffron);
    color: #ffffff;
    border-color: var(--primary-saffron);
}

.btn-info-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff3e0;
    color: var(--primary-saffron);
    border: 1px solid #ffe0b2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-info-circle:hover {
    background: var(--primary-saffron);
    color: #ffffff;
    transform: scale(1.15);
}

/* Package Footer & Price Display */
.package-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    min-height: 48px;
    width: 100%;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.2;
}

.price {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.package-footer img.package-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   5. PRODUCT LIST & CARDS
   ========================================================================== */
#productList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#productList .product-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.product-card {
    width: 100% !important;
    transition: all 0.3s ease;
    border: 1px solid #eee !important;
    max-width: 100% !important;
}

.product-card:hover {
    border-color: var(--warm-yellow) !important;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.15);
    transform: translateY(-3px);
}

.product-name {
    font-size: 14px;
    line-height: 1.2em;
    height: 2.4em;
    overflow: hidden;
}

.btn-add-slide {
    background-color: #fff !important;
    color: var(--primary-saffron) !important;
    border: 1.5px solid var(--primary-saffron) !important;
    font-weight: 700 !important;
}

.btn-add-slide:hover {
    background-color: var(--primary-saffron) !important;
    color: #fff !important;
}

/* ==========================================================================
   6. STICKY FOOTER & FLOATING POPOVER
   ========================================================================== */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #ffffff !important;
    padding: 10px 0;
    border-top: 3px solid var(--primary-saffron);
    box-sizing: border-box;
    overflow: visible !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

#footerInfo {
    font-family: 'Roboto', sans-serif;
    color: #222 !important;
}

#footerInfo strong {
    color: var(--primary-saffron);
}

.product-popover-wrapper, 
.product-icon-container {
    position: relative;
    display: inline-block;
}

.product-count-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    background: var(--divine-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid white;
}

.product-floating-card {
    display: none;
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 320px;
    background: white;
    border: 2px solid #ffe0b2;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.3);
}

.product-floating-card::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.product-icon-container:hover .product-floating-card {
    display: block;
    animation: popUp-v2 0.3s ease-out;
}

/* ==========================================================================
   7. BUTTONS & UI INTERACTION
   ========================================================================== */
.book-now-btn {
    background: linear-gradient(135deg, var(--warm-yellow) 0%, var(--primary-saffron) 100%) !important;
    border: none !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px;
    animation: pulse-orange 2s infinite;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #fff;
    border-radius: 10px !important;
    max-width: 100%;
}

.book-now-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 111, 0, 0.4);
    filter: brightness(1.05);
}

.book-now-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

.arrow-icon {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 22px;
    height: 16px;
    overflow: hidden;
    margin-left: 8px;
}

.arrow-icon i {
    position: absolute;
    font-size: 12px;
    color: #fff;
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shimmer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(12deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* ==========================================================================
   8. MODAL & CUSTOM CONTENT STYLING
   ========================================================================== */
.rendered-html-container {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.6;
}

.rendered-html-container img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 6px 0;
}

.rendered-html-container p {
    margin-bottom: 0.5rem;
}

.modal-price-tag {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-saffron);
}

.pooja-calendar, .pooja-venue {
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 700;
    margin-left: 8px;
    color: var(--divine-red) !important;
}

.leading-normal {
    color: #000000 !important;
}

/* Rating Badge Display */
.premium-rating-row {
    color: #000;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.divine-gold-star {
    font-size: 1.25rem;
    color: #FFB300;
    background: linear-gradient(135deg, #FFD700 0%, #FF9100 50%, #FF6F00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0px 2px 4px rgba(255, 145, 0, 0.4));
    animation: divineStarGlow 2.5s infinite ease-in-out;
}

.rating-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a202c;
}
.rating-count {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* User Profile Tray Circles */
.tray {
    display: flex;
    align-items: center;
    gap: -8px;
}
.circle-img-container {
    position: relative;
    width: 38px;
    height: 38px;
    margin-right: -10px;
}
.circle-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
}

.circle-img:hover {
    transform: scale(1.15);
    z-index: 2;
    border-color: var(--primary-saffron);
}

/* Countdown Box */
.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.time-box {
    background: #111;
    color: var(--primary-saffron);
    text-align: center;
    padding: 5px 10px;
    border-radius: 8px;
    min-width: 55px;
}

.time-box span {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
}

.time-box small {
    font-size: 0.7rem;
    color: #fff;
}

.premium-box {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.05);
    min-width: 65px;
    transition: all 0.3s ease;
}

.premium-box:hover {
    transform: translateY(-3px);
    border-color: var(--primary-saffron);
    box-shadow: 0 6px 15px rgba(255, 111, 0, 0.15);
}

.premium-box .number {
    font-size: 1.4rem;
    color: var(--primary-saffron);
    display: block;
    font-family: 'Poppins', sans-serif;
}

.premium-box .time-label {
    font-size: 0.75rem;
    color: #E65100;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   9. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes shine {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 111, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

@keyframes doubleSlide {
    0% { transform: translateX(-15px); opacity: 0; }
    25% { transform: translateX(0); opacity: 1; }
    55% { transform: translateX(0); opacity: 1; }
    80% { transform: translateX(15px); opacity: 0; }
    100% { transform: translateX(-15px); opacity: 0; }
}

@keyframes popUp-v2 {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes divineStarGlow {
    0% { transform: scale(1); filter: drop-shadow(0px 1px 3px rgba(255, 145, 0, 0.4)); }
    50% { transform: scale(1.18) rotate(6deg); filter: drop-shadow(0px 0px 10px rgba(255, 215, 0, 0.95)) drop-shadow(0px 2px 6px rgba(255, 111, 0, 0.6)); }
    100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0px 1px 3px rgba(255, 145, 0, 0.4)); }
}

@keyframes pulseGlow {
    0% { opacity: 0.9; }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(255, 111, 0, 0.4); }
    100% { opacity: 0.9; }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-glow { animation: pulseGlow 2s infinite ease-in-out; }
.pulse-glow-fast { animation: pulseGlow 1s infinite ease-in-out; }
.spinning-icon { display: inline-block; animation: spinSlow 8s infinite linear; }

.shake { animation: shake 0.3s ease-in-out; }
.is-invalid { border-color: #dc3545 !important; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================================================================
   10. MEDIA QUERIES & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (min-width: 768px) {
    #productList {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-floating-card {
        width: 350px;
        bottom: 70px;
    }
    .sticky-bar {
        padding: 15px 0;
    }
    .product-card {
        max-width: 350px;
    }
    .divine-gold-star { font-size: 1.5rem; }
    .rating-number { font-size: 1.3rem; }
    .rating-count { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .guru-title h3 { font-size: 16px; }
    .site-logo { height: 60px; }
    .book-now-btn {
        height: 52px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    .sticky-bar .container-fluid { padding: 0 10px; }
    .sticky-bar .row { flex-wrap: nowrap; }
    #footerInfo div:first-child {
        max-width: 120px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-floating-card {
        width: 240px;
        right: -50px;
        left: auto;
        transform: none;
        bottom: 55px;
    }
    .product-count-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    .time-box {
        min-width: 45px;
        padding: 4px;
    }
    .time-box span { font-size: 1.1rem; }
}
/* Trust Badges in Modal 2 */
.trust-badge-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #334155;
    font-weight: 600;
}
/* Countdown Timer Styling */
.countdown-container .premium-box {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    padding: 6px 10px;
    border-radius: 10px;
    min-width: 52px;
}

.countdown-container .number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-saffron);
}

.countdown-container .time-label {
    font-size: 0.68rem;
    color: #E65100;
    text-transform: uppercase;
    font-weight: 700;
}