@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --milk-white: #FFF8F0;
    --cream: #F5E6D3;
    --cream-light: #FDF6EE;
    --cow-brown: #8B6F47;
    --cow-brown-light: #A8896A;
    --meadow-green: #7BC67E;
    --meadow-green-dark: #5BA85E;
    --sky-blue: #87CEEB;
    --sky-blue-light: #B8E2F8;
    --barn-red: #E74C3C;
    --barn-red-dark: #C0392B;
    --sunshine: #FFD93D;
    --sunshine-light: #FFE680;
    --dark-text: #3D2B1F;
    --dark-text-light: #5C4433;
    --white: #FFFFFF;
    --cow-spot: #2C2C2C;
    --pink-soft: #FFDEE9;
    --blue-soft: #D4F1F9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark-text);
    background: linear-gradient(180deg, var(--sky-blue-light) 0%, var(--milk-white) 15%, var(--milk-white) 85%, var(--meadow-green) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== FLOATING CLOUDS ===== */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.7;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 50%;
}

.cloud-1 {
    width: 120px;
    height: 40px;
    top: 30px;
    animation: floatCloud 25s linear infinite;
}
.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 20px;
}
.cloud-1::after {
    width: 70px;
    height: 55px;
    top: -30px;
    left: 45px;
}

.cloud-2 {
    width: 150px;
    height: 45px;
    top: 70px;
    animation: floatCloud 35s linear infinite;
    animation-delay: -10s;
}
.cloud-2::before {
    width: 60px;
    height: 55px;
    top: -28px;
    left: 25px;
}
.cloud-2::after {
    width: 80px;
    height: 60px;
    top: -35px;
    left: 55px;
}

.cloud-3 {
    width: 100px;
    height: 35px;
    top: 45px;
    animation: floatCloud 30s linear infinite;
    animation-delay: -18s;
}
.cloud-3::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 15px;
}
.cloud-3::after {
    width: 60px;
    height: 48px;
    top: -28px;
    left: 38px;
}

@keyframes floatCloud {
    from { left: -200px; }
    to { left: 110%; }
}

/* ===== GRASS BOTTOM ===== */
.grass {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 0;
}

.grass-wave {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 80px;
}

.grass-wave-back {
    fill: #5BA85E;
}

.grass-wave-front {
    fill: var(--meadow-green);
}

/* ===== MILK SPLASH DECORATIONS ===== */
.milk-splash {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.milk-splash-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: -50px;
    background: var(--white);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    animation: morphSplash 8s ease-in-out infinite;
}

.milk-splash-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: -30px;
    background: var(--white);
    border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%;
    animation: morphSplash 10s ease-in-out infinite reverse;
}

@keyframes morphSplash {
    0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
    25% { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 50% 50% 60% 40% / 40% 70% 30% 60%; }
    75% { border-radius: 70% 30% 40% 60% / 50% 40% 60% 50%; }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
}

/* ===== HEADER / LOGO ===== */
.site-header {
    text-align: center;
    padding: 30px 0 10px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(139, 111, 71, 0.15);
    border: 3px solid var(--cream);
}

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

.logo-right-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.header-partner-logo {
    height: 80px;
    max-height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.header-partner-logo:hover {
    opacity: 1;
}

.logo-icon {
    width: 80px;
    height: 80px;
}

.logo-text {
    font-family: 'Baloo 2', cursive;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--cow-brown);
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 0.6em;
    font-weight: 600;
    color: var(--meadow-green-dark);
}

/* TAMI logo */
.logo-tami {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    display: block;
}

.logo-tami:hover {
    opacity: 1;
}

.logo-tami-sm {
    height: 26px;
    max-width: 90px;
    margin-top: 0;
}

/* Vertical divider between partner logos and tami */
.logo-divider {
    width: 1px;
    height: 40px;
    background: var(--cream);
    flex-shrink: 0;
}

/* Partner logos in quiz header */
.quiz-header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

/* ===== SCHOOL INFO BAR ===== */
.school-info {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    background: var(--cream-light);
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px dashed var(--cow-brown-light);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text-light);
}

