/* ==========================================
   GROVA 3D Montaj Klavuzu - Premium Design
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* GROVA Premium Palette (Official) */
    --grova-wood-dark: #2D3E2E;
    /* Deep Forest - Main Brand Color */
    --grova-wood-light: #3A4F3B;
    /* Forest Green */
    --grova-sage: #4A6A4D;
    /* Sage Green */
    --grova-sage-light: #5A7A5C;
    /* Light Sage */
    --grova-cream: #F8F6F3;
    /* Off-White - Main Background */

    /* Wabi-Sabi Warm Neutrals */
    --grova-clay: #8B7355;
    /* Warm Clay - Accents */
    --grova-taupe: #9C8B7A;
    /* Soft Taupe */
    --grova-beige: #B8A898;
    /* Dusty Beige */
    --grova-ochre: #A67C52;
    /* Warm Ochre */
    --grova-soot: #6B5D52;
    /* Soot Grey - Secondary Text */
    --grova-rust: #9B6B4F;
    /* Subtle Rust */

    /* Functional Colors */
    --bg-body: var(--grova-cream);
    --bg-card: #FFFFFF;
    --text-primary: var(--grova-wood-dark);
    --text-secondary: var(--grova-soot);
    --success: var(--grova-sage);
    --accent: var(--grova-clay);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(45, 62, 46, 0.08);
    --shadow-md: 0 8px 24px rgba(45, 62, 46, 0.12);
    --shadow-lg: 0 16px 48px rgba(45, 62, 46, 0.15);
    --shadow-gold: 0 4px 20px rgba(139, 115, 85, 0.25);

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at 100% 0%, rgba(74, 106, 77, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 0% 100%, rgba(45, 62, 46, 0.03) 0%, transparent 25%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
}

/* ==========================================
   Header
   ========================================== */

.grova-header {
    text-align: center;

    animation: fadeInDown 0.8s ease-out;
}

.logo {
    font-family: 'Outfit', sans-serif;
    /* Changed to Sans-Serif */
    font-size: 72px;
    font-weight: 600;
    /* Bold but rounded feel */
    /* Tighter tracking for modern look */
    color: var(--grova-wood-dark);
    position: relative;
    display: inline-block;
    text-transform: lowercase;
    /* Strict lowercase */
}

.logo::after {
    display: none;
    /* Removed gold line for cleaner look */
}

.global-footer {
    margin-top: 10px;
    padding: 15px 10px;
    animation: fadeInUp 0.8s ease-out;
}

.hashtag {
    font-size: 12px;
    color: var(--grova-clay);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
}

.video-share-text {
    margin: 8px auto;
    max-width: 500px;
    text-align: center;
}

.video-share-text p {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: var(--grova-wood-dark);
    margin: 0;
    font-weight: 500;
}

.support-section {
    margin: 8px 0;
    text-align: center;
}

.support-section p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #25D366;
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
}

@media (min-width: 600px) {
    .global-footer {
        padding: 20px 15px;
    }
    .hashtag {
        font-size: 14px;
    }
    .video-share-text p {
        font-size: 14px;
    }
    .support-section p {
        font-size: 13px;
    }
    .whatsapp-link {
        padding: 8px 16px;
        font-size: 14px;
        gap: 8px;
    }
}

