/* Chapter 3 Specific Styles */

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

/* Variables */
:root {
    --lilly-white: #ffffff;
    --lilly-black: #212121;
    --lilly-red: #d52b1e;
}

body {
    font-family: Arial, sans-serif;
    color: var(--lilly-black);
}

/* Variables - extended */
:root {
    --lilly-pink: #fbcfc8;
}

/* Section 1 */
#chapter-3 .section-1 {
    width: 100%;
    height: 825px;
    margin: 0 auto;
    padding-top: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#chapter-3 .section-text {
    width: 844px;
    margin-left: 218px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 58px;
    position: relative;
    z-index: 2;
}

#chapter-3 .headline {
    width: 640px;
}

#chapter-3 .headline h1 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 50.4px;
    color: #e1251b;
    text-align: left;
}

#chapter-3 .body-text {
    width: 676px;
    padding-left: 100px;
}

#chapter-3 .body-text p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 21.6px;
    color: #000000;
    text-align: left;
    margin-bottom: 1em;
}

#chapter-3 .body-text p:last-child {
    margin-bottom: 0;
}

#chapter-3 .body-text sup {
    font-size: 12px;
    vertical-align: super;
}

/* Chapter illustration */
#chapter-3 .chapter-illustration {
    position: absolute;
    width: 100%;
    height: auto;
    z-index: 1;
    padding-top: 390px;
}

/* Scroll bar */
#chapter-3 .scroll-bar {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--lilly-pink);
    display: flex;
    align-items: center;
    padding-left: 19.6%;
    gap: 8px;
    z-index: 3;
}

#chapter-3 .scroll-icon {
    height: 21px;
    width: auto;
}

#chapter-3 .scroll-text {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 16.8px;
    color: #e1251b;
}

#chapter-3 .scroll-to-video {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#chapter-3 .scroll-to-video:hover {
    opacity: 0.85;
}

/* Section 2 - Video */
#chapter-3 .section-2 {
    width: 100%;
    padding: 43px 3% 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

#chapter-3 .section-2-headline {
    width: 100%;
    padding-left: 19%;
}

#chapter-3 .section-2-headline h2 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 40px;
    color: #000000;
    text-align: left;
}

#chapter-3 .section-video-text {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

#chapter-3 .section-video {
    width: 60%;
}

#chapter-3 .video-static {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #212121;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#chapter-3 .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#chapter-3 .play-button {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(33, 33, 33, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chapter-3 .play-icon {
    width: 0;
    height: 0;
    border-left: 30px solid #ffffff;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    margin-left: 8px;
}

#chapter-3 .section-2-text {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 52px;
}

#chapter-3 .section-2-text .quote {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    color: var(--lilly-black);
}

#chapter-3 .video-description p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 21.6px;
    color: #000000;
    margin-bottom: 0.5em;
}

#chapter-3 .video-description p:first-child {
    margin-bottom: 1em;
}

/* Section 3 - Poll */
#chapter-3 .section-3 {
    width: 100%;
    padding: 43px 3% 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

#chapter-3 .section-3-headline {
    width: 100%;
    padding-left: 19%;
}

#chapter-3 .section-3-headline h2 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 40px;
    color: #000000;
    text-align: left;
}

#chapter-3 .section-3-content {
    width: 100%;
    padding-left: 23%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#chapter-3 .poll-subheadline p {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    color: var(--lilly-black);
    width: 753px;
}

#chapter-3 .poll-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#chapter-3 .poll-instruction {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 21.6px;
    color: var(--lilly-black);
}

#chapter-3 .poll-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 760px;
}

#chapter-3 .poll-option {
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 18px;
    border: 1px solid var(--lilly-pink);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#chapter-3 .poll-option:hover {
    background-color: rgba(251, 207, 200, 0.2);
}

#chapter-3 .poll-option input[type="radio"] {
    display: none;
}

