* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --midnight: #202320;
    --charcoal: #2c2c2c;
    --warm-charcoal: #3a3a3a;
    --warm-cream: #E8EDE8;
    --sage-green: #a00d2e;
    --muted-sage: #850b27;
    --accent-gold: #a00d2e;
    --soft-brown: #5e615e;
    --paper-white: #f5f7f5;
    --subtle-shadow: rgba(0, 0, 0, 0.12);
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--warm-cream) 0%, #d8ddd8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--sage-green);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
    letter-spacing: 0.1em;
}

.loading-animation {
    position: relative;
    width: 100px;
    height: 100px;
}

.loading-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(160, 13, 46, 0.2);
    border-top: 4px solid var(--sage-green);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loading-inner-circle {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border: 3px solid rgba(160, 13, 46, 0.3);
    border-right: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.loading-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--sage-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

/* Payment Loading Text Transitions */
#loadingText {
    transition: opacity 0.3s ease-in-out;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--warm-cream);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.loading {
    overflow: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Navigation */
nav {
    background: rgba(232, 237, 232, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(94, 97, 94, 0.1);
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(232, 237, 232, 0.98);
    box-shadow: 0 4px 20px var(--subtle-shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    color: var(--charcoal);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--sage-green);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage-green);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--sage-green);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Basket Dropdown */
.basket-container {
    position: relative;
}

.basket-button {
    background: var(--sage-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.basket-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.basket-button:hover {
    transform: translateY(-3px);
    background: var(--muted-sage);
    box-shadow: 0 12px 30px rgba(160, 13, 46, 0.4);
}

.basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    border: 2px solid var(--paper-white);
}

.basket-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background: var(--paper-white);
    border-left: 1px solid rgba(94, 97, 94, 0.15);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 450px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
}

.basket-dropdown.show {
    transform: translateX(0);
}

.basket-header {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--sage-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.basket-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--soft-brown);
    padding: 1rem;
    margin: -0.5rem;
    border-radius: 6px;
    transition: color 0.3s ease;
    position: relative;
    overflow: visible;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-close:hover {
    color: #ff4444;
}

.basket-close:active {
    color: #ff0000;
}

.basket-items {
    max-height: 300px;
    overflow-y: auto;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(94, 97, 94, 0.08);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    transform: translateX(0);
}

.basket-item.removing {
    transform: translateX(-100%);
    opacity: 0;
}

.basket-item:last-child {
    border-bottom: none;
}

.basket-item-info {
    flex: 1;
}

.basket-item-name {
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: break-word;
}

.basket-item-price {
    font-size: 0.9rem;
    color: var(--sage-green);
    font-weight: 600;
}

.basket-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease;
    font-size: 1.3rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    font-weight: bold;
}

.basket-item-remove:hover {
    opacity: 1;
    color: #ff4444;
}

.basket-item-remove:active {
    color: #ff0000;
}

.basket-empty {
    text-align: center;
    color: var(--soft-brown);
    padding: 2rem 0;
    font-style: italic;
}

.basket-total {
    border-top: 2px solid var(--sage-green);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.basket-checkout {
    background: var(--accent-gold);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.basket-checkout:hover {
    background: #a68653;
    transform: translateY(-2px);
}

.basket-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}


.cta-button {
    background: var(--sage-green);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: var(--muted-sage);
    box-shadow: 0 12px 30px rgba(160, 13, 46, 0.4);
}

/* UPDATED: Simplified single wave animation for add to basket confirmation */
.add-to-basket::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--sage-green);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.add-to-basket .button-text {
    position: relative;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.add-to-basket .button-text-added {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}

/* When item is added to basket - single wave in and stay golden */
.add-to-basket.in-basket::before {
    background: var(--accent-gold);
    left: 0%;
}

.add-to-basket.in-basket .button-text {
    opacity: 0;
}

.add-to-basket.in-basket .button-text-added {
    opacity: 1;
}

/* When item is being added (animation trigger) */
.add-to-basket.wave-success::before {
    background: var(--accent-gold);
    left: 0%;
}

.add-to-basket.wave-success .button-text {
    opacity: 0;
}

.add-to-basket.wave-success .button-text-added {
    opacity: 1;
}

/* When trying to add item already in basket - no color change */
.add-to-basket.wave-already::before {
    background: var(--accent-gold);
    left: 0%;
}

.add-to-basket.wave-already .button-text {
    opacity: 0;
}

.add-to-basket.wave-already .button-text-added {
    opacity: 1;
}

/* When item is being removed - single wave out */
.add-to-basket.wave-remove::before {
    background: var(--accent-gold);
    left: -100%;
}

.add-to-basket.wave-remove .button-text {
    opacity: 1;
}

.add-to-basket.wave-remove .button-text-added {
    opacity: 0;
}

/* Canvas Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Scroll Progress Bar - ULTRA SMOOTH */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 4px;
    background: rgba(160, 13, 46, 0.1);
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: opacity; /* Optimize for animations */
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --progress: 0;
}