.school-info strong {
    color: var(--cow-brown);
}

.school-info-adresa {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--dark-text-light);
    margin-top: 3px;
    opacity: 0.8;
}

/* ===== WELCOME MESSAGE ===== */
.welcome {
    text-align: center;
    margin: 30px 0;
}

.welcome h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cow-brown);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 var(--sunshine-light);
}

.welcome p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== SELECTION CARDS (MS / ZS) ===== */
.selection-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 800px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.selection-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-text);
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.12);
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 24px 24px 0 0;
}

.selection-card.card-ms::before {
    background: linear-gradient(90deg, var(--pink-soft), var(--sunshine));
}

.selection-card.card-zs::before {
    background: linear-gradient(90deg, var(--sky-blue), var(--meadow-green));
}

.selection-card.card-ms {
    background: linear-gradient(180deg, var(--pink-soft) 0%, var(--white) 40%);
}

.selection-card.card-zs {
    background: linear-gradient(180deg, var(--blue-soft) 0%, var(--white) 40%);
}

.selection-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(139, 111, 71, 0.2);
}

.selection-card.card-ms:hover {
    border-color: var(--barn-red);
}

.selection-card.card-zs:hover {
    border-color: var(--meadow-green);
}

.selection-card:active {
    transform: translateY(-4px) scale(1.01);
}

.card-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.selection-card h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-ms h2 { color: var(--barn-red); }
.card-zs h2 { color: var(--meadow-green-dark); }

.selection-card p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text-light);
}

/* Milk drop animation on hover */
.selection-card .milk-drop {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--white);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    transition: all 0.4s ease;
}

.selection-card:hover .milk-drop {
    bottom: -10px;
    opacity: 0.5;
    animation: drip 1s ease-in-out infinite;
}

@keyframes drip {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.3); }
}

/* ===== COW SPOTS DECORATION ===== */
.cow-spots {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.cow-spot {
    position: absolute;
    background: var(--cow-spot);
    border-radius: 50% 40% 60% 30%;
}

/* ===== QUIZ PAGE ===== */
.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-header h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    font-weight: 800;
    color: var(--cow-brown);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--cow-brown);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--cream);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.back-btn:hover {
    background: var(--cream);
    transform: translateX(-3px);
    color: var(--cow-brown);
    text-decoration: none;
}

/* ===== VIDEO CONTAINER ===== */
.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(139, 111, 71, 0.2);
    background: #000;
    border: 4px solid var(--white);
}

.video-container video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #000;
}

/* Plyr player theme */
.video-container .plyr,
.video-container .plyr__video-wrapper,
.video-container .plyr video {
    border-radius: 0;
}

:root {
    --plyr-color-main: #5ba85e;
    --plyr-video-control-color: #fff;
    --plyr-font-family: 'Baloo 2', Arial, sans-serif;
    --plyr-font-size-base: 14px;
    --plyr-control-spacing: 10px;
}

/* Play/Pause overlay button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
    pointer-events: none;
}

.video-play-btn svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.video-container.show-controls .video-play-btn {
    opacity: 1;
    pointer-events: auto;
}

.video-overlay-link {
    position: absolute;
    display: none;
    background: rgba(255, 217, 61, 0.25);
    border: 3px solid rgba(255, 217, 61, 0.7);
    border-radius: 12px;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.4s ease, background 0.3s ease;
    text-decoration: none;
}

.video-overlay-link.visible {
    display: block;
    animation: overlayPulse 2s ease-in-out infinite;
}

.video-overlay-link:hover {
    background: rgba(255, 217, 61, 0.45);
    border-color: rgba(255, 217, 61, 1);
}

.video-overlay-link .overlay-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sunshine);
    color: var(--dark-text);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

@keyframes overlayPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 217, 61, 0); }
}

/* ===== QUIZ SECTION ===== */
.quiz-section {
    max-width: 900px;
    margin: 0 auto;
}

