:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --accent-color: #00ffcc;
    --text-white: #ffffff;
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    /* User-provided High Res Dodger Stadium */
    background-image: url('DodgerStadium2.jpg');
}

/* Fallback if user hasn't named it specifically - I will handle this in JS */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1.2s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1.5s ease-out;
}

.cta-button {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    transition: var(--transition);
    animation: fadeIn 2s ease-in;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 210, 255, 0.5);
    filter: brightness(1.1);
}

/* Survey Container */
.survey-container {
    min-height: 100vh;
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.progress-bar {
    width: 100%;
    max-width: 800px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.5s ease;
}

.question-card {
    width: 100%;
    max-width: 900px;
    min-height: 0;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.question-text {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.option-btn {
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.option-btn.selected {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    font-weight: 700;
}

.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-button {
    padding: 9px 22px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.nav-button.primary {
    background: var(--primary-color);
    border: none;
    color: var(--bg-dark);
}

.nav-button.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Success Message Styles */
.success-card {
    text-align: center;
    padding: 60px;
    background: var(--glass-bg);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 800px;
}

/* Full-screen background layout for confirmation page */
.submission-layout {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.submission-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.submission-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.submission-card {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    text-align: center;
    padding: 30px 24px 24px;
    background: rgba(10, 10, 14, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pin the back/submit buttons to the bottom of the card */
.submission-card .navigation-controls {
    margin-top: auto;
    padding-top: 16px;
}

.summary-list {
    text-align: left;
    margin: 0;
    max-height: none;
    overflow-y: visible;
    padding-right: 5px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px 8px;
    margin-bottom: 3px;
    transition: var(--transition);
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.summary-name-item {
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.3);
}

.summary-question {
    font-size: 0.55rem;
    color: var(--primary-color);
    margin-bottom: 1px;
    font-weight: 700;
}

.summary-answer {
    font-size: 0.7rem;
    color: var(--text-white);
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* ===== Success Page Layout ===== */
.success-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px 20px;
    min-height: 100vh;
    overflow-y: auto;
}

.success-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-media-row {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin-bottom: 50px;
}

.success-pdubs {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    max-height: 420px;
}

.success-pdubs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.success-video {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
}

.success-video-full {
    flex: none;
    width: 100%;
    max-width: 700px;
}

.success-video video {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

/* ===== Veal Parm Attack Zone ===== */
.veal-attack-section {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-bottom: 20px;
}

.section-big-caption {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.04em;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    margin: 0 0 18px;
    text-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
    width: 100%;
    max-width: 700px;
}

.crown-caption {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: 20px 0 10px;
}

.crown-caption p {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.04em;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
}

.malone-gif {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-bottom: 40px;
    isolation: isolate;
    will-change: auto;
    position: relative;
    z-index: 1;
}

.malhar-roe-section {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-bottom: 60px;
}

.malhar-roe-img {
    width: 100%;
    max-width: 700px;
    height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

.malhar-roe-wrapper {
    position: relative;
    display: inline-block;
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.malhar-bg {
    width: 100%;
    display: block;
}

.moving-boot {
    position: absolute;
    width: 25%;
    top: 35%;
    left: 45%;
    z-index: 5;
    mix-blend-mode: multiply;
    /* Removes white background from boot.jpg */
}

/* Patch to hide the old boot in the background */
.malhar-patch-background {
    position: absolute;
    top: 25%;
    left: 44%;
    width: 15%;
    height: 30%;
    background: #6a1b2a;
    /* Estimated maroon from the photo */
    filter: blur(8px);
    z-index: 1;
}

.licking-tongue {
    position: absolute;
    top: 38%;
    left: 32%;
    width: 0;
    height: 12px;
    background: #FF6B6B;
    border-radius: 20px;
    z-index: 4;
    transform-origin: left center;
    animation: lickBoot 2s ease-in-out infinite;
}

@keyframes lickBoot {

    0%,
    100% {
        width: 0;
        transform: rotate(0deg);
    }

    40% {
        width: 60px;
        transform: rotate(-5deg);
    }

    50% {
        width: 65px;
        transform: rotate(0deg);
    }

    60% {
        width: 60px;
        transform: rotate(5deg);
    }
}

.extra-photo-section {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-bottom: 60px;
}

.extra-photo-img {
    width: 100%;
    max-width: 700px;
    height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}


/* Huber Toy Specifics */
.huber-toy-wrapper {
    position: relative;
    display: inline-block;
    max-width: 500px;
    width: 100%;
    border-top-left-radius: 40px;
    /* Matching the toy package curve */
    border-top-right-radius: 40px;
    overflow: hidden;
}

/* Overlay to hide original elements (using bits of background) */
.huber-patch {
    position: absolute;
    background: #0077b6;
    /* Average blue of the package background */
    z-index: 2;
}

.patch-iv-top {
    width: 15%;
    height: 35%;
    top: 5%;
    right: 4%;
}

.patch-sleeve {
    width: 8%;
    height: 25%;
    top: 40%;
    left: 45%;
    background: #0077b6;
}

.patch-deputy {
    width: 14%;
    height: 6%;
    top: 48%;
    left: 34%;
    background: #222;
}

/* Dark suit color */

/* New Elements */
.huber-deputy-text {
    position: absolute;
    top: 48%;
    left: 34%;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
}

.huber-iv-stand {
    position: absolute;
    top: 40%;
    /* Half height as requested */
    right: 5%;
    width: 12%;
    height: 50%;
    z-index: 3;
}

/* Frankie Throw-in Section */
.frankie-section {
    position: absolute;
    bottom: 12%;
    left: 4.5%;
    width: 32%;
    height: 18%;
    background: #FF5910;
    /* Mets Orange-ish/Red as requested */
    border-radius: 12px;
    border: 2px solid white;
    z-index: 10;
    text-align: center;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.frankie-title {
    font-size: 0.55rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.lindor-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lindor-face {
    font-size: 1.5rem;
    line-height: 1;
}

.lindor-name {
    font-size: 0.45rem;
    color: white;
    font-weight: 700;
}

/* PDubs Flag Specifics */
.pdubs-flag-wrapper {
    position: relative;
    display: inline-block;
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.pdubs-patch {
    position: absolute;
    z-index: 2;
}

/* Patch over original elements */
.patch-shirt-text {
    width: 35%;
    height: 10%;
    top: 40%;
    left: 33%;
    background: #1a237e;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.8;
}

/* Blending with navy shirt */
.patch-tax {
    width: 20%;
    height: 10%;
    bottom: 25%;
    right: 28%;
    background: #fdfdfd;
    filter: blur(5px);
    opacity: 0.9;
}

/* Blending with leg skin */
.patch-tat {
    width: 15%;
    height: 10%;
    bottom: 20%;
    left: 24%;
    background: #fdfdfd;
    filter: blur(5px);
    opacity: 0.9;
}

/* Blending with leg skin */

/* New Elements */
.pdubs-embroidery {
    position: absolute;
    top: 52%;
    left: 42%;
    color: rgba(255, 255, 255, 0.4);
    /* Embroidery look: subtle and slightly transparent */
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
    pointer-events: none;
    transform: rotate(2deg);
}

.pdubs-tax-text {
    position: absolute;
    bottom: 27%;
    right: 28%;
    color: black;
    font-family: 'Times New Roman', serif;
    /* "Cooler" as in formal/traditional serif */
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    transform: rotate(5deg);
}

.pdubs-wolf-tat {
    position: absolute;
    bottom: 22%;
    left: 25%;
    width: 12%;
    z-index: 3;
    opacity: 0.7;
    /* Tattoo look */
    mix-blend-mode: multiply;
    /* Blend with skin */
}

.pdubs-rip {
    position: absolute;
    bottom: 18%;
    left: 27%;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.6rem;
    font-weight: 800;
    z-index: 4;
}

width: 100%;
border-radius: 16px;
display: block;
will-change: auto;
transform: none;
animation: none;
}

.attack-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.attack-caption {
    margin-top: 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.veal-attack-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 80, 80, 0.4);
}

.attack-caption {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.veal-parm-img {
    width: 100%;
    display: block;
    border-radius: 20px;
    animation: imageShake 0.4s linear infinite;
}

/* ---- Gunners ---- */
.gunner {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 1));
}

.gunner-left {
    left: 0;
    top: 62%;
    transform: translateY(-50%);
}

.gunner-right {
    right: 0;
    top: 70%;
    transform: translateY(-50%);
}

.g-gun.flipped {
    display: inline-block;
    transform: scaleX(-1);
}

/* Muzzle flash */
.muzzle-flash {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #ffaa00 50%, transparent 100%);
    animation: muzzleFlash 0.12s ease-in-out infinite;
    z-index: 11;
}

.ml {
    left: 100%;
    top: 52%;
    transform: translateY(-50%);
}

.mr {
    right: 100%;
    top: 52%;
    transform: translateY(-50%);
}

@keyframes muzzleFlash {

    0%,
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.2);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.6);
    }
}

/* ---- Bullet trails ---- */
.bullet-trail {
    position: absolute;
    height: 2px;
    width: 20%;
    background: linear-gradient(to right, rgba(255, 255, 150, 0.95), transparent);
    z-index: 9;
    border-radius: 2px;
    animation: bulletLeft linear infinite;
}

.from-r {
    background: linear-gradient(to left, rgba(255, 255, 150, 0.95), transparent);
    animation-name: bulletRight;
}

.bl1 {
    top: 63%;
    animation-duration: 0.38s;
    animation-delay: 0s;
}

.bl2 {
    top: 67%;
    animation-duration: 0.32s;
    animation-delay: 0.14s;
}

.bl3 {
    top: 60%;
    animation-duration: 0.44s;
    animation-delay: 0.27s;
}

.br1 {
    top: 71%;
    animation-duration: 0.36s;
    animation-delay: 0.06s;
}

.br2 {
    top: 68%;
    animation-duration: 0.41s;
    animation-delay: 0.2s;
}

@keyframes bulletLeft {
    0% {
        left: 8%;
        opacity: 1;
    }

    85% {
        left: 46%;
        opacity: 0.8;
    }

    100% {
        left: 50%;
        opacity: 0;
    }
}

@keyframes bulletRight {
    0% {
        right: 8%;
        opacity: 1;
    }

    85% {
        right: 46%;
        opacity: 0.8;
    }

    100% {
        right: 50%;
        opacity: 0;
    }
}

/* ---- Bomb units ---- */
.bomb-unit {
    position: absolute;
    top: -8%;
    z-index: 12;
    animation: bombFall ease-in infinite;
}

.bu1 {
    left: 28%;
    animation-duration: 2.2s;
    animation-delay: 0s;
}

.bu2 {
    left: 50%;
    animation-duration: 2.7s;
    animation-delay: 0.85s;
}

.bu3 {
    left: 65%;
    animation-duration: 2.0s;
    animation-delay: 1.5s;
}

.bu4 {
    left: 38%;
    animation-duration: 2.5s;
    animation-delay: 1.15s;
}

@keyframes bombFall {
    0% {
        top: -8%;
    }

    65% {
        top: 55%;
    }

    100% {
        top: 55%;
    }
}

.bomb-ico {
    display: block;
    font-size: 2.2rem;
    animation: bombVis ease-in infinite;
}

.bu1 .bomb-ico,
.bu1 .boom-ico {
    animation-duration: 2.2s;
    animation-delay: 0s;
}

.bu2 .bomb-ico,
.bu2 .boom-ico {
    animation-duration: 2.7s;
    animation-delay: 0.85s;
}

.bu3 .bomb-ico,
.bu3 .boom-ico {
    animation-duration: 2.0s;
    animation-delay: 1.5s;
}

.bu4 .bomb-ico,
.bu4 .boom-ico {
    animation-duration: 2.5s;
    animation-delay: 1.15s;
}

@keyframes bombVis {
    0% {
        opacity: 1;
        transform: rotate(0deg);
    }

    60% {
        opacity: 1;
        transform: rotate(220deg);
    }

    65% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.boom-ico {
    position: absolute;
    top: -0.4em;
    left: -0.6em;
    font-size: 3.5rem;
    animation: boomVis ease-out infinite;
}

@keyframes boomVis {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    63% {
        opacity: 0;
        transform: scale(0);
    }

    67% {
        opacity: 1;
        transform: scale(2.0);
    }

    78% {
        opacity: 1;
        transform: scale(1.3);
    }

    92% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Image shake */
@keyframes imageShake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    15% {
        transform: translate(-2px, 1px);
    }

    30% {
        transform: translate(2px, -1px);
    }

    45% {
        transform: translate(-1px, 2px);
    }

    60% {
        transform: translate(2px, 1px);
    }

    75% {
        transform: translate(-2px, -1px);
    }

    90% {
        transform: translate(1px, 2px);
    }
}

/* ===== 2025 Results Panel ===== */
.results-2025-panel {
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.12);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.results-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 0;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.results-header-title {
    letter-spacing: 0.02em;
}

.results-toggle-icon {
    font-size: 1.2rem;
}

.results-chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.results-2025-panel.expanded .results-chevron {
    transform: rotate(180deg);
}

.results-body {
    padding: 0 14px 10px;
}

.results-question {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.3;
}

.result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.result-label {
    flex: 0 0 180px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

.result-bar-track {
    flex: 1;
    height: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.85;
}

.result-votes {
    flex: 0 0 58px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: right;
}

.result-pct {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
}

.results-total {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: right;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 6px;
}

/* ===== Global Responsive Enhancements ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Safe area support for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===== Tablet & Small Laptop (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .question-card {
        max-width: 95%;
        padding: 45px;
    }

    .question-text {
        font-size: 1.9rem;
    }

    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .success-card {
        max-width: 90%;
        padding: 45px;
    }
}

/* ===== Tablet Portrait & Large Phones (max-width: 768px) ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 0.12em;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .survey-container {
        padding: 80px 12px 30px;
    }

    .progress-bar {
        max-width: 95%;
        margin-bottom: 30px;
    }

    .question-card {
        max-width: 100%;
        padding: 30px 20px;
        min-height: auto;
        border-radius: 20px;
    }

    .question-text {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .option-btn {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 48px;
        /* Touch-friendly tap target */
        border-radius: 12px;
    }

    .option-btn:hover {
        transform: none;
        /* Disable translateX on mobile — it's jarring */
    }

    .option-btn:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.98);
    }

    .nav-button {
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .question-counter {
        font-size: 0.8rem;
    }

    /* Results panel adjustments */
    .result-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .result-label {
        flex: 1 1 100%;
        text-align: left;
        font-size: 0.78rem;
    }

    .result-bar-track {
        flex: 1;
    }

    .result-votes {
        flex: 0 0 55px;
    }

    .results-header {
        padding: 12px 16px 0;
        font-size: 0.88rem;
    }

    .results-body {
        padding: 0 16px 16px;
    }

    /* Submission & Success cards */
    .success-card {
        padding: 35px 20px;
        border-radius: 20px;
        max-width: 95%;
    }

    .success-section {
        padding: 20px 10px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .malhar-roe-section,
    .extra-photo-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .malhar-roe-img,
    .extra-photo-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 70vw;
        object-fit: cover;
        display: block;
    }

    /* Stacked layout on mobile — photo on top, card below */
    .submission-layout {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    .submission-photo {
        position: relative;
        inset: auto;
        height: 42vh;
        flex-shrink: 0;
    }

    .submission-photo img {
        object-position: center 20%;
    }

    .submission-card {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 20px 16px 16px;
        overflow-y: visible;
    }

    .submission-card .navigation-controls {
        margin-top: 16px;
        padding-top: 12px;
    }

    .summary-list {
        margin: 12px 0;
    }

    .summary-item {
        padding: 4px 8px;
        margin-bottom: 4px;
    }

    .summary-question {
        font-size: 0.55rem;
    }

    .summary-answer {
        font-size: 0.7rem;
    }
}

/* ===== Small Phones (max-width: 480px) ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.08em;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .hero-content {
        padding: 1rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        width: 80%;
        max-width: 280px;
    }

    .survey-container {
        padding: 70px 8px 20px;
    }

    .question-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .question-text {
        font-size: 1.15rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .options-grid {
        gap: 10px;
        margin-bottom: 25px;
    }

    .option-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .navigation-controls {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .nav-button {
        flex: 1;
        min-width: 100px;
        text-align: center;
        padding: 12px 16px;
    }

    .question-counter {
        order: -1;
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 8px;
        font-size: 0.75rem;
    }

    .results-2025-panel {
        margin-bottom: 20px;
    }

    .result-votes {
        flex: 0 0 50px;
        font-size: 0.75rem;
    }

    .result-pct {
        font-size: 0.65rem;
    }

    .success-card {
        padding: 30px 16px;
        border-radius: 16px;
    }

    .submission-card {
        padding: 16px 12px 12px;
    }

    .submission-photo {
        height: 35vh;
    }

    .success-icon {
        font-size: 3rem;
    }

    .summary-item {
        padding: 12px 14px;
        border-radius: 10px;
    }
}

/* ===== Landscape orientation on phones ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .question-card {
        min-height: auto;
    }

    .survey-container {
        padding-top: 20px;
    }
}