#scroll-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--sage-green), var(--accent-gold));
    transform: scaleX(var(--progress, 0));
    transform-origin: left center;
    will-change: transform;
    box-shadow: 0 2px 8px rgba(160, 13, 46, 0.3);
    transition: transform 0.05s linear; /* Very fast for smoothness */
}

#scroll-progress-bar.visible {
    opacity: 1;
}

/* Hero section elements are immediately visible */
.hero .hero-content * {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Scroll-triggered elements start hidden */
.reports-section .section-header,
.reports-section .report-card,
.features-section .section-header,
.features-section .feature,
.faq-section .faq-heading,
.faq-section .faq-column,
.faq-section .faq-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When elements become visible during scroll */
.reports-section .section-header.scroll-visible,
.reports-section .report-card.scroll-visible,
.features-section .section-header.scroll-visible,
.features-section .feature.scroll-visible,
.faq-section .faq-heading.scroll-visible,
.faq-section .faq-column.scroll-visible,
.faq-section .faq-item.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Layout - Ensures perfect viewport coverage */
section {
    scroll-margin-top: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--warm-cream) 0%, #d8ddd8 100%);
    padding: 8rem clamp(1rem, 4vw, 4rem) 4rem;
    overflow: hidden;
    box-sizing: border-box;
}


.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--charcoal);
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1s ease-out 0.2s forwards;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--soft-brown);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1s ease-out 0.4s forwards;
}

.confidence-section {
    background: var(--paper-white);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 20px var(--subtle-shadow);
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1s ease-out 0.6s forwards;
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
    text-align: center;
}

.confidence-item {
    text-align: center;
}

.confidence-item h3 {
    font-size: 1.8rem;
    color: var(--sage-green);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.confidence-item p {
    color: var(--soft-brown);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.hero .cta-wrapper {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1s ease-out 0.8s forwards;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reports Section */
.reports-section {
    min-height: 100vh;
    padding: 8rem clamp(1rem, 4vw, 4rem);
    background: var(--paper-white);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-top: -3.5rem;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--charcoal);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--soft-brown);
    font-weight: 400;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.report-card {
    background: var(--warm-cream);
    border: 1px solid rgba(94, 97, 94, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.report-card:nth-child(1) { transition-delay: 0.1s; }
.report-card:nth-child(2) { transition-delay: 0.2s; }
.report-card:nth-child(3) { transition-delay: 0.3s; }

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-green), var(--accent-gold));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.report-card:hover::before {
    transform: translateX(0);
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(160, 13, 46, 0.3);
}

.report-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--sage-green), var(--muted-sage));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.report-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.report-card:hover .report-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(160, 13, 46, 0.3);
}

.report-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-weight: 600;
}

.report-card p {
    color: var(--soft-brown);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sage-green);
    margin-bottom: 1.5rem;
    display: block;
    text-align: left;
}

.report-card .cta-button {
    margin-top: auto;
    align-self: flex-start;
}