.social-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tagline {
    font-size: 14px;
    color: var(--grova-sage);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==========================================
   Container & Pages
   ========================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

.page {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.page.active {
    display: block;
}

.content-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    box-shadow: none;
    border: none;
    position: relative;
}

/* ==========================================
   Safety Page
   ========================================== */

h1 {
    font-family: 'Outfit', sans-serif;
    /* Changed to Sans */
    font-size: 32px;
    font-weight: 600;
    color: var(--grova-wood-dark);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.pdf-viewer {
    margin-bottom: 10px;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.pdf-viewer iframe {
    border: none;
    display: block;
    width: 100%;
    height: 60vh;
    /* Responsive height */
}

.pdf-note {
    padding: 16px;
    background: var(--grova-cream);
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pdf-note a {
    color: var(--grova-clay);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--grova-clay);
    transition: var(--transition);
}

.pdf-note a:hover {
    color: var(--grova-wood-dark);
    border-color: var(--grova-wood-dark);
}

/* ==========================================
   Checkbox
   ========================================== */

.checkbox-container {
    margin: 10px 0;
    padding: 15px;
    background: var(--grova-cream);
    border-radius: 16px;
    border: 1px solid rgba(45, 62, 46, 0.05);
    display: flex;
    justify-content: center;
    /* Center the checkbox */
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: var(--grova-wood-dark);
    font-weight: 500;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    appearance: none;
    /* Ensure native appearance is removed */
    -webkit-appearance: none;
}

.checkmark {
    position: relative;
    height: 24px;
    /* Slightly smaller for better proportion */
    width: 24px;
    background-color: var(--bg-card);
    border: 2px solid var(--grova-taupe);
    border-radius: 6px;
    margin-right: 12px;
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    /* Center the check icon */
    align-items: center;
    justify-content: center;
}

.checkbox-label:hover .checkmark {
    border-color: var(--grova-clay);
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.1);
}

.checkbox-label input:checked~.checkmark {
    background-color: var(--grova-wood-dark);
    border-color: var(--grova-wood-dark);
}

.checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid var(--grova-cream);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    /* Fine tune position */
}

.checkbox-label input:checked~.checkmark:after {
    display: block;
}

/* ==========================================
   Buttons
   ========================================== */

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
    gap: 20px;
    /* Optional: keeps some space if they wrap on very small screens */
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    /* width: 100%;  Removed full width to allow buttons to sit on sides */
    min-width: 150px;
    /* Ensure buttons have a decent size */
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--grova-wood-dark);
    /* Solid Deep Forest */
    color: var(--grova-cream);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--grova-wood-light);
    /* Forest Green on hover */
}

.btn-primary:disabled {
    background: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
    box-shadow: none;
    border-color: transparent;
}

.btn-secondary {
    background: var(--grova-cream);
    color: var(--grova-wood-dark);
    border: 1px solid var(--grova-beige);
}

.btn-secondary:hover:not(:disabled) {
    background: #FFFFFF;
    transform: translateY(-2px);
    border-color: var(--grova-clay);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--grova-taupe);
    color: var(--grova-wood-dark);
    width: auto;
    margin: 5px;
    padding: 12px 24px;
    text-transform: none;
}

.btn-outline:hover {
    background: var(--grova-wood-dark);
    color: var(--grova-cream);
    border-color: var(--grova-wood-dark);
}

.start-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

/* ==========================================
   Step Slider (Range Input)
   ========================================== */

.step-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--grova-cream);
    border: 1px solid var(--grova-beige);
    outline: none;
    margin-bottom: 12px;
    cursor: pointer;
}

.step-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grova-wood-dark);
    border: 2px solid var(--grova-cream);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.step-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--grova-clay);
}

.step-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grova-wood-dark);
    border: 2px solid var(--grova-cream);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

/* ==========================================
   Thank You Page (Redesigned)
   ========================================== */

.thank-you-collage {
    position: relative;
    height: 300px;
    margin-bottom: 40px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--grova-beige);
}

.collage-item {
    position: absolute;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    filter: blur(2px);
}

.item-1 {
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background-image: url('https://images.unsplash.com/photo-1565814329452-e1efa11c5b89?q=80&w=800&auto=format&fit=crop');
}

.item-2 {
    top: 0;
    right: 0;
    width: 40%;
    height: 50%;
    background-image: url('https://images.unsplash.com/photo-1513506003013-d53162595d48?q=80&w=800&auto=format&fit=crop');
}

.item-3 {
    bottom: 0;
    left: 20%;
    width: 80%;
    height: 50%;
    background-image: url('https://images.unsplash.com/photo-1540932296235-d848019463db?q=80&w=800&auto=format&fit=crop');
}

.collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.social-icons-large {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icon-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--grova-wood-dark);
    /* Icon color */
}

.social-icon-lg:hover {
    transform: translateY(-5px) scale(1.1);
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--grova-green);
    /* Hover color */
}