.quiz-intro {
    background: var(--white);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.08);
    border-left: 5px solid var(--sunshine);
    text-align: center;
}

.quiz-intro h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cow-brown);
    margin-bottom: 5px;
}

.quiz-intro p {
    color: var(--dark-text-light);
    font-weight: 600;
}

/* ===== INFO FORM ===== */
.info-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 6px 25px rgba(139, 111, 71, 0.1);
    border: 2px solid var(--sky-blue-light);
}

.info-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--cream);
}

.info-form-header h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cow-brown);
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group-half {
    flex: 1;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.required {
    color: var(--barn-red);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    background: var(--cream-light);
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--cow-brown-light);
    font-weight: 500;
}

.form-input:focus {
    border-color: var(--sky-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(135, 206, 235, 0.2);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: var(--meadow-green);
}

/* Type toggle (jednotlivec / trieda) */
.type-toggle {
    display: flex;
    gap: 12px;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.type-option-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border: 3px solid var(--cream);
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-text-light);
    background: var(--cream-light);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.type-option input[type="radio"]:checked + .type-option-box {
    border-color: var(--sky-blue);
    background: var(--blue-soft);
    color: var(--dark-text);
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    transform: translateY(-2px);
}

.type-option:hover .type-option-box {
    border-color: var(--sky-blue-light);
    background: var(--blue-soft);
}

/* ===== QUESTION CARD ===== */
.question-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 6px 25px rgba(139, 111, 71, 0.1);
    border: 2px solid var(--cream);
    transition: border-color 0.3s ease;
}

.question-card.answered {
    border-color: var(--meadow-green);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--sunshine);
    color: var(--dark-text);
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 12px;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== ANSWER TILES ===== */
.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.answer-tile {
    background: var(--cream-light);
    border: 3px solid var(--cream);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-text);
    position: relative;
    user-select: none;
}

.answer-tile:hover {
    background: var(--sunshine-light);
    border-color: var(--sunshine);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.3);
}

.answer-tile.selected {
    background: var(--meadow-green);
    border-color: var(--meadow-green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 198, 126, 0.4);
}

.answer-tile.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--white);
    color: var(--meadow-green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.answer-letter {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    background: var(--white);
    border-radius: 50%;
    font-family: 'Baloo 2', cursive;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--cow-brown);
    margin-right: 10px;
    text-align: center;
    transition: all 0.25s ease;
}

.answer-tile.selected .answer-letter {
    background: var(--meadow-green-dark);
    color: var(--white);
}

/* ===== CONDITIONS BUTTON (landing page) ===== */
.conditions-container {
    text-align: center;
    margin: 10px 0 30px;
}

.conditions-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--cow-brown);
    padding: 14px 30px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--cream);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.1);
}

.conditions-btn:hover {
    background: var(--cream-light);
    border-color: var(--cow-brown-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.15);
    color: var(--cow-brown);
    text-decoration: none;
}

.conditions-btn svg {
    color: var(--barn-red);
}

.conditions-btn--prizes {
    background: #fffbea;
    color: #7a5800;
    border-color: #f0d060;
    box-shadow: 0 4px 15px rgba(200, 160, 0, 0.12);
    margin-left: 12px;
}

.conditions-btn--prizes svg {
    color: #e6ac00;
}

.conditions-btn--prizes:hover {
    background: #fff3c0;
    border-color: #e6ac00;
    color: #7a5800;
    box-shadow: 0 6px 20px rgba(200, 160, 0, 0.22);
}

/* ===== CONSENT CHECKBOX (quiz page) ===== */
/* Autocomplete škola */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--sky-blue-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(139, 111, 71, 0.12);
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
}

.autocomplete-dropdown.open {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--cream);
    transition: background 0.15s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--sky-blue-light);
}

.autocomplete-item__name {
    font-weight: 700;
    color: var(--brown-dark);
    font-size: 0.95rem;
}

.autocomplete-item__addr {
    font-size: 0.82rem;
    color: var(--brown);
    margin-top: 2px;
}

