/* General Styles */
.contest-page-body {
    margin: 0;
    font-family: "BCAASansRegular", sans-serif;
}

.main.contest-page-body {
    margin-top: 0;
}

/* Hero Banner */
.contest-hero-banner {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #2952cc;
    display: flex;
    align-items: center;
    overflow: hidden;
    aspect-ratio: 2560 / 900;
}

.contest-hero-banner .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.contest-hero-banner .hero-background-mobile {
    display: none;
}

.contest-hero-banner .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    margin: 0 auto;
    padding: 60px 10%;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.contest-hero-banner .hero-inner {
    padding: 0 15px;
}

.contest-hero-banner .hero-title {
    color: white;
    font-family: "BCAASansBold", sans-serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
}

.contest-hero-banner .hero-italic {
    font-style: italic;
    margin-right: 0.15em;
}

.contest-hero-banner .hero-button {
    background-color: #47a60e;
    color: white;
    padding: 15px 40px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    font-family: "BCAASansBold", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.contest-hero-banner .hero-button:hover {
    background-color: #139304;
}

/* Container */
.flex-container {
    display: flex;
    margin-bottom: 60px;
    padding: 0 10%;
    margin: 0 auto;
    font-family: "BCAASansRegular", sans-serif;
    align-items: flex-start;
    flex-wrap: wrap;
    align-items: center;
}

/* Contest Introduction */
.contest-intro {
    font-size: 20px;
    line-height: 30px;
    font-family: "BCAASansRegular", sans-serif;
    color: #5a5a5a;
    font-weight: 100;
    padding: 0 15px;
}

.contest-intro p {
    margin-bottom: 20px;
}

/* How to Participate Section */
.participate-header {
    color: #0050c4;
    font-family: "BCAASansBold", sans-serif;
    font-size: 35px;
    font-weight: 900;
    padding-left: 15px;
}

.participate-header::after {
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 1.5rem;
    background-color: #ed1c24;
    content: "";
}

.participate-content {
    padding-left: 15px;
    padding-top: 30px;
    width: 100%;
}

.step-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.step-number {
    background-color: #0050c4;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "BCAASansBold", sans-serif;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-text {
    font-size: 20px;
    line-height: 30px;
    font-family: "BCAASansRegular", sans-serif;
    color: #5a5a5a;
    font-weight: 100;
    flex: 1;
}

.checkmark-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.checkmark-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 30px;
    font-family: "BCAASansRegular", sans-serif;
    color: #5a5a5a;
    font-weight: 100;
}

.checkmark-list li img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

.additional-note {
    font-size: 20px;
    line-height: 26px;
    font-family: "BCAASansRegular", sans-serif;
    color: #5a5a5a;
    font-weight: 100;
    margin-top: 15px;
}

.share-button {
    background-color: #47a60e;
    color: white;
    padding: 15px 40px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    font-family: "BCAASansBold", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 20px;
    text-align: center;
    min-width: 200px;
    box-sizing: border-box;
}

.share-button:hover {
    background-color: #139304;
}