#chapter-3 .radio-custom {
    width: 22px;
    height: 22px;
    border: 1px solid var(--lilly-pink);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

#chapter-3 .poll-option input[type="radio"]:checked+.radio-custom {
    border-color: var(--lilly-red);
}

#chapter-3 .poll-option input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--lilly-red);
    border-radius: 50%;
}

#chapter-3 .option-text {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 21.6px;
    color: #000000;
}

#chapter-3 .poll-submit {
    width: 284px;
    height: 40px;
    background-color: #e1251b;
    border: none;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 21.6px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#chapter-3 .poll-submit:hover {
    background-color: #c41f17;
}

/* Section 4 - Carousel */
#chapter-3 .section-4 {
    width: 100%;
    padding: 43px 3% 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: var(--lilly-pink);
}

#chapter-3 .section-4-headline {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 15%;
    padding-right: 15%;
}

#chapter-3 .section-4-headline h2 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 40px;
    color: var(--lilly-red);
    text-align: left;
}

#chapter-3 .carousel-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chapter-3 .carousel-wrapper {
    width: 70%;
    overflow: hidden;
}

#chapter-3 .carousel-slide {
    width: 100%;
}

#chapter-3 .carousel-image {
    width: 100%;
    height: auto;
    display: block;
}

#chapter-3 .carousel-navigation {
    position: absolute;
    width: 85%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

#chapter-3 .carousel-arrow {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

#chapter-3 .carousel-arrow:hover {
    opacity: 0.7;
}


#chapter-3 .carousel-arrow img {
    width: 100%;
    height: auto;
}

#chapter-3 .carousel-cta {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#chapter-3 .cta-button-download {
    width: 380px;
    height: 40px;
    background-color: #e1251b;
    border: none;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 21.6px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#chapter-3 .cta-button-download:hover {
    background-color: #c41f17;
}

#chapter-3 .carousel-references {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 15%;
    padding-right: 15%;
}

#chapter-3 .carousel-references p {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #666666;
    margin-bottom: 4px;
}

#chapter-3 .carousel-references p:last-child {
    margin-bottom: 0;
}

/* Section 5 - Carousel without title */
#chapter-3 .section-5 {
    width: 100%;
    padding: 43px 3% 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: var(--lilly-pink);
}

/* Section 6 - Website image with CTA */
#chapter-3 .section-6 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 147px;
    position: relative;
}

#chapter-3 .section-6-content {
    width: 83%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 74px;
    padding-right: 70px;
    position: relative;
    z-index: 1;
}

#chapter-3 .section-6-image {
    width: 40%;
}

#chapter-3 .website-image {
    width: 100%;
    height: auto;
    display: block;
}

#chapter-3 .section-6-text {
    width: 50%;
}

#chapter-3 .section-6-text h2 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 40px;
    color: #e1251b;
    text-align: left;
}

#chapter-3 .section-6-subtitle {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 21.6px;
    color: #000000;
    text-align: left;
    margin-top: 20px;
}

#chapter-3 .bottom-cta {
    width: 100%;
    height: 210px;
    background-color: var(--lilly-red);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 85px;
    margin-top: -210px;
}

#chapter-3 .cta-button-white {
    width: 232px;
    height: 40px;
    background-color: var(--lilly-white);
    border: none;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 21.6px;
    color: var(--lilly-red);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */

/* Extra Large Desktop (max-width: 1440px) - Optimized for iPad Pro Landscape */
@media (max-width: 1440px) {
    /* Section 1 - Hero */
    #chapter-3 .section-1 {
        height: 718px;
    }

    #chapter-3 .section-text {
        width: 800px;
        margin-left: 160px;
    }

    #chapter-3 .headline {
        width: 600px;
    }

    #chapter-3 .headline h1 {
        font-size: 52px;
        line-height: 46px;
    }

    #chapter-3 .body-text {
        width: 650px;
        padding-left: 90px;
    }

    #chapter-3 .scroll-bar {
        padding-left: 15%;
        bottom: 18%;
    }

    /* Section 2 - Video */
    #chapter-3 .section-2 {
        padding-bottom: 36px;
        gap: 50px;
    }

    #chapter-3 .section-2-headline {
        padding-left: 14%;
    }

    #chapter-3 .section-2-headline h2 {
        font-size: 36px;
    }

    #chapter-3 .section-video {
        width: 55%;
    }

    #chapter-3 .section-2-text {
        width: 40%;
        gap: 40px;
    }

    #chapter-3 .section-2-text .quote {
        font-size: 22px;
        line-height: 26px;
    }

    #chapter-3 .video-description p {
        font-size: 17px;
        line-height: 20px;
    }

    /* Section 3 - Poll */
    #chapter-3 .section-3 {
        padding: 0 3% 60px;
    }

    #chapter-3 .section-3-headline {
        padding-left: 12%;
    }

    #chapter-3 .section-3-headline h2 {
        font-size: 36px;
    }

    #chapter-3 .section-3-content {
        padding-left: 15%;
    }

    #chapter-3 .poll-subheadline p {
        width: 700px;
        font-size: 22px;
        line-height: 26px;
    }

    #chapter-3 .poll-options {
        width: 700px;
    }

    #chapter-3 .poll-instruction {
        font-size: 17px;
    }

    #chapter-3 .option-text {
        font-size: 17px;
    }

    /* Section 4 - Carousel */
    #chapter-3 .section-4 {
        padding: 40px 8% 60px;
        gap: 35px;
    }

    #chapter-3 .section-4-headline {
        padding-left: 10%;
        padding-right: 10%;
    }

    #chapter-3 .section-4-headline h2 {
        font-size: 36px;
    }

    #chapter-3 .carousel-wrapper {
        width: 65%;
    }

    #chapter-3 .carousel-navigation {
        width: 78%;
    }

    #chapter-3 .carousel-cta {
        width: 65%;
    }

    #chapter-3 .cta-button-download {
        width: 375px;
    }

    #chapter-3 .carousel-references {
        padding-left: 10%;
        padding-right: 10%;
    }

    /* Section 5 - Carousel without title */
    #chapter-3 .section-5 {
        padding: 40px 8% 60px;
    }

    /* Section 6 - Website Image with CTA */
    #chapter-3 .section-6 {
        padding-top: 120px;
    }

    #chapter-3 .section-6-content {
        width: 85%;
        gap: 60px;
        padding-right: 50px;
    }

    #chapter-3 .section-6-image {
        width: 38%;
    }

    #chapter-3 .section-6-text {
        width: 52%;
        margin-bottom: 140px;
    }

    #chapter-3 .section-6-text h2 {
        font-size: 36px;
        line-height: 40px;
    }

    #chapter-3 .section-6-subtitle {
        font-size: 17px;
        line-height: 20px;
        margin-top: 18px;
    }

    #chapter-3 .bottom-cta {
        height: 150px;
        margin-top: -150px;
        padding-top: 65px;
    }

    #chapter-3 .cta-button-white {
        margin-left: 85px;
    }
}

