/* ============================================
   Upcoming Car Detail Page — Redesigned
   ============================================ */

/* ---- Hero ---- */
.upcoming-detail-hero {
    --upcoming-detail-header-height: 94px;
    --upcoming-detail-sticky-offset: var(--upcoming-detail-header-height);
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin-top: var(--upcoming-detail-header-height);
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 1600 / 680;
    height: auto;
    max-height: 680px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

/* Footer */
.footer-upcomming {
    margin-top: 86px;
}

/* Swiper hero */
.upcoming-hero-swiper {
    width: 100%;
    height: 100%;
    background: transparent;
    box-shadow: none;
}

.upcoming-hero-swiper-mobile {
    display: none;
}

.upcoming-hero-swiper .swiper-wrapper {
    height: 100%;
}

.upcoming-hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.upcoming-hero-swiper .swiper-slide picture {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    box-shadow: none;
}

.upcoming-hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
    box-shadow: none;
}

/* Pagination bullets */
.upcoming-hero-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: background 0.2s, transform 0.2s;
}

.upcoming-hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.3);
}

.upcoming-hero-swiper .swiper-button-next,
.upcoming-hero-swiper .swiper-button-prev {
    color: #fff;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: border-color 0.2s, background 0.2s;
}

.upcoming-hero-swiper .swiper-button-next:hover,
.upcoming-hero-swiper .swiper-button-prev:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

.upcoming-hero-swiper .swiper-button-next::after,
.upcoming-hero-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

.upcoming-hero-swiper-single .swiper-pagination,
.upcoming-hero-swiper-single .swiper-button-next,
.upcoming-hero-swiper-single .swiper-button-prev {
    display: none;
}

/* Overlay on top of swiper */
.upcoming-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 48px 72px 64px;
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.upcoming-detail-hero-overlay a,
.upcoming-detail-hero-overlay button {
    pointer-events: auto;
}

.upcoming-detail-hero-badge {
    display: inline-block;
    background: #eb0a1e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    margin-bottom: 14px;
    width: fit-content;
}

.upcoming-detail-hero-title {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 2px 12px rgba(0,0,0,0.32);
    text-transform: uppercase;
}

.upcoming-detail-hero-sub {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    color: rgba(255,255,255,0.86);
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.upcoming-hero-swiper .swiper-pagination {
    bottom: 0 !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
}

.upcoming-hero-swiper .swiper-pagination-bullet {
    width: 240px;
    max-width: 25vw;
    height: 8px;
    border-radius: 0;
    background: #fff;
    opacity: 0.9;
    margin: 0 !important;
    transition: background 0.2s, opacity 0.2s;
}

.upcoming-hero-swiper .swiper-pagination-bullet-active {
    background: #101010;
    opacity: 1;
    transform: none;
}

/* ---- Section common ---- */
.upcoming-detail-section {
    padding: 72px 0;
}

.upcoming-detail-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0 0 48px;
    position: relative;
}

.upcoming-detail-section-title::after {
    content: none;
}

/* ---- TỔNG QUAN ---- */
.upcoming-detail-overview {
    background: #fff;
    padding: 86px 0 80px;
}

.upcoming-detail-overview-inner {
    max-width: 1116px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 78px;
}

.upcoming-detail-ov-img {
    flex: 0 0 62%;
    max-width: 62%;
    will-change: transform, opacity;
}

.upcoming-detail-ov-img img {
    width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

.upcoming-detail-ov-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    will-change: transform, opacity;
    padding: 12px;
}

.upcoming-detail-ov-name {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.upcoming-detail-ov-price {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.upcoming-detail-ov-price span {
    font-size: 20px;
    font-weight: 800;
    color: #eb0a1e;
    display: block;
    margin-top: 2px;
}

/* Color block */
.upcoming-detail-color-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 0;
    border-top: 0;
}

.upcoming-detail-color-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #101010;
    letter-spacing: 0;
}

.upcoming-detail-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.upcoming-detail-color-dot.wrapper-color {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    padding: 0;
    appearance: none;
}

.upcoming-detail-color-dot:hover {
    transform: scale(1.1);
}

.upcoming-detail-color-dot.wrapper-color.active {
    border-color: #1a1a1a;
}

.upcoming-detail-color-ring {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0,0,0,0.12);
    border-radius: 50%;
    background: #fff;
}

.upcoming-detail-color-dot .color-item {
    display: block;
    width: 0;
    height: 0;
    border-width: 7px;
    border-style: solid;
    border-radius: 50%;
}

.upcoming-detail-color-name {
    font-size: 13px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* Specs grid */
.upcoming-detail-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 4px 0 0;
    margin: 0;
    border-top: 0;
    color: #000;
    list-style: none;
}

.upcoming-detail-spec-item {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.45;
    color: #1f1f1f;
}

.upcoming-detail-spec-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2f2f2f;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.upcoming-detail-spec-label {
    flex: 0 0 auto;
    color: #4b4b4b;
    font-weight: 400;
}

