/* CSS Variables & Theme */
:root {
    --pine: #14532d;
    --pine-light: #166534;
    --cranberry: #b91c1c;
    --cranberry-light: #dc2626;
    --ivory: #fef3c7;
    --ivory-dark: #fde68a;
    --gold: #d4af37;
    --text-main: #1c1917;
    --text-muted: #57534e;
    
    --font-serif: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--ivory);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 80px; /* Space for sticky footer */
}

.hidden {
    display: none !important;
}

/* Snow Animation */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear forwards;
    opacity: 0.8;
}

@keyframes fall {
    0% { transform: translateY(-10px) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(100vh) translateX(20px); opacity: 0; }
}

/* Layout Wrapper */
.page-wrapper {
    position: relative;
    z-index: 2; /* Above snow */
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography */
h1, h2, h3, .section-title {
    font-family: var(--font-serif);
    line-height: 1.2;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.script-accent {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--cranberry);
    display: block;
    margin-bottom: -15px;
    transform: rotate(-5deg);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--pine);
    margin-bottom: 15px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-image-container {
    max-width: 600px;
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* Form Section */
.lead-capture {
    max-width: 600px;
    margin: 0 auto 60px;
}

.form-card {
    padding: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--pine);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--pine);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid rgba(20, 83, 45, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, var(--pine) 0%, var(--pine-light) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 83, 45, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: var(--cranberry);
    background: rgba(185, 28, 28, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Success Card */
.success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 30px;
}

.share-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.share-controls input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f9fafb;
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #c29d2a;
}

/* Coupon Grid */
.coupon-section {
    margin-bottom: 80px;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.coupon-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.coupon-header {
    padding: 24px;
    text-align: center;
    color: white;
}

.pine-bg { background: linear-gradient(135deg, var(--pine), #0f3f22); }
.cranberry-bg { background: linear-gradient(135deg, var(--cranberry), #991b1b); }
.gold-bg { background: linear-gradient(135deg, #b4932d, var(--gold)); color: var(--text-main); }

.coupon-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.coupon-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.coupon-body {
    padding: 24px;
}

.code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ivory);
    border: 1px dashed var(--gold);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.code {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pine);
    letter-spacing: 1px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--cranberry);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--cranberry-light);
}

/* Accordion */
.accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.accordion-toggle i {
    transition: transform 0.3s ease;
}

.accordion-toggle.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.accordion-content p {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

/* Testimonials */
.testimonials {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--pine);
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 30px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.8);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 15px;
    flex-grow: 1;
}

.author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--pine);
    color: white;
    padding: 15px 20px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.btn-footer {
    display: inline-block;
    background: var(--gold);
    color: var(--pine);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-footer:hover {
    background: white;
    transform: scale(1.05);
}

/* Powered By Alignment */
#wbx-powered-by-slot {
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
}

/* Status Message */
#status-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

#status-message h2 {
    color: var(--cranberry);
    font-size: 2rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .script-accent { font-size: 2.5rem; }
    .hero { margin-bottom: 40px; }
    .form-card { padding: 30px 20px; }
    .footer-content { flex-direction: column; gap: 10px; text-align: center; }
    body { padding-bottom: 120px; }
}