/* Large Desktop (max-width: 1280px) */
@media (max-width: 1280px) {
    #chapter-3 .section-text {
        width: 700px;
        margin-left: 150px;
    }

    #chapter-3 .headline {
        width: 550px;
    }

    #chapter-3 .body-text {
        width: 600px;
        padding-left: 80px;
    }

    #chapter-3 .section-2-headline,
    #chapter-3 .section-3-headline {
        padding-left: 15%;
    }

    #chapter-3 .section-3-content {
        padding-left: 18%;
    }

    #chapter-3 .poll-subheadline p,
    #chapter-3 .poll-options {
        width: 650px;
    }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    #chapter-3 .chapter-illustration {
        padding-top: 415px;
    }

    #chapter-3 .section-1 {
        height: auto;
        min-height: 600px;
    }

    #chapter-3 .section-text {
        width: 90%;
        margin-left: 40px;
    }

    #chapter-3 .headline {
        width: 100%;
    }

    #chapter-3 .headline h1 {
        font-size: 44px;
        line-height: 44px;
    }

    #chapter-3 .body-text {
        width: 100%;
        padding-left: 60px;
    }

    #chapter-3 .section-2-headline,
    #chapter-3 .section-3-headline {
        padding-left: 40px;
    }

    #chapter-3 .section-2-headline h2,
    #chapter-3 .section-3-headline h2 {
        font-size: 32px;
        line-height: 36px;
    }

    #chapter-3 .section-3-content {
        padding-left: 40px;
    }

    #chapter-3 .poll-subheadline p {
        width: 100%;
        font-size: 20px;
    }

    #chapter-3 .poll-options {
        width: 100%;
        max-width: 650px;
    }

    #chapter-3 .section-4-headline h2 {
        font-size: 32px;
        line-height: 36px;
    }

    #chapter-3 .carousel-wrapper {
        width: 80%;
    }

    #chapter-3 .section-6-content {
        width: 90%;
        gap: 40px;
        padding-right: 40px;
        align-items: center;
    }

    #chapter-3 .section-6-image {
        width: 45%;
    }

    #chapter-3 .section-6-text {
        width: 55%;
        margin-bottom: 190px;
    }

    #chapter-3 .section-6-text h2 {
        font-size: 32px;
        line-height: 36px;
    }

    #chapter-3 .section-6-subtitle {
        font-size: 16px;
        margin-top: 15px;
    }

    #chapter-3 .bottom-cta {
        height: 180px;
        margin-top: -180px;
        padding-top: 70px;
        padding-left: 160px;
    }

    #chapter-3 .scroll-bar {
        padding-left: 40px;
        bottom: 1%;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Section 1 */
    #chapter-3 .section-1 {
        padding: 20px;
        height: auto;
        min-height: auto;
    }

    #chapter-3 .section-text {
        width: 100%;
        margin-left: 0;
        gap: 30px;
    }

    #chapter-3 .headline {
        width: 100%;
    }

    #chapter-3 .headline h1 {
        font-size: 32px;
        line-height: 36px;
    }

    #chapter-3 .body-text {
        width: 100%;
        padding-left: 0;
    }

    #chapter-3 .body-text p {
        font-size: 16px;
        line-height: 20px;
    }

    #chapter-3 .chapter-illustration {
        position: relative;
        width: 100%;
        height: auto;
        padding-top: 0;
        margin-top: 20px;
    }

    #chapter-3 .scroll-bar {
        position: relative;
        bottom: auto;
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 20px;
    }

    /* Section 2 */
    #chapter-3 .section-2 {
        padding: 30px 20px;
        gap: 30px;
    }

    #chapter-3 .section-2-headline {
        padding-left: 0;
    }

    #chapter-3 .section-2-headline h2 {
        font-size: 28px;
        line-height: 32px;
    }

    #chapter-3 .section-video-text {
        flex-direction: column;
        gap: 30px;
    }

    #chapter-3 .section-video,
    #chapter-3 .section-2-text {
        width: 100%;
    }

    #chapter-3 .section-2-text .quote {
        font-size: 20px;
        line-height: 24px;
    }

    #chapter-3 .section-2-text {
        gap: 30px;
    }

    /* Section 3 - Poll */
    #chapter-3 .section-3 {
        padding: 30px 20px;
        gap: 30px;
    }

    #chapter-3 .section-3-headline {
        padding-left: 0;
    }

    #chapter-3 .section-3-headline h2 {
        font-size: 28px;
        line-height: 32px;
    }

    #chapter-3 .section-3-content {
        padding-left: 0;
    }

    #chapter-3 .poll-subheadline p {
        width: 100%;
        font-size: 18px;
        line-height: 22px;
    }

    #chapter-3 .poll-options {
        width: 100%;
    }

    #chapter-3 .poll-option {
        padding: 12px;
    }

    #chapter-3 .option-text {
        font-size: 16px;
    }

    #chapter-3 .poll-submit {
        width: 100%;
        max-width: 284px;
    }

    /* Section 4 & 5 - Carousel */
    #chapter-3 .section-4,
    #chapter-3 .section-5 {
        padding: 30px 20px;
        gap: 30px;
    }

    #chapter-3 .section-4-headline {
        padding-left: 0;
        padding-right: 0;
    }

    #chapter-3 .section-4-headline h2 {
        font-size: 24px;
        line-height: 28px;
    }

    #chapter-3 .carousel-wrapper {
        width: 100%;
    }

    #chapter-3 .carousel-navigation {
        width: 100%;
        padding: 0 10px;
    }

    #chapter-3 .carousel-cta {
        width: 100%;
    }

    #chapter-3 .cta-button-download {
        width: 100%;
    }

    #chapter-3 .carousel-references {
        padding-left: 0;
        padding-right: 0;
    }

    /* Section 6 */
    #chapter-3 .section-6 {
        padding-top: 60px;
    }

    #chapter-3 .section-6-content {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        gap: 30px;
    }

    #chapter-3 .section-6-image,
    #chapter-3 .section-6-text {
        width: 100%;
    }

    #chapter-3 .section-6-text h2 {
        font-size: 28px;
        line-height: 32px;
    }

    #chapter-3 .section-6-subtitle {
        font-size: 16px;
        margin-top: 15px;
    }

    #chapter-3 .bottom-cta {
        height: 150px;
        margin-top: -150px;
        padding-top: 60px;
    }

    #chapter-3 .cta-button-white {
        width: 200px;
        font-size: 16px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    #chapter-3 .headline h1 {
        font-size: 26px;
        line-height: 30px;
    }

    #chapter-3 .body-text p {
        font-size: 14px;
        line-height: 18px;
    }

    #chapter-3 .section-2-headline h2,
    #chapter-3 .section-3-headline h2 {
        font-size: 24px;
        line-height: 28px;
    }

    #chapter-3 .section-2-text .quote {
        font-size: 18px;
        line-height: 22px;
    }

    #chapter-3 .poll-subheadline p {
        font-size: 16px;
        line-height: 20px;
    }

    #chapter-3 .option-text {
        font-size: 14px;
    }

    #chapter-3 .section-4-headline h2 {
        font-size: 20px;
        line-height: 24px;
    }

    #chapter-3 .section-6-text h2 {
        font-size: 24px;
        line-height: 28px;
    }

    /* Section 6 - Reorder: text → cta → image */
    #chapter-3 .section-6 {
        display: flex;
        flex-direction: column;
    }

    #chapter-3 .section-6-content {
        display: contents;
    }

    #chapter-3 .section-6-text {
        order: 1;
        padding: 0 20px;
    }

    #chapter-3 .section-6-subtitle {
        font-size: 14px;
        line-height: 18px;
        margin-top: 10px;
    }

    #chapter-3 .bottom-cta {
        order: 2;
        position: relative;
        margin-top: 30px;
        height: auto;
        padding: 30px 20px 0 20px;
    }

    #chapter-3 .section-6-image {
        order: 3;
        padding: 20px 20px 0 20px;
        background: var(--lilly-red);
        margin-top: -1px;
    }

    #chapter-3 .video-description p {
        font-size: 14px;
    }

    #chapter-3 .play-button {
        width: 60px;
        height: 60px;
    }

    #chapter-3 .play-icon {
        border-left-width: 20px;
        border-top-width: 12px;
        border-bottom-width: 12px;
    }
}

/* Add more Chapter 3 specific styles here as needed */
