:root {
    --color-saffron: #FF9933;
    --color-saffron-dark: #cc7a29;
    --color-gold: #D4AF37;
    --color-gold-light: #f1d592;
    --color-black: #1A1110;
    --color-black-light: #2c1e1c;
    --color-white: #FFFFFF;
    --color-cream: #FDFBF7;
    --shadow-premium: 0 10px 30px rgba(0,0,0,0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-black);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modal Core Overrides */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Slightly darker backdrop */
    backdrop-filter: blur(8px);
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Background Scroll Lock */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Step-Based Rendering */
.checkout-step-content {
    display: none; /* Hide all steps by default */
}

.checkout-step-content.active {
    display: block; /* Show only the active step */
}

.checkout-body {
    padding: 25px 25px 35px;
    max-height: 80vh;
    overflow-y: auto;
}

/* --- Sticky CTA --- */
.sticky-cta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-saffron);
    color: white;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: var(--transition-smooth);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta p {
    margin-right: 20px;
    font-size: 0.9rem;
}

.sticky-cta span {
    color: var(--color-black);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-saffron), var(--color-saffron-dark));
    color: white;
    box-shadow: 0 8px 15px rgba(255, 153, 51, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(255, 153, 51, 0.6);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-black);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../assets/hero-temple.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    color: white;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 17, 16, 0.6), rgba(26, 17, 16, 0.85));
}

nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-saffron);
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-saffron);
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--color-gold);
    font-style: italic;
    font-size: 0.8em;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-urgency {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--color-gold-light);
}

.hero-urgency p {
    margin-bottom: 5px;
}

.timer-sub {
    font-size: 0.85rem;
    opacity: 0.8;
}

.timer-bold {
    color: var(--color-saffron);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* --- How It Works --- */
.how-it-works {
    padding: 100px 20px;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.step {
    text-align: center;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--color-saffron);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 25px;
}

/* --- Order Bump --- */
.order-bump {
    background: #FFF9F2;
    border: 2px dashed var(--color-saffron);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.bump-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.bump-header input {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.bump-header label {
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0px !important;
}

.order-bump p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.order-bump span {
    color: var(--color-saffron-dark);
    font-weight: 700;
}

/* --- Trust Bar --- */
.trust-bar {
    background-color: var(--color-black);
    color: white;
    padding: 30px 0;
}

.bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.trust-item .icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 1s forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

/* --- Product Section --- */
.product-section {
    padding: 100px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

.badge-exclusive {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-gold);
    color: var(--color-black);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--color-black);
}

.section-title.white {
    color: var(--color-white);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-saffron);
    margin-bottom: 30px;
}

.old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #888;
    margin-left: 10px;
}

.discount {
    font-size: 0.9rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 4px;
    margin-left: 10px;
}

.whats-included {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-bottom: 40px;
}

.whats-included h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.whats-included ul {
    list-style: none;
}

.whats-included li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.btn-full {
    width: 100%;
    font-size: 1.1rem;
    padding: 20px;
}

.secure-text {
    margin-top: 15px;
    font-size: 0.8rem;
    text-align: center;
    color: #666;
}

/* --- Emotional Section --- */
.emotional-section {
    background: linear-gradient(rgba(26, 17, 16, 0.95), rgba(26, 17, 16, 0.95)), url('../assets/hero-temple.png') center/cover fixed;
    color: white;
    padding: 100px 20px;
}

.text-center { text-align: center; }

.subheading {
    color: var(--color-saffron);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.story-text {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px);
}

.feature-card img {
    height: 65px;
    width: auto;
    margin: 0 auto 25px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--color-gold);
}

/* --- Reviews --- */
.reviews-section {
    padding: 100px 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stars {
    color: var(--color-gold);
    margin-bottom: 15px;
}

.reviewer {
    margin-top: 20px;
    font-weight: 600;
    color: var(--color-black);
}

/* --- FAQ --- */
.faq-section {
    padding: 100px 20px;
    background: var(--color-cream);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--color-saffron-dark);
}

/* --- Footer --- */
footer {
    padding: 80px 20px 40px;
    border-top: 1px solid #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* --- Responsive Updates --- */
@media (max-width: 992px) {
    .product-grid, .feature-grid, .reviews-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .section-title { font-size: 2.2rem; }
}

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

/* --- Mock Payment UI --- */
.test-notice {
    color: #d0021b;
    font-weight: 700;
    font-size: 0.8rem;
    margin: 0;
}

.mock-card-container {
    background: #fcfcfc;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.mock-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mock-input-wrapper input {
    padding-right: 45px;
}

.mock-input-wrapper img {
    position: absolute;
    right: 15px;
    opacity: 0.7;
}

/* Spinner */
/* --- PREMIUM CHECKOUT UI OVERHAUL --- */
.premium-ui {
    background: #ffffff !important;
    border-radius: 20px !important;
    max-width: 420px !important;
    margin: 20px auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    position: relative;
    overflow: hidden;
    text-align: left !important;
}

.checkout-header-premium {
    background: #FFF9F2;
    padding: 35px 20px 25px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.premium-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-black);
    margin: 0 0 5px 0;
}