/* Features Section - Enhanced Visual Identity */
.features-section {
    min-height: 100vh;
    padding: 8rem clamp(1rem, 4vw, 4rem);
    background: linear-gradient(135deg, var(--midnight) 0%, var(--charcoal) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.features-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(160, 13, 46, 0.1) 100px, rgba(160, 13, 46, 0.1) 200px);
    pointer-events: none;
}

.features-section .section-header h2 {
    color: var(--paper-white);
}

.features-section .section-header p {
    color: rgba(245, 247, 245, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.features-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature {
    text-align: left;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--sage-green);
    transition: height 0.4s ease;
}

.feature:hover::before {
    height: 100%;
}

.feature:hover {
    padding-left: 1.5rem;
}

.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.2s; }
.feature:nth-child(3) { transition-delay: 0.3s; }

.features-right {
    position: relative;
    height: 700px;
    aspect-ratio: 794 / 1123;
    max-width: 100%;
    background: rgba(245, 247, 245, 0.05);
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(160, 13, 46, 0.2), 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: none;
    backdrop-filter: blur(10px);
}

.features-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage-green), transparent);
}

.report-preview {
    width: 100%;
    height: 100%;
    border: none;
}

.report-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--soft-brown);
    text-align: center;
    padding: 2rem;
}

.report-preview-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--paper-white);
}

.report-preview-placeholder p {
    color: rgba(245, 247, 245, 0.7);
}

/* Slideshow Styles */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-white);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.slide-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(245, 247, 245, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(160, 13, 46, 0.5);
}

.indicator:hover {
    background: rgba(245, 247, 245, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--sage-green);
    border-color: var(--sage-green);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--paper-white);
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature:hover h3 {
    color: var(--sage-green);
}

.feature p {
    color: rgba(245, 247, 245, 0.75);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    min-height: auto;
    padding: 3rem clamp(1rem, 4vw, 4rem);
    text-align: center;
    background: var(--charcoal);
    color: var(--warm-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-section .cta-button {
    background: var(--sage-green);
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 2rem;
    align-items: stretch;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--warm-cream);
    border-radius: 4px;
    background: transparent;
    color: var(--warm-cream);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(232, 237, 232, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--sage-green);
    background: rgba(232, 237, 232, 0.05);
}

.newsletter-button {
    padding: 1rem 2rem;
    background: var(--sage-green);
    color: var(--warm-cream);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: var(--muted-sage);
    transform: translateY(-2px);
}

.newsletter-button:active {
    transform: translateY(0);
}

/* Footer - FIXED LAYOUT */
footer {
    background: var(--midnight);
    color: var(--warm-cream);
    padding: 4rem clamp(1rem, 4vw, 4rem) 2rem;
    text-align: center;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--warm-cream);
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    list-style: none;
    gap: 2rem;
}

.footer-links a {
    color: rgba(232, 237, 232, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--sage-green);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 237, 232, 0.1);
    color: rgba(232, 237, 232, 0.6);
    font-size: 0.9rem;
}

/* FAQ Section Styles - Clean White Background */
.faq-section {
    min-height: 100vh; /* Make the FAQ section fill the entire viewport */
    padding: 10rem clamp(1rem, 4vw, 4rem) 8rem;
    background: var(--paper-white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(74, 93, 35, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(141, 110, 99, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(46, 125, 50, 0.02) 0%, transparent 50%);
    animation: float-bg 20s cubic-bezier(0.4, 0, 0.2, 1) infinite; /* Smoother animation */
    z-index: 0;
}

@keyframes float-bg {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(20px) translateY(-30px) rotate(1deg); }
    50% { transform: translateX(-20px) translateY(20px) rotate(2deg); }
    75% { transform: translateX(25px) translateY(10px) rotate(1deg); }
}

.faq-heading {
    text-align: center;
    margin-top: -5.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.faq-heading h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--charcoal);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-column.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item {
    background: var(--warm-cream);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(62, 39, 35, 0.08);
    border: 2px solid rgba(74, 93, 35, 0.1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    /* GPU acceleration for ultra-smooth performance */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, background, border-color;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--sage-green) 0%,
        var(--accent-gold) 50%,
        var(--sage-green) 100%);
    background-size: 300% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 24px 24px 0 0;
    animation: shimmer 6s ease-in-out infinite;
    will-change: transform, background-position;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}

