/* 🍃 Paan Milkshake Contest - Botanical Typeform Design (RESTORED) */

:root {
    /* Clean Palette */
    --bg-dark: #1a1a1a;
    --card-white: #ffffff;
    --input-bg: #f5f5f5;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;

    /* Paan Green Accent */
    --green-primary: #2d6a4f;
    --green-accent: #52b788;
    --green-light: #95d5b2;

    /* Validation */
    --error-red: #ef4444;
    --warning-orange: #f59e0b;
    --success-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #000;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 🍃 Full-Screen Paan Leaf Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1584270354949-c26b0d5b4a0c?q=80&w=1200') center/cover;
    z-index: 0;
    animation: subtleZoom 20s ease-in-out infinite;
}

@keyframes subtleZoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* 🌿 Botanical Shadow Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top left, transparent 0%, rgba(0, 0, 0, 0.4) 100%),
        radial-gradient(ellipse at bottom right, transparent 0%, rgba(45, 106, 79, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 📱 Main Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* 🏷️ Logo Badge at Top */
.header {
    text-align: center;
    padding: 30px 20px 20px;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: inline-block;
    max-height: 60px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.cavins-logo-img {
    height: 30px;
    width: auto;
    vertical-align: middle;
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 300;
}

/* 🃏 Bottom Sheet Card */
.hero,
.video-section,
.form-section {
    margin-top: auto;
    background: var(--card-white);
    border-radius: 30px 30px 0 0;
    padding: 40px 30px 50px;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    /* Auto height for compact design */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Handle Indicator */
.hero::before,
.video-section::before,
.form-section::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.main-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Video Section */
.video-section {
    padding: 40px 30px;
    border-radius: 30px;
    /* Full radius since it's below form */
    margin-top: 20px;
    margin-bottom: 40px;
}

.video-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--input-bg);
    border-radius: 16px;
    overflow: hidden;
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
}

/* Form Section */
.form-section {
    min-height: 400px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

/* Typeform Slides */
#questions-container {
    position: relative;
}

.typeform-slide {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.typeform-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.typeform-slide.slide-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
}

/* Question Number Badge */
.question-number {
    display: inline-block;
    padding: 6px 14px;
    background: var(--green-light);
    color: var(--green-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* Question Text */
.question-text,
.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Input Fields - Clean Minimal Style */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.typeform-input,
.text-input,
.typeform-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.typeform-input:focus,
.text-input:focus,
.typeform-select:focus {
    background: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* Choice Buttons - Minimal Style */
.choices-grid,
.choice-options,
.select-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-btn,
.option-btn {
    padding: 18px 24px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

.choice-btn:hover,
.option-btn:hover {
    background: #e8e8e8;
    transform: translateX(4px);
}

.choice-btn.selected,
.option-btn.selected {
    background: var(--green-primary);
    color: white;
    border-color: var(--green-primary);
}

.choice-letter,
.option-letter {
    font-weight: 700;
    opacity: 0.5;
    min-width: 20px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn,
.btn-primary,
.btn-back,
.btn-skip {
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--green-primary);
    color: white;
    width: 100%;
}

.btn-back {
    background: var(--input-bg);
    color: var(--text-secondary);
}

.btn-skip {
    background: transparent;
    color: var(--text-secondary);
    margin-left: auto;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Progress Bar */
.question-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--input-bg);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--green-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.progress-label {
    text-align: right;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    position: relative;
    z-index: 10;
}

/* Hidden States */
.contest-state {
    display: none;
}

.contest-state.active-state {
    display: block;
}

#closed-state,
#announced-state,
.entry-counter {
    display: none !important;
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 10px;
    }

    .form-section {
        padding: 30px 20px;
        border-radius: 24px 24px 0 0;
    }

    .main-heading {
        font-size: 1.8rem;
    }
}