/* Figma register countdown — 1920×700 desktop / 430×700 mobile
   Desktop ≥768: clamp(N×768/1920, N/19.2vw, N)
   Mobile ≤767:  clamp(N×350/430, N/4.3vw, N) — scales to ~350px
   Nodes: 598:369 / 598:405 + day variants under 600:2 */

@import url('https://fonts.googleapis.com/css2?family=Lustria&family=Manrope:wght@200;400;600;700;800&family=Montserrat:wght@600&display=swap');

.slat-banner-2027__slide--reg-cd {
    background: #2a0a0a;
    overflow: hidden;
}

.slat-reg-cd {
    position: relative;
    width: 100%;
    height: 100%;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
}

.slat-reg-cd__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.slat-reg-cd__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.slat-reg-cd__bg--mobile {
    display: none;
}

.slat-reg-cd__layout {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.slat-reg-cd__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slat-reg-cd__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slat-reg-cd__eyebrow,
.slat-reg-cd__title,
.slat-reg-cd__sub,
.slat-reg-cd__deadline-label,
.slat-reg-cd__deadline-date {
    margin: 0;
}

.slat-reg-cd__eyebrow {
    font-weight: 200;
    color: #fff;
    text-transform: none;
    line-height: 0.97;
}

.slat-reg-cd__title {
    font-weight: 700;
    color: #fff;
    text-transform: none;
    line-height: 0.97;
}

.slat-reg-cd__sub {
    font-weight: 400;
    color: #c2c2c2;
    line-height: 1.27;
}

.slat-reg-cd__sub-line {
    display: block;
}

.slat-reg-cd__sub-brand {
    font-weight: 800;
    color: #ffe187;
}

.slat-reg-cd__deadline {
    border-left: 1px solid #fdce41;
    box-sizing: border-box;
}

.slat-reg-cd__deadline-label {
    font-weight: 400;
    color: #fff;
    line-height: 0.97;
}

.slat-reg-cd__deadline-date {
    font-weight: 700;
    color: #fff;
    line-height: 0.97;
    white-space: nowrap;
}

.slat-reg-cd__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #c5161d !important;
    color: #fff !important;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.slat-reg-cd__cta:hover,
.slat-reg-cd__cta:focus {
    background: #a81218 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.slat-reg-cd__cta span {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    color: #fff !important;
    line-height: 1.4 !important;
    white-space: nowrap;
}

.slat-reg-cd__cta-arrow {
    display: block;
    flex-shrink: 0;
    height: auto;
}

.slat-reg-cd__visual-cluster {
    display: flex;
    align-items: center;
    pointer-events: none;
}

.slat-reg-cd__count-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.slat-reg-cd__count {
    display: flex;
    align-items: flex-start;
    font-family: 'Lustria', serif;
    text-transform: uppercase;
    text-shadow: 0 7px 0 rgba(0, 0, 0, 0.25);
    line-height: 0.97;
}

.slat-reg-cd__count-num {
    background: linear-gradient(180deg, #ffffff 0%, #fdce41 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    font-weight: 400;
}

.slat-reg-cd__count-unit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    gap: 2px;
}

.slat-reg-cd__count-unit-top,
.slat-reg-cd__count-unit-bottom {
    display: block;
    width: 100%;
}

.slat-reg-cd__count--hours .slat-reg-cd__count-unit-top {
    text-transform: none;
}

/* Figma badge frame — desktop 247×93 (598:403), mobile 151.688×57.333 (598:435) */
.slat-reg-cd__badge {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
    max-width: none;
}

/* Figma 598:404 — pre-rotated transparent asset (432×567) */
.slat-reg-cd__hourglass-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.slat-reg-cd__hourglass {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
}

/* =========================================================
   DESKTOP ≥768px — Figma 1920×700 look down to tablet
   ========================================================= */
@media (min-width: 768px) {
    .slat-banner-2027.has-reg-countdown .slat-banner-2027__canvas {
        height: clamp(420px, 36.458333vw, 700px) !important;
        min-height: clamp(420px, 36.458333vw, 700px) !important;
    }

    .slat-banner-2027.has-reg-countdown .slat-banner-2027__carousel,
    .slat-banner-2027.has-reg-countdown .slat-banner-2027__carousel .carousel-inner,
    .slat-banner-2027.has-reg-countdown .slat-banner-2027__carousel .carousel-item {
        height: 100%;
    }

    .slat-banner-2027__slide--reg-cd,
    .slat-banner-2027__slide--reg-cd .slat-reg-cd {
        height: 100%;
        min-height: 100%;
    }

    .slat-reg-cd__bg--desktop {
        display: block;
    }

    .slat-reg-cd__bg--mobile {
        display: none;
    }

    .slat-reg-cd__layout {
        display: flex;
        align-items: center;
        padding-top: clamp(26.8px, 3.489583vw, 67px);
        padding-bottom: clamp(26.8px, 3.489583vw, 67px);
        padding-left: 0;
        padding-right: 0;
    }

    .slat-reg-cd__copy {
        width: clamp(244.4px, 31.822917vw, 611px);
        box-sizing: border-box;
        padding-left: clamp(32px, 3.385417vw, 65px);
        padding-right: clamp(4px, 0.520833vw, 10px);
        padding-top: clamp(4px, 0.520833vw, 10px);
        padding-bottom: clamp(4px, 0.520833vw, 10px);
        gap: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 3;
    }

    .slat-reg-cd__copy > .slat-reg-cd__heading,
    .slat-reg-cd__copy > .slat-reg-cd__deadline,
    .slat-reg-cd__copy > .slat-reg-cd__cta {
        width: clamp(218.4px, 28.4375vw, 546px);
    }

    .slat-reg-cd__heading {
        gap: clamp(4.8px, 0.625vw, 12px);
        margin-bottom: clamp(20px, 2.604167vw, 50px);
    }

    .slat-reg-cd__eyebrow {
        font-size: clamp(28px, 3.645833vw, 70px) !important;
        font-weight: 200 !important;
    }

    .slat-reg-cd__title {
        font-size: clamp(28px, 3.645833vw, 70px);
        font-weight: 700;
    }

    .slat-reg-cd__sub {
        font-size: clamp(14px, 1.770833vw, 34px) !important;
        margin-top: 0;
    }

    .slat-reg-cd__deadline {
        width: clamp(160px, 16.875vw, 324px);
        padding-left: clamp(10px, 1.041667vw, 20px);
        margin-bottom: clamp(20px, 2.604167vw, 50px);
        min-height: clamp(36px, 2.916667vw, 56px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .slat-reg-cd__deadline-label {
        font-size: clamp(12px, 0.9375vw, 18px) !important;
    }

    .slat-reg-cd__deadline-date {
        font-size: clamp(16px, 1.5625vw, 30px) !important;
    }

    .slat-reg-cd__cta {
        width: clamp(160px, 15.3125vw, 294px);
        height: clamp(40px, 3.125vw, 60px);
        min-height: 0;
        border-radius: clamp(6px, 0.586667vw, 11.264px);
        gap: clamp(8px, 0.729167vw, 14px);
        padding: 0 clamp(12px, 1.458333vw, 28px);
        position: relative;
    }

    .slat-reg-cd__cta span {
        font-size: clamp(12px, 1.25vw, 24px) !important;
    }

    .slat-reg-cd__cta-arrow {
        width: clamp(24px, 2.34375vw, 45px);
    }

    .slat-reg-cd__visual-cluster {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        margin-left: clamp(-40px, -2vw, 0);
        padding-right: clamp(8px, 1vw, 24px);
    }

    .slat-reg-cd__count-block {
        width: clamp(250px, 28.177083vw, 541px);
        gap: clamp(6px, 0.520833vw, 10px);
        margin-right: clamp(-120px, -8.854167vw, -170px);
        padding-bottom: clamp(28px, 3.645833vw, 70px);
    }

    .slat-reg-cd__count:not(.slat-reg-cd__count--hours) {
        width: 100%;
    }

    .slat-reg-cd__count-num {
        font-size: clamp(104px, 13.541667vw, 260px);
    }

    .slat-reg-cd__count-unit {
        width: clamp(140px, 16.145833vw, 310px);
        flex-shrink: 0;
    }

    .slat-reg-cd__count-unit-top,
    .slat-reg-cd__count-unit-bottom {
        font-size: clamp(48px, 6.25vw, 120px);
    }

    /* Few hours — Figma 600:519 */
    .slat-reg-cd__count--hours {
        width: 100%;
    }

    .slat-reg-cd__count--hours .slat-reg-cd__count-unit {
        width: clamp(180px, 16.145833vw, 310px);
        gap: 2px;
    }

    .slat-reg-cd__count--hours .slat-reg-cd__count-unit-top {
        font-size: clamp(32px, 4.166667vw, 80px);
        text-transform: none;
    }

    .slat-reg-cd__count--hours .slat-reg-cd__count-unit-bottom {
        font-size: clamp(48px, 6.25vw, 120px);
        text-transform: uppercase;
    }

    .slat-banner-2027__slide--reg-cd[data-reg-cd-mode="hours"] .slat-reg-cd__count-block {
        margin-right: clamp(-160px, -15.625vw, -300px);
        padding-bottom: clamp(12px, 1.5625vw, 30px);
    }

    .slat-banner-2027__slide--reg-cd[data-reg-cd-mode="one-day"] .slat-reg-cd__count-block {
        margin-right: clamp(-140px, -13.020833vw, -250px);
    }

    /* Desktop Figma 598:403 — 247×93 @ 1920 */
    .slat-reg-cd__badge {
        width: clamp(98.8px, 12.864583vw, 247px);
        height: clamp(37.2px, 4.84375vw, 93px);
    }

    .slat-reg-cd__hourglass-wrap {
        width: clamp(180px, 22.479479vw, 431.606px);
        height: clamp(236px, 29.49526vw, 566.309px);
    }

    /* Keep form clear of copy/count on ≥1024 */
    .slat-banner-2027.has-reg-countdown .slat-banner-2027__form.form-overlay {
        z-index: 10;
    }
}

@media (min-width: 1024px) {
    .slat-banner-2027.has-reg-countdown .slat-reg-cd__layout {
        padding-right: calc(5% + clamp(320px, 26.042vw, 500px) + clamp(12px, 1vw, 24px));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .slat-reg-cd__visual-cluster {
        margin-left: clamp(-20px, -1.5vw, 0);
    }

    .slat-reg-cd__count-block {
        margin-right: clamp(-80px, -8vw, -40px);
    }
}

/* =========================================================
   MOBILE ≤767px — Figma 430×700, scales to ~350px
   ========================================================= */
@media (max-width: 767px) {
    /* Mixed carousel with Final Mock: keep a shared mobile canvas height */
    .slat-banner-2027.has-reg-countdown .slat-banner-2027__canvas {
        height: clamp(560px, 162.7907vw, 700px) !important;
        min-height: clamp(560px, 162.7907vw, 700px) !important;
        background: #2a0a0a;
    }

    .slat-banner-2027.has-reg-countdown .slat-banner-2027__carousel,
    .slat-banner-2027.has-reg-countdown .slat-banner-2027__carousel .carousel-inner,
    .slat-banner-2027.has-reg-countdown .slat-banner-2027__carousel .carousel-item,
    .slat-banner-2027.has-reg-countdown .slat-banner-2027__slide {
        height: 100%;
    }

    .slat-banner-2027__slide--reg-cd {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    .slat-banner-2027__slide--reg-cd .slat-reg-cd {
        height: 100%;
        min-height: 0;
    }

    .slat-reg-cd__bg--desktop {
        display: none;
    }

    .slat-reg-cd__bg--mobile {
        display: block;
    }

    .slat-reg-cd__layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: clamp(16.28px, 4.651163vw, 20px);
        box-sizing: border-box;
    }

    .slat-reg-cd__copy {
        width: 100%;
        gap: 0;
        align-items: flex-start;
    }

    .slat-reg-cd__heading {
        gap: clamp(6.51px, 1.860465vw, 8px);
        margin-bottom: clamp(22.79px, 6.511628vw, 28px);
        width: 100%;
    }

    .slat-reg-cd__eyebrow {
        font-size: clamp(19.53px, 5.581395vw, 24px) !important;
        font-weight: 600 !important;
        text-transform: uppercase;
    }

    .slat-reg-cd__title {
        font-size: clamp(34.19px, 9.767442vw, 42px);
        font-weight: 800;
        letter-spacing: -0.01em;
        text-transform: uppercase;
    }

    .slat-reg-cd__sub {
        font-size: clamp(19.53px, 5.581395vw, 24px) !important;
        margin-bottom: clamp(22.79px, 6.511628vw, 28px);
    }

    .slat-reg-cd__deadline {
        width: min(100%, clamp(263.72px, 75.348837vw, 324px));
        padding-left: clamp(16.28px, 4.651163vw, 20px);
        margin-bottom: 0;
        min-height: clamp(45.58px, 13.023256vw, 56px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(8.14px, 2.325581vw, 10px);
    }

    .slat-reg-cd__deadline-label {
        font-size: clamp(11.4px, 3.255814vw, 14px) !important;
    }

    .slat-reg-cd__deadline-date {
        font-size: clamp(19.53px, 5.581395vw, 24px) !important;
    }

    /* Desktop CTA hidden on mobile; full-width CTA at bottom */
    .slat-reg-cd__copy > .slat-reg-cd__cta {
        display: none !important;
    }

    .slat-reg-cd__visual-cluster {
        width: 100%;
        justify-content: center;
        margin: clamp(12px, 3vw, 20px) 0;
        flex: 1 1 auto;
        min-height: 0;
    }

    .slat-reg-cd__count-block {
        gap: clamp(8.14px, 2.325581vw, 10px);
        margin-right: clamp(-48.84px, -13.953488vw, -60px);
        padding-bottom: clamp(8.14px, 2.325581vw, 10px);
        width: auto;
    }

    .slat-reg-cd__count-num {
        font-size: clamp(105.81px, 30.232558vw, 130px);
        text-shadow: 0 7px 8px rgba(0, 0, 0, 0.25);
    }

    .slat-reg-cd__count {
        text-shadow: 0 7px 8px rgba(0, 0, 0, 0.25);
    }

    .slat-reg-cd__count-unit {
        width: auto;
    }

    .slat-reg-cd__count-unit-top,
    .slat-reg-cd__count-unit-bottom {
        font-size: clamp(48.84px, 13.953488vw, 60px);
    }

    .slat-reg-cd__count--hours .slat-reg-cd__count-unit-top {
        font-size: clamp(32.56px, 9.302326vw, 40px);
        text-transform: none;
    }

    .slat-reg-cd__count--hours .slat-reg-cd__count-unit-bottom {
        font-size: clamp(48.84px, 13.953488vw, 60px);
    }

    /* Mobile Figma 598:435 — 151.688×57.333 @ 430 */
    .slat-reg-cd__badge {
        width: clamp(123.466px, 35.276279vw, 151.688px);
        height: clamp(46.689px, 13.333256vw, 57.333px);
    }

    .slat-reg-cd__hourglass-wrap {
        width: clamp(151.5px, 43.301395vw, 186.196px);
        height: clamp(198.76px, 56.815581vw, 244.307px);
    }

    /* Full-width mobile CTA — appended via layout order */
    .slat-reg-cd__layout::after {
        content: none;
    }

    .slat-reg-cd__cta--mobile {
        display: flex !important;
        width: 100%;
        height: clamp(48.84px, 13.953488vw, 60px);
        min-height: 0;
        border-radius: clamp(9.17px, 2.619535vw, 11.264px);
        padding: clamp(12.21px, 3.488372vw, 15px) clamp(16.28px, 4.651163vw, 20px);
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        background: #c5161d !important;
        text-decoration: none !important;
        flex-shrink: 0;
    }

    .slat-reg-cd__cta--mobile span {
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 600 !important;
        font-size: clamp(14.65px, 4.186047vw, 18px) !important;
        line-height: 1.4 !important;
        text-transform: uppercase;
        color: #fff !important;
    }

    .slat-reg-cd__cta--mobile .slat-reg-cd__cta-arrow {
        width: clamp(36.63px, 10.465116vw, 45px);
    }
}

/* Mobile CTA element (shown only ≤767) */
.slat-reg-cd__cta--mobile {
    display: none;
}