.social-icon-lg svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.share-title {
    font-family: 'Dongle', sans-serif;
    font-size: 42px;
    /* Adjusted for Dongle's small baseline */
    line-height: 1;
    color: var(--grova-wood-dark);
    margin: 0;
    font-weight: 400;
}

.share-message {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: var(--grova-wood-dark);
    margin: 10px 0 20px;
    line-height: 1.5;
    text-align: center;
    max-width: 600px;
    font-weight: 500;
}

.discount-note {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--grova-wood-dark);
    max-width: 600px;
    margin: 20px auto 0;
    /* Adjusted margin */
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    /* More opaque for readability over image */
    border-radius: 16px;
    border: 2px dashed var(--grova-clay);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.footer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    /* Medium */
    font-size: 11px;
    /* 8pt approx */
    color: var(--grova-wood-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}

.brand-link {
    color: var(--grova-wood-dark);
    font-weight: 700;
}

/* ==========================================
   Animations
   ========================================== */

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive Design
   ========================================== */

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .content-wrapper {
        padding: 30px 20px;
    }

    .logo {
        font-size: 36px;
    }

    h1 {
        font-size: 28px;
    }

    .step-title {
        font-size: 22px;
    }

    model-viewer {
        height: 50vh;
        /* Taller on mobile */
    }

    /* Removed grid override to keep flex layout on mobile */
    /* .navigation-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    } */

    .social-icons-large {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 24px 16px;
    }

    .logo {
        font-size: 32px;
    }

    h1 {
        font-size: 24px;
    }

    model-viewer {
        height: 45vh;
    }

    .btn {
        padding: 16px 24px;
        font-size: 15px;
    }

    .step-description {
        padding: 16px;
    }

    .step-description p {
        font-size: 16px;
    }
}

/* ==========================================
   Celebration Effects
   ========================================== */

#celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#celebration-overlay.visible {
    opacity: 1;
}

.celebration-text {
    font-family: 'Dongle', sans-serif;
    font-size: 150px;
    color: var(--grova-wood-dark);
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transform: scale(0);
    opacity: 0;
    line-height: 1;
}

.celebration-text.animate {
    animation: popOut 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes popOut {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    20% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    40% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    80% {
        transform: scale(1.1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(2) rotate(0deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .celebration-text {
        font-size: 100px;
    }
}

.model-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(248, 246, 243, 0) 70%);
    border-radius: 20px;
}

model-viewer {
    width: 100%;
    height: 60vh;
    /* Much larger height */
    min-height: 500px;
    background-color: transparent;
    --poster-color: transparent;
}

/* ==========================================
   Thank You Page Updates
   ========================================== */

.thank-you-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thank-you-collage {
    position: relative;
    height: 1350px;
    /* Increased by another 50% */
    width: 100%;
    margin-bottom: 40px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--grova-beige);
}

.collage-item {
    position: absolute;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    /* Less transparent */
    filter: blur(1px);
    /* Reduced blur */
    transition: transform 5s ease;
}

/* Subtle animation for collage items */
.thank-you-collage:hover .collage-item {
    transform: scale(1.05);
}

.item-1 {
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background-image: url('assets/products/product-1.jpg');
    z-index: 1;
}

.item-2 {
    top: 0;
    right: 0;
    width: 40%;
    height: 50%;
    background-image: url('assets/products/product-2.png');
    z-index: 2;
}

.item-3 {
    bottom: 0;
    left: 0;
    width: 40%;
    height: 40%;
    background-image: url('assets/products/product-3.png');
    z-index: 3;
}

/* Added a 4th item for better collage */
.item-4 {
    bottom: 0;
    right: 0;
    width: 60%;
    height: 50%;
    background-image: url('assets/products/product-4.png');
    z-index: 1;
}

.collage-overlay {
    background: rgba(255, 255, 255, 0.2);
    /* More transparent overlay */
    backdrop-filter: blur(2px);
    /* Reduced blur on overlay */
}

.share-message {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.discount-note {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Center the restart button explicitly */
#thank-you-page .btn-outline {
    margin: 30px auto 0;
    display: inline-flex;
}