/* Quiz availability notice */
.quiz-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin: 30px auto;
    max-width: 560px;
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(139, 111, 71, 0.1);
    border: 2px solid var(--sky-blue-light);
    background: var(--white);
}

.quiz-notice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.quiz-notice--before .quiz-notice__icon {
    background: #FFF8E1;
    border: 3px solid #FFD54F;
}

.quiz-notice--after .quiz-notice__icon {
    background: #E8F5E9;
    border: 3px solid #81C784;
}

.quiz-notice__title {
    font-family: 'Baloo 2', cursive;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin: 0;
}

.quiz-notice p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--brown);
    line-height: 1.6;
}

.consent-container {
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
}

.consent-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px 28px;
    background: var(--white);
    border-radius: 16px;
    border: 2px solid var(--cream);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.08);
    user-select: none;
}

.consent-label:hover {
    border-color: var(--sky-blue);
    background: var(--cream-light);
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-checkmark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 3px solid var(--cream);
    border-radius: 8px;
    background: var(--cream-light);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.consent-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.consent-label input[type="checkbox"]:checked + .consent-checkmark {
    background: var(--meadow-green);
    border-color: var(--meadow-green-dark);
}

.consent-label input[type="checkbox"]:checked + .consent-checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

.consent-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-text);
}

.consent-text a {
    color: var(--barn-red);
    text-decoration: underline;
    font-weight: 800;
}

.consent-text a:hover {
    color: var(--barn-red-dark);
}

/* ===== SUBMIT BUTTON ===== */
.submit-container {
    text-align: center;
    margin: 40px 0 60px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--barn-red);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    text-decoration: none;
}

.submit-btn:hover {
    background: var(--barn-red-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
    color: var(--white);
    text-decoration: none;
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.submit-btn:disabled {
    background: var(--cow-brown-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.2);
}

/* ===== THANK YOU PAGE ===== */
.thankyou-container {
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
    background: var(--white);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 15px 50px rgba(139, 111, 71, 0.15);
    border: 3px solid var(--cream);
}

.thankyou-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
}

.thankyou-container h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--meadow-green-dark);
    margin-bottom: 15px;
}

.thankyou-container p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.thankyou-btn {
    display: inline-block;
    margin-top: 25px;
    background: var(--meadow-green);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(123, 198, 126, 0.3);
}

.thankyou-btn:hover {
    background: var(--meadow-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(123, 198, 126, 0.4);
    color: var(--white);
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .welcome h1 {
        font-size: 1.8rem;
    }

    .welcome p {
        font-size: 1rem;
    }

    .selection-container {
        gap: 20px;
    }

    .selection-card {
        padding: 30px 20px;
        min-width: 260px;
    }

    .card-icon {
        width: 90px;
        height: 90px;
    }

    .logo-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 20px;
        gap: 8px;
        border-radius: 24px;
    }

    .logo-center {
        order: -1;
        width: 100%;
        justify-content: center;
        padding-bottom: 8px;
        border-bottom: 2px dashed var(--cream);
        margin-bottom: 4px;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .logo-icon {
        width: 55px;
        height: 55px;
    }

    .header-partner-logo {
        height: 45px;
        max-width: 130px;
    }

    .quiz-header-logos {
        gap: 14px;
    }

    .question-card {
        padding: 20px;
    }

    .answers-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .info-form-card {
        padding: 20px;
    }

    .type-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .quiz-header h1 {
        font-size: 1.5rem;
    }

    .submit-btn {
        padding: 15px 40px;
        font-size: 1.2rem;
    }

    .thankyou-container {
        margin: 30px 15px;
        padding: 35px 25px;
    }

    .thankyou-container h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .selection-card {
        min-width: 100%;
    }

    .welcome h1 {
        font-size: 1.5rem;
    }

    .logo-container {
        padding: 12px 15px;
        gap: 6px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .header-partner-logo {
        height: 36px;
        max-width: 100px;
    }

    .quiz-header-logos {
        gap: 10px;
    }

    .video-container {
        border-radius: 12px;
        border-width: 3px;
    }
}

/* ===== PARTNER LOGOS BAR ===== */
.partner-logos-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 14px 25px;
    margin: 0 auto 10px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .partner-logos-bar {
        gap: 15px;
        padding: 15px 20px;
        max-width: 90%;
    }

    .partner-logo {
        height: 36px;
    }
}

/* ===== FOOTER COW PATTERN ===== */
.footer-decoration {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== SUN ===== */
.sun-wrapper {
    position: fixed;
    top: 18px;
    right: 28px;
    z-index: 0;
    pointer-events: none;
}

.sun-svg {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 4px 12px rgba(255, 200, 0, 0.4));
    animation: sunPulse 4s ease-in-out infinite;
}

.sun-rays-group {
    animation: rotateSun 18s linear infinite;
    transform-origin: 50px 50px;
}

@keyframes rotateSun {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes sunPulse {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(255, 200, 0, 0.35)); }
    50%       { filter: drop-shadow(0 4px 22px rgba(255, 200, 0, 0.65)); }
}