.faq-item:hover::before {
    transform: scaleX(1);
    animation: none;
}

.faq-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(74, 93, 35, 0.15);
    border-color: rgba(74, 93, 35, 0.3);
}

.faq-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(141, 110, 99, 0.002));
    border-color: rgba(74, 93, 35, 0.1);
    box-shadow: 0 10px 40px rgba(62, 39, 35, 0.08);
    transform: translateY(-8px);
}

.faq-item.active:hover {
    box-shadow: 0 20px 50px rgba(74, 93, 35, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(141, 110, 99, 0.002));
    border-color: rgba(107, 134, 87, 0.4);
}

.faq-item.active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--sage-green), var(--accent-gold));
    animation: none;
}

.faq-question {
    padding: 1.75rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--charcoal);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    line-height: 1.4;
    gap: 1.5rem;
    will-change: color;
    transition: color 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-question:hover {
    color: var(--sage-green);
}

.faq-question::after {
    content: '\▼'; /* Unicode for down arrow (▼) */
    font-size: 1rem; /* Smaller font size for the arrow */
    color: #4a5d23;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 93, 35, 0.1), rgba(46, 125, 50, 0.08));
    box-shadow: 0 4px 15px rgba(74, 93, 35, 0.15);
    font-weight: 300;
    will-change: transform, background, color;
    /* Closing speed (faster) */
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-question.active::after {
    content: '\▲'; /* Unicode for up arrow (▲) */
    transform: scale(1.1);
    color: #fffef7;
    background: linear-gradient(135deg, #4a5d23, #2e7d32);
    box-shadow: 0 6px 20px rgba(74, 93, 35, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* Opening speed (slower) */
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-question.active {
    color: var(--soft-brown);
}

.faq-answer {
    overflow: hidden;
    padding: 0 1.75rem;
    color: var(--soft-brown);
    background: linear-gradient(180deg, transparent, rgba(74, 93, 35, 0.02));
    /* Slower opening, faster closing */
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    will-change: max-height, opacity, transform;
    /* Closing speed (faster) */
    transition:
        max-height 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        padding 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-answer.show {
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
    padding: 0.25rem 1.75rem 2rem;
    /* Opening speed (slower) */
    transition:
        max-height 1.2s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
        padding 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* All FAQ animations now perfectly synchronized with ultra-smooth easing */

.faq-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.faq-answer a {
    color: var(--sage-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* Responsive design for FAQ section */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-section {
        padding: 8rem clamp(1rem, 4vw, 4rem) 6rem;
    }
}

/* Enhanced Stripe Checkout Modal */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.checkout-overlay.show {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    background: var(--paper-white);
    border-radius: 16px;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    max-height: calc(100vh - 4rem);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.95) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(107, 134, 87, 0.1);
    margin: auto;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .checkout-modal {
        width: 90%;
        max-width: 1400px;
        min-height: 650px;
    }
}

@media (min-width: 1200px) {
    .checkout-modal {
        width: 85%;
        max-width: 1600px;
        min-height: 700px;
    }
}

.checkout-overlay.show .checkout-modal {
    transform: scale(1) translateY(0);
}

.checkout-content {
    flex: 1;
    padding: 2rem;
    display: grid !important;
    grid-template-columns: 1fr 450px !important;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
}

.checkout-left-side {
    display: flex !important;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: calc(100vh - 200px);
    padding-right: 1rem;
}

.checkout-right-side {
    display: block !important;
}

.checkout-right-side {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
    padding: 0;
}

.order-summary-container {
    width: 100%;
    max-width: 450px;
}

.order-summary-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.order-pay-button {
    width: 100%;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--muted-sage) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
    font-family: inherit;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(107, 134, 87, 0.1);
    will-change: transform, box-shadow;
}

.order-pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 134, 87, 0.2);
}

.order-pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(204, 204, 204, 0.1);
}

.order-total {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.order-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.order-total-line.total {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a1a1a;
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.billing-address-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .billing-address-form {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .checkout-content {
        gap: 4rem;
        padding: 4rem;
    }

    .checkout-left-side {
        gap: 3.5rem;
    }
}

@media (max-width: 900px) {
    .checkout-content {
        grid-template-columns: 1fr !important;
        padding: 2rem;
        grid-template-rows: auto auto;
        gap: 2rem;
    }

    .checkout-modal {
        min-height: auto;
        max-height: 90vh;
    }

    .checkout-left-side {
        gap: 2.5rem;
        max-height: none;
        overflow-y: visible;
        order: 1;
    }

    .checkout-right-side {
        order: 2;
        padding: 1rem 0;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .checkout-content {
        padding: 1.5rem;
        gap: 1.5rem !important;
    }

    .checkout-section {
        padding: 1.5rem;
    }

    .checkout-left-side {
        gap: 1.5rem;
        max-height: none;
        padding-right: 0;
    }

    .customer-form {
        grid-template-columns: 1fr;
    }

    .checkout-header {
        padding: 1.5rem;
    }

    .checkout-header h2 {
        font-size: 1.3rem;
    }

    .checkout-header h2 img {
        width: 22px;
        height: 22px;
    }
}

/* Custom scrollbar for checkout left side */
.checkout-left-side::-webkit-scrollbar {
    width: 6px;
}

.checkout-left-side::-webkit-scrollbar-track {
    background: rgba(160, 13, 46, 0.1);
    border-radius: 3px;
}

.checkout-left-side::-webkit-scrollbar-thumb {
    background: var(--sage-green);
    border-radius: 3px;
}

.checkout-left-side::-webkit-scrollbar-thumb:hover {
    background: var(--muted-sage);
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3rem 1.5rem;
    border-bottom: 1px solid rgba(107, 134, 87, 0.1);
    background: linear-gradient(135deg,
        rgba(107, 134, 87, 0.03) 0%,
        rgba(184, 150, 95, 0.02) 100%);
}

@media (min-width: 1024px) {
    .checkout-header {
        padding: 3rem 4rem 2rem;
    }
}

.checkout-header h2 {
    color: var(--charcoal);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-header h2 img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.checkout-close {
    background: rgba(160, 13, 46, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--sage-green);
    font-size: 1.25rem;
    font-weight: 600;
}

.checkout-close:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    transform: scale(1.1);
}

.checkout-section {
    padding: 1.75rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-section:not(:last-child) {
    border-bottom: none;
}

.checkout-section.full-width {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .checkout-section {
        padding: 2rem 2.5rem;
        margin-bottom: 0;
    }
}

.checkout-section h3 {
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Styles */
.customer-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(107, 134, 87, 0.1);
}

.form-group input.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: shake 0.6s ease-in-out;
}

.form-group input.error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
}


.form-group input.success {
    border-color: var(--sage-green) !important;
    background: rgba(107, 134, 87, 0.02) !important;
    box-shadow: 0 0 0 3px rgba(107, 134, 87, 0.1) !important;
}

.form-group input.success:focus {
    border-color: var(--sage-green) !important;
    box-shadow: 0 0 0 3px rgba(107, 134, 87, 0.15) !important;
}

/* Stripe Elements */
.stripe-element {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.stripe-element:focus-within {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(107, 134, 87, 0.1);
}

.stripe-element--invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: shake 0.6s ease-in-out;
}

.stripe-element--complete {
    border-color: var(--sage-green) !important;
    background: rgba(107, 134, 87, 0.02) !important;
    box-shadow: 0 0 0 3px rgba(107, 134, 87, 0.1) !important;
}

/* Add spacing above card details section */
.form-group:has(#card-element) {
    margin-top: 2rem;
}

/* Payment Button Section */
.payment-section {
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, rgba(107, 134, 87, 0.03), rgba(184, 150, 95, 0.02));
    border-top: 2px solid rgba(107, 134, 87, 0.1);
    margin-top: auto;
}

.payment-button {
    width: 100%;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--muted-sage) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 32px rgba(107, 134, 87, 0.25);
    transform: translateY(0);
}

.payment-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(107, 134, 87, 0.3);
}

.payment-button:disabled {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.payment-button .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

.payment-button.loading .spinner {
    display: inline-block;
}

.payment-button .button-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.payment-security-section {
    padding: 2rem;
    background: var(--paper-white);
    border-top: 1px solid rgba(107, 134, 87, 0.1);
}

.payment-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.security-badge {
    background: rgba(160, 13, 46, 0.1);
    color: var(--sage-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(107, 134, 87, 0.2);
}

.security-details {
    color: var(--soft-brown);
    font-size: 0.8rem;
    opacity: 0.8;
}

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(252, 226, 226, 0.95));
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    display: none;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    position: relative;
    font-weight: 500;
    text-align: center;
}

.error-message::before {
    content: "⚠️";
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.error-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: errorSlideIn 0.4s ease-out;
}

@keyframes errorSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.success-checkmark {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--sage-green);
    position: relative;
    margin: 0 auto 1.5rem;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(107, 134, 87, 0.3);
}