.upcoming-detail-spec-value {
    min-width: 0;
    color: #111;
    font-weight: 600;
    word-break: break-word;
}

/* CTA */
.btn-upcoming-register-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    width: fit-content;
}

.btn-upcoming-register-inline:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* ---- KHÁM PHÁ (slider style) ---- */
.upcoming-detail-explore {
    background: #d8d8d8;
    padding: 76px 24px 72px;
}

.upcoming-detail-explore-inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* Carousel wrapper */
.upcoming-explore-carousel {
    position: relative;
}

.upcoming-explore-swiper {
    position: relative;
    overflow: hidden;
    height: var(--upcoming-explore-slide-height, auto);
}

.upcoming-explore-swiper .swiper-wrapper {
    align-items: stretch;
}

/* Slide */
.upcoming-explore-slide {
    padding: 0
}

.upcoming-explore-slide-media {
    max-height: min(426px, 58vh);
    border-radius: 8px;
    overflow: hidden;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upcoming-explore-slide-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(426px, 58vh);
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.upcoming-explore-slide-body {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-top: 24px;
}

.upcoming-explore-slide-title {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.upcoming-explore-slide-copy,
.upcoming-explore-slide-copy p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
    text-align: right;
}

/* Controls: prev • pagination • next */
.upcoming-explore-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    margin-top: 26px;
}

.upcoming-explore-image-nav {
    display: contents;
}

.upcoming-explore-nav {
    width: 52px;
    height: 32px;
    flex: 0 0 52px;
    border-radius: 999px;
    border: 1px solid #aaa;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.upcoming-explore-prev {
    order: 1;
}

.upcoming-explore-pagination {
    order: 2;
}

.upcoming-explore-next {
    order: 3;
}

.upcoming-explore-nav:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.upcoming-explore-nav.swiper-button-disabled {
    background: #e8e8e8;
    color: #bbb;
    border-color: #e8e8e8;
    cursor: default;
}

/* Pill pagination */
.upcoming-explore-pagination {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: auto;
}

.upcoming-explore-pagination .swiper-pagination-bullet {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: #d4d4d4;
    opacity: 1;
    transition: width 0.25s, background 0.25s;
    margin: 0 !important;
}

.upcoming-explore-pagination .swiper-pagination-bullet-active {
    width: 110px;
    background: #1a1a1a;
}

/* Explore text block (below slider, shared) */
.upcoming-detail-explore-text {
    max-width: 760px;
    margin: 48px auto 0;
    text-align: center;
}

.upcoming-detail-explore-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.upcoming-detail-explore-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.upcoming-detail-explore-desc p {
    margin: 0 0 12px;
}

/* ---- ĐĂNG KÝ NHẬN THÔNG TIN ---- */
.upcoming-detail-register {
    background: #f5f5f5;
    padding: 72px 0 80px;
}

.upcoming-detail-register-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
}

.upcoming-detail-register-card {
    background: #fff;
    padding: 58px 60px 56px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.upcoming-detail-register-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    column-gap: 24px;
}

.upcoming-detail-register-form .form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    column-gap: 24px;
}

.upcoming-detail-register-form .form-group {
    margin-bottom: 24px;
}

.upcoming-detail-register-form .form-group-full {
    grid-column: 1 / -1;
}

.upcoming-detail-register-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.upcoming-detail-register-form span {
    text-transform: none;
    margin-left: 12px
}