/* ===== BIRDS ===== */
.birds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bird {
    position: absolute;
}

.bird-1 {
    width: 34px;
    height: 17px;
    top: 55px;
    animation: flyBird 22s linear infinite;
    animation-delay: -4s;
}

.bird-2 {
    width: 26px;
    height: 13px;
    top: 38px;
    animation: flyBird 28s linear infinite;
    animation-delay: -13s;
}

.bird-3 {
    width: 20px;
    height: 10px;
    top: 78px;
    animation: flyBird 19s linear infinite;
    animation-delay: -20s;
}

@keyframes flyBird {
    0%   { left: -80px; }
    100% { left: 110%; }
}

/* ===== FLOATING MILK DROPS ===== */
.float-drops {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fdrop {
    position: absolute;
    background: white;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    animation: floatDrop linear infinite;
}

.fdrop-1 { width: 12px; height: 16px; left: 8%;  animation-duration: 13s; animation-delay: -1s; }
.fdrop-2 { width: 8px;  height: 11px; left: 22%; animation-duration: 17s; animation-delay: -6s; }
.fdrop-3 { width: 14px; height: 19px; left: 67%; animation-duration: 11s; animation-delay: -3s; }
.fdrop-4 { width: 9px;  height: 12px; left: 82%; animation-duration: 15s; animation-delay: -9s; }
.fdrop-5 { width: 6px;  height: 8px;  left: 44%; animation-duration: 20s; animation-delay: -12s; }
.fdrop-6 { width: 11px; height: 14px; left: 55%; animation-duration: 14s; animation-delay: -16s; }

@keyframes floatDrop {
    0%   { bottom: -30px; opacity: 0; }
    8%   { opacity: 0.45; }
    88%  { opacity: 0.25; }
    100% { bottom: 100vh; opacity: 0; }
}

/* ===== FUN FACT STRIP ===== */
.fun-fact-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #FFFBE0 0%, #FFF4A3 100%);
    border: 3px solid var(--sunshine);
    border-radius: 22px;
    padding: 16px 26px;
    margin: 0 auto 32px;
    max-width: 680px;
    box-shadow: 0 6px 24px rgba(255, 217, 61, 0.22);
}

.fun-fact-icon-wrap {
    flex-shrink: 0;
    animation: funFactBounce 2.5s ease-in-out infinite;
}

@keyframes funFactBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.fun-fact-content {
    text-align: left;
}

.fun-fact-label {
    font-family: 'Baloo 2', cursive;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cow-brown);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.fun-fact-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.5;
    min-height: calc(1rem * 1.5 * 2);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.fun-fact-text strong {
    color: var(--cow-brown);
}

@media (max-width: 600px) {
    .sun-wrapper { display: none; }

    .fun-fact-strip {
        gap: 12px;
        padding: 14px 18px;
    }

    .fun-fact-icon-wrap svg {
        width: 36px;
        height: 36px;
    }

    .fun-fact-text {
        font-size: 0.9rem;
    }
}