.success-checkmark.animate-circle {
    transform: scale(1);
    animation: spin-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 28px;
    border: 4px solid white;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(-315deg) scale(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-checkmark.animate-tick::after {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

@keyframes spin-in {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.order-id-box {
    background: rgba(160, 13, 46, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    color: var(--sage-green);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-id-box.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.success-title {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.success-description {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 7rem clamp(1rem, 4vw, 4rem) 5rem;
    }

    .section-header {
        margin-top: -3.5rem;
    }

    .faq-heading {
        margin-top: 1rem;
    }

    .hero h1 {
        margin-top: 3.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-button {
        width: 100%;
    }

    .checkout-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        min-height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
        margin: 0;
    }

    .checkout-header {
        padding: 1rem;
    }

    .checkout-header h2 {
        font-size: 1.1rem;
    }

    .checkout-header h2 img {
        width: 20px;
        height: 20px;
    }

    .checkout-content {
        padding: 1rem;
        gap: 1rem !important;
    }

    .checkout-section {
        padding: 1rem;
    }

    .checkout-left-side {
        max-height: none !important;
        overflow-y: visible !important;
        gap: 1rem;
        padding-right: 0;
    }

    .customer-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .billing-address-form {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .payment-security {
        flex-direction: column;
        gap: 0.5rem;
    }

    .checkout-overlay {
        padding: 0;
        align-items: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .checkout-overlay.show {
        display: flex !important;
    }

    .order-summary-section {
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* For reports section with 3 items, make middle item span 2 columns on tablets */
    .reports-grid .report-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .features-grid {
        gap: 3rem;
    }

    .features-right {
        height: 600px;
        aspect-ratio: 794 / 1123;
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo {
        justify-self: auto;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .logo img {
        height: 28px !important;
        margin-right: 6px !important;
    }

    .basket-dropdown {
        width: 100vw;
        padding: 1.5rem;
    }

    .confidence-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .confidence-item {
        text-align: center;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-right {
        display: block !important;
        visibility: visible !important;
        height: 600px;
        aspect-ratio: 794 / 1123;
        margin: 0 auto;
    }

    .slideshow-container {
        display: flex !important;
        visibility: visible !important;
    }

    .faq-section {
        padding: 2rem 0;
    }

    .faq-question {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .faq-answer.show {
        padding: 0.25rem 1.5rem 1.75rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .loading-logo {
        font-size: 2rem;
    }

    .loading-subtitle {
        font-size: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .logo {
        font-size: 0.8rem;
    }

    .logo img {
        height: 24px !important;
        margin-right: 5px !important;
    }

    .confidence-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .report-card {
        padding: 2rem;
    }

    .basket-dropdown {
        width: 100vw;
        padding: 1.5rem;
    }

    .faq-heading h2 {
        font-size: 2.5rem;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer.show {
        padding: 0.25rem 1.25rem 1.5rem;
    }
}