.contest-buttons {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.contest-buttons .share-button {
    flex: 1;
    max-width: 200px;
}

/* Win $500 Section */
.car-contest_second_header {
    font-family: "BCAASansBold", sans-serif;
    font-size: 35px;
    width: 60%;
    color: #0050c4;
    font-weight: 700;
    padding-left: 15px;
}

.car-contest_second_header::after {
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 1.5rem;
    background-color: #ed1c24;
    content: "";
}

.upgrade-button {
    background-color: #47a60e;
    color: white;
    padding: 15px 40px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    font-family: "BCAASansBold", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 20px;
}

.upgrade-button:hover {
    background-color: #139304;
}

/* FAQ Section */
.faq-dropdown-container {
    width: 100%;
    height: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.faq-dropdown-container details {
    background-color: #0050c4;
    font-family: "BCAASansBold", sans-serif;
    color: #fff;
    font-size: 20px;
}

.faq-dropdown-container summary {
    padding: .5em 1.3rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    transition: height 1s ease;
}

.faq-dropdown-container summary::-webkit-details-marker {
    display: none;
}

.faq-dropdown-container summary:after {
    content: "\002B";
}

.faq-dropdown-container details[open] summary:after {
    content: "\00D7";
}

.faq-dropdown-container details[open] div {
    padding: 1em;
    background-color: white;
    color: black;
    font-size: 16px;
    font-family: "BCAASansRegular", sans-serif;
    font-weight: 100;
}

/* Footer */
.car-contest-footer {
    padding-top: 65px;
    text-align: left;
    font-weight: 100;
    width: 100%;
    font-size: 14px;
    line-height: 24px;
    color: #5a5a5a;
    padding-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media only screen and (max-width: 767px) {
    .contest-hero-banner {
        aspect-ratio: auto;
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0;
    }

    .contest-hero-banner .hero-background-desktop {
        display: none;
    }

    .contest-hero-banner .hero-background-mobile {
        display: block;
        position: relative;
        width: 100%;
        height: 350px;
        object-fit: cover;
        object-position: 0px -150px;
    }

    .contest-hero-banner .hero-content {
        padding: 0px 20px 0 20px;
        background-color: #2952cc;
    }

    .flex-container {
        padding: 0 5%;
    }

    .contest-hero-banner .hero-inner {
        padding: 0;
    }

    .contest-hero-banner .hero-title {
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 20px;
        color: white;
    }

    .contest-hero-banner .hero-button {
        display: none;
    }

    /* Connect the intro section to hero banner */
    .main.contest-page-body section:has(.contest-intro) {
        padding: 0 !important;
        margin: 0 !important;
        background-color: #2952cc !important;
    }

    .main.contest-page-body section:has(.contest-intro) .flex-container {
        padding: 10px 20px 0 !important;
        margin: 0 !important;
        background-color: transparent !important;
    }

    .contest-intro {
        font-size: 14px !important;
        line-height: 22px !important;
        padding: 0 0 0 0 !important;
        background-color: transparent !important;
        color: white !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .contest-intro p {
        margin-bottom: 15px !important;
        color: white !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* How to participate section - NO border */
    .main.contest-page-body > section[style*="backgroundColor: \"#ffffff\""] {
        border: none !important;
        margin: 20px !important;
        padding: 30px 20px !important;
    }

    .main.contest-page-body > section[style*="backgroundColor: \"#ffffff\""] .flex-container {
        padding: 0;
        margin: 0;
    }

    /* $500 gas card section - WHITE background WITH blue border */
    .main.contest-page-body > section[style*="backgroundColor: \"#edf3f9\""] {
        background-color: white !important;
        border: 1px solid #0050c4 !important;
        border-radius: 8px !important;
        margin: 20px !important;
        padding: 30px 20px !important;
    }

    .main.contest-page-body > section[style*="backgroundColor: \"#edf3f9\""] .flex-container {
        padding: 0;
        margin: 0;
    }

    /* Alternative selector for $500 section using header */
    .main.contest-page-body section:has(.car-contest_second_header) {
        background-color: white !important;
        border: 1px solid #0050c4 !important;
        border-radius: 8px !important;
        margin: 20px !important;
        padding: 30px 20px !important;
    }

    /* Congratulations section - no border */
    .main.contest-page-body > section[style*="paddingTop: \"50px\""][style*="paddingBottom: \"50px\""]:not([style*="backgroundColor"]) {
        border: none !important;
        margin: 20px !important;
        padding: 30px 20px !important;
    }

    .main.contest-page-body > section[style*="paddingTop: \"50px\""][style*="paddingBottom: \"50px\""]:not([style*="backgroundColor"]) .flex-container {
        padding: 0;
        margin: 0;
    }

    .participate-header {
        font-size: 24px;
        padding-left: 0;
        margin-top: 0;
    }

    .participate-header::after {
        margin-top: 1rem;
    }

    .participate-content {
        padding-left: 0;
        padding-top: 20px;
    }

    .step-container {
        margin-bottom: 20px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin-right: 15px;
    }

    .step-text,
    .checkmark-list li {
        font-size: 14px;
        line-height: 22px;
    }

    .checkmark-list {
        margin-top: 10px;
    }

    .checkmark-list li {
        margin-bottom: 10px;
    }

    .checkmark-list li img {
        width: 20px;
        height: 20px;
    }

    .share-button {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        margin-top: 20px;
    }

    .contest-buttons {
        flex-direction: column;
        width: 100%;
    }

    .contest-buttons .share-button {
        max-width: 100%;
    }

    .car-contest_second_header {
        width: 100%;
        font-size: 20px;
        padding-left: 0;
    }

    .car-contest_second_header::after {
        margin-top: 1rem;
    }

    .upgrade-button {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .car-contest-footer {
        font-size: 12px;
        line-height: 20px;
        padding-top: 30px;
    }

    /* FAQ section - no border */
    .main.contest-page-body > section:nth-child(6) {
        background-color: transparent !important;
        border: none !important;
        margin: 20px !important;
        padding: 0 20px !important;
    }

    .main.contest-page-body > section:nth-child(6) .flex-container {
        padding: 0;
    }
}

/* Desktop Responsive */
@media only screen and (min-width: 1200px) {
    .car-contest-footer {
        padding-left: 120px;
        padding-right: 120px;
    }
}