.premium-subtitle {
    font-size: 0.9rem;
    color: var(--color-saffron);
    font-weight: 500;
    margin-bottom: 25px;
}

/* Visual Progress Bar Stepper */
.checkout-progress-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 280px;
    margin: 0 auto 30px;
    padding-top: 5px;
}

.progress-line-bg {
    position: absolute;
    top: 17px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    width: 0%;
    background: var(--color-saffron);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-icon-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.step-icon-item.active .step-circle {
    background: var(--color-saffron);
    border-color: var(--color-saffron);
    color: white;
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.3);
}

.step-icon-item.active .step-label {
    color: var(--color-saffron);
}

.step-icon-item.completed .step-circle {
    background: var(--color-saffron);
    border-color: var(--color-saffron);
    color: white;
}

/* Form Styles */
.checkout-body {
    padding: 25px 25px 35px;
    max-height: 80vh;
    overflow-y: auto;
}

.form-group-spaced {
    margin-bottom: 18px;
}

.form-group-spaced label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-group-spaced input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.25s ease;
    background: #fbfbfb;
    font-family: inherit;
}

.form-group-spaced input:focus {
    outline: none;
    border-color: var(--color-saffron);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

/* Trust & Urgency */
.trust-check-lines {
    margin: 20px 0 15px;
    text-align: center;
}

.trust-check-lines p {
    color: #2e7d32;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.urgency-highlight {
    color: #d0021b;
    font-size: 1rem;
    margin: 15px 0;
    text-align: center;
}

/* CTA Button */
.btn-pill-gradient {
    background: linear-gradient(135deg, #FF9933 0%, #FF6600 100%) !important;
    border-radius: 50px !important;
    padding: 18px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: white !important;
    width: 100%;
    box-shadow: 0 6px 15px rgba(255, 102, 0, 0.25) !important;
    border: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease !important;
    position: relative;
}

.btn-pill-gradient:active {
    transform: scale(0.97);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.2) !important;
}

.secure-checkout-text {
    font-size: 0.75rem;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

/* Payment Icons */
.payment-icon-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    opacity: 0.75;
}

.payment-icon-strip img {
    height: 18px;
    width: auto;
}

/* Stripe-Inspired Step 2 UI */
.stripe-summary-card {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.prod-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-thumb-small {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.price-val { font-weight: 600; color: #333; }

.summary-bump-lite {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff4e6;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.85rem;
}

.summary-bump-lite label { font-weight: 600; cursor: pointer; color: #444; }
.bump-price { font-weight: 700; color: var(--color-saffron); }

.free-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.total-row {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.bold-total { font-weight: 800; color: #000; }

/* Payment Section Styling */
.payment-section-premium {
    text-align: left;
    margin-top: 30px;
}

.payment-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
}

.stripe-input-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.stripe-field {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.stripe-field:last-child { border-bottom: none; }

.stripe-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stripe-field input {
    width: 100%;
    border: none !important;
    padding: 0 !important;
    font-size: 1rem !important;
    font-weight: 500;
    background: transparent !important;
}

.stripe-field input:focus { box-shadow: none !important; }

.stripe-row {
    display: flex;
    border-top: 1px solid #f0f0f0;
}

.stripe-row .stripe-field {
    flex: 1;
    border-bottom: none;
}

.stripe-row .stripe-field:first-child { border-right: 1px solid #f0f0f0; }

.input-with-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-icons-inline {
    display: flex;
    gap: 5px;
}

.card-icons-inline img {
    height: 12px;
    opacity: 0.8;
}

/* Trust & Badges */
.payment-trust-badges {
    margin: 20px 0;
    text-align: center;
}

.payment-trust-badges p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.urgency-highlight-lite {
    color: #d0021b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
}

.safe-info-text-small {
    font-size: 0.7rem;
    color: #999;
    margin-top: 12px;
    text-align: center;
}

/* Step-specific Mobile Fixes */
@media (max-width: 480px) {
    .modal {
        padding: 0;
    }
    
    .premium-ui {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .checkout-body {
        height: calc(100vh - 160px) !important; /* Adjust based on header height */
        max-height: none !important;
        padding: 20px 15px 30px;
    }
}