.upcoming-detail-register-form input,
.upcoming-detail-register-form select {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.upcoming-detail-register-form input::placeholder {
    color: #aaa;
}

.upcoming-detail-register-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.upcoming-detail-register-form input:focus,
.upcoming-detail-register-form select:focus {
    border-color: #eb0a1e;
}

/* Checkbox consent */
.upcoming-detail-consents {
    margin: 2px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.upcoming-detail-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: #555;
    line-height: 18px;
    cursor: pointer;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upcoming-detail-consent-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin: 2px 0 0;
    cursor: pointer;
    accent-color: #eb0a1e;
    border: 1px solid #bdbdbd;
    padding: 0;
    border-radius: 0;
    background: #fff;
    -webkit-appearance: auto;
    appearance: auto;
}

.upcoming-detail-consent-item a {
    color: #0055cc;
    text-decoration: none;
}

.upcoming-detail-consent-item a:hover {
    text-decoration: underline;
}

/* Submit row */
.upcoming-detail-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.btn-detail-submit {
    min-width: 200px;
    height: 50px;
    padding: 0 40px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-detail-submit:hover {
    background: #000;
    color: #fff;
}

.btn-detail-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.upcoming-detail-success {
    display: none;
    text-align: center;
    padding: 60px 0;
}

.upcoming-detail-success .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.upcoming-detail-success p {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
}

/* ---- GSAP initial states for animated elements ---- */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.gsap-fade-left {
    opacity: 0;
    transform: translateX(-50px);
}

.gsap-fade-right {
    opacity: 0;
    transform: translateX(50px);
}

.gsap-scale-in {
    opacity: 0;
    transform: scale(0.92);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1080px) {
    .upcoming-detail-hero {
        --upcoming-detail-header-height: 60px;
    }

    .upcoming-detail-overview-inner {
        gap: 40px;
    }

    .upcoming-detail-ov-img {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 900px) {
    .upcoming-detail-hero {
        --upcoming-detail-header-height: 60px;
    }

    .upcoming-detail-hero-overlay {
        padding: 32px 32px 48px;
    }

    .upcoming-detail-hero-title {
        font-size: 32px;
    }

    .upcoming-detail-register-card {
        padding: 28px 24px;
    }

    .upcoming-explore-slide {
        padding: 0
    }

    .upcoming-explore-slide-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .upcoming-explore-slide-copy,
    .upcoming-explore-slide-copy p {
        text-align: left;
    }

    .upcoming-detail-overview-inner {
        flex-direction: column;
        gap: 32px;
        padding: 0 20px;
    }

    .upcoming-detail-ov-img,
    .upcoming-detail-ov-info {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .upcoming-detail-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .upcoming-detail-explore-inner {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .footer-sticky-toolbar.tool-mobile {
        display: none !important;
    }

    footer {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .upcoming-detail-hero {
        --upcoming-detail-header-height: 60px;
        max-width: none;
        aspect-ratio: auto;
        height: 600px;
        min-height: 600px;
        max-height: 600px;
    }

    @supports (height: 100svh) {
        .upcoming-detail-hero {
            height: 600px;
            min-height: 600px;
        }
    }

    .upcoming-detail-hero-overlay {
        align-items: center;
        padding: 24px 18px 34px;
        text-align: center;
    }

    .upcoming-detail-hero-title {
        font-size: 24px;
        width: 100%;
    }

    .upcoming-detail-hero-badge {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 10px;
    }

    .upcoming-hero-swiper-desktop {
        display: none;
    }

    .upcoming-hero-swiper-mobile {
        display: block;
    }

    .upcoming-hero-swiper .swiper-button-next,
    .upcoming-hero-swiper .swiper-button-prev {
        display: none;
    }

    .upcoming-hero-swiper .swiper-slide img {
        object-fit: cover;
        object-position: center;
    }

    .upcoming-hero-swiper .swiper-pagination-bullet {
        width: 70px;
        max-width: 25vw;
        height: 5px;
    }

    .upcoming-detail-section {
        padding: 52px 0;
    }

    .upcoming-detail-section-title {
        font-size: 17px;
        margin-bottom: 36px;
    }

    .upcoming-detail-overview-inner {
        padding: 0 16px;
        align-items: flex-start;
    }

    .upcoming-detail-ov-name {
        font-size: 20px;
    }

    .upcoming-detail-ov-price span {
        font-size: 18px;
    }

    .upcoming-detail-gallery {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .upcoming-detail-gallery-item img {
        height: 200px;
    }

    .upcoming-detail-gallery-item:first-child:nth-last-child(1) img {
        height: 240px;
    }

    .upcoming-detail-explore {
        padding: 58px 14px 60px;
    }

    .upcoming-explore-slide {
        padding: 0
    }

    .upcoming-explore-slide-media img {
        border-radius: 8px;
        max-height: min(426px, 62vh);
    }

    .upcoming-explore-slide-media {
        border-radius: 8px;
        max-height: min(426px, 62vh);
    }

    .upcoming-explore-controls {
        display: block;
        margin-top: 26px;
    }

    .upcoming-explore-image-nav {
        position: absolute;
        z-index: 3;
        top: 0;
        left: 0;
        width: 100%;
        max-height: min(426px, 62vh);
        height: var(--upcoming-explore-media-height, min(426px, 62vh));
        display: flex;
        align-items: center;
        justify-content: space-between;
        pointer-events: none;
    }

    .upcoming-explore-nav {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border: 0;
        border-radius: 50%;
        background: rgba(51, 51, 51, 0.76);
        color: #fff;
        pointer-events: auto;
    }

    .upcoming-explore-prev {
        transform: translateX(-50%);
    }

    .upcoming-explore-next {
        transform: translateX(50%);
    }

    .upcoming-explore-nav.swiper-button-disabled {
        background: rgba(51, 51, 51, 0.35);
        color: rgba(255, 255, 255, 0.7);
    }

    .upcoming-explore-pagination .swiper-pagination-bullet-active {
        width: 80px;
    }

    .upcoming-detail-register-card {
        padding: 28px 24px;
    }

    .upcoming-detail-register-form .form-row,
    .upcoming-detail-register-form .form-row-half {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .upcoming-detail-submit-row {
        justify-content: stretch;
    }

    .btn-detail-submit {
        width: 100%;
        min-width: unset;
    }
}
