/*
 * discounts-page.css — the Discounts landing page (templates/discounts.php).
 *
 * Loaded only by that template. The V2 look (navy bands, blue uppercase
 * eyebrow over a LufgaBlack heading, rounded cards, pill buttons), with the
 * Discounts teal as the accent. Everything is scoped to .dp.
 */

.dp {
    --dp-navy: var(--v2ScDarkColor, #05192E);
    --dp-teal: var(--DiscountsColor, #00A592);
    --dp-blue: #007AC2;
    --dp-sky: var(--v2ScBlueColor, #00A5D3);
    --dp-paper: #FBFCFA;
    --dp-tint: #F2F5F7;
    --dp-line: #E1E0E8;
    --dp-ink: #10181A;
    --dp-ink-soft: #47554F;
    --dp-radius: 20px;

    background: var(--dp-paper);
    color: var(--dp-ink);
}

.dp-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.dp h1,
.dp h2,
.dp h3 {
    margin: 0;
    padding: 0;
    font-family: 'LufgaBlack', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: inherit;
}

.dp h2 {
    font-size: 40px;
    line-height: 1.15;
}

.dp h3 {
    font-size: 20px;
    line-height: 1.25;
}

.dp p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

.dp-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dp-teal);
}

.dp-pill {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--dp-teal);
    color: #fff;
    font-family: 'LufgaBlack', sans-serif;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}


/* ---------- Buttons ---------- */

.dp .dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1.5px solid var(--dp-blue);
    border-radius: 50px;
    background: var(--dp-blue);
    color: #fff;
    font-family: 'LufgaBlack', sans-serif;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.dp .dp-btn:hover,
.dp .dp-btn:focus-visible {
    transform: translateY(-2px);
    color: #fff;
}

.dp .dp-btn--outline {
    background: transparent;
    color: var(--dp-blue);
}

.dp .dp-btn--outline:hover,
.dp .dp-btn--outline:focus-visible {
    background: var(--dp-blue);
}

.dp .dp-btn--white {
    border-color: #fff;
    background: #fff;
    color: var(--dp-navy);
}

.dp .dp-btn--white:hover,
.dp .dp-btn--white:focus-visible {
    color: var(--dp-navy);
}

.dp .dp-btn--ghost {
    border-color: rgba(255, 255, 255, .5);
    background: transparent;
    color: #fff;
}


/* ---------- Section heads ---------- */

.dp-head {
    margin-bottom: 40px;
}

.dp-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 64px;
}

.dp-head--split > p {
    max-width: 30em;
    color: var(--dp-ink-soft);
}


/* ---------- Hero ---------- */

.dp-hero {
    /* Above the sections that follow: the site gives every <section>
       position: relative and z-index: 1, so without this the next one paints
       over the open live-search results. */
    position: relative;
    z-index: 3;
    padding: 72px 0 96px;
    background:
        radial-gradient(80% 90% at 85% 10%, rgba(0, 165, 146, .3) 0%, rgba(0, 165, 146, 0) 60%),
        var(--dp-navy);
    color: #fff;
}

.dp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.dp .dp-hero__title {
    font-size: clamp(42px, 5.4vw, 76px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.dp .dp-hero__lead {
    max-width: 32em;
    margin-bottom: 28px;
    font-size: 19px;
    color: rgba(255, 255, 255, .88);
}

.dp-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
    padding: 6px 6px 6px 48px;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

.dp-search__icon {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    color: var(--dp-ink-soft);
}

.dp .dp-search__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px 0 0;
    border: 0;
    background: transparent;
    color: var(--dp-ink);
    font-size: 16px;
    outline: none;
    box-shadow: none;
}

.dp-search:focus-within {
    box-shadow: 0 0 0 3px var(--dp-sky), 0 16px 40px rgba(0, 0, 0, .25);
}

.dp .dp-search__btn {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 50px;
    background: var(--dp-blue);
    color: #fff;
    font-family: 'LufgaBlack', sans-serif;
    font-size: 15px;
    cursor: pointer;
}

.dp .dp-search__btn:hover {
    background: #00649F;
}

/*
 * Live search: the <scgb-search> component in place of the form. Its results
 * render in its own shadow DOM under the input; in normal flow they would push
 * the hero down as you type, so the host floats instead: clipped to the input
 * row until the template's script adds .is-open, then free to grow over the
 * page. As .finder-search--live on the holidays page.
 */
.dp-search--live {
    display: block;
    height: 56px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.dp-search--live scgb-search {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: block;
    height: 56px;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

/* Full height, no inner scrolling: scrolling the box itself took the input
   with it and cut result titles off at its top edge. The page scrolls. */
.dp-search--live scgb-search.is-open {
    height: auto;
    overflow: visible;
    border-radius: 20px;
    box-shadow: 0 0 0 3px var(--dp-sky), 0 24px 48px rgba(0, 0, 0, .35);
}

.dp-search--live scgb-search::part(box) {
    max-width: none;
    height: 56px;
    padding: 0 8px 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dp-search--live scgb-search::part(input) {
    padding: 0 12px 0 6px;
    color: var(--dp-ink);
    font-size: 17px;
}

.dp-search--live scgb-search::part(input)::placeholder {
    color: #767676;
    opacity: 1;
}

.dp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
}

.dp-stats strong {
    display: block;
    font-family: 'LufgaBlack', sans-serif;
    font-size: 28px;
    line-height: 1.1;
    color: #fff;
}

.dp-hero__media {
    position: relative;
}

.dp-hero__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.dp-badge {
    position: absolute;
    left: -28px;
    bottom: -28px;
    display: grid;
    place-items: center;
    align-content: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: var(--InsuranceColor, #FFBA00);
    color: var(--dp-navy);
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
    transform: rotate(-8deg);
}

.dp-badge__up,
.dp-badge__off {
    font-family: 'LufgaBlack', sans-serif;
    font-size: 12px;
    line-height: 1.15;
}

.dp-badge__off {
    max-width: 90px;
}

.dp-badge__num {
    font-family: 'LufgaBlack', sans-serif;
    font-size: 44px;
    line-height: 1;
}


/* ---------- Breadcrumbs ---------- */

.dp-crumbs {
    border-bottom: 1px solid var(--dp-line);
    background: #fff;
}

/* The site's .breadcrumbs, as the wrap's padding */
.dp-crumbs .dp-wrap.breadcrumbs {
    width: auto;
    padding-top: 14px;
    padding-bottom: 14px;
}


/* ---------- Sections ---------- */

.dp-section {
    padding: 96px 0;
    scroll-margin-top: 80px;
}

.dp-section--tint {
    background: var(--dp-tint);
}

.dp-section--navy {
    background: var(--dp-navy);
    color: #fff;
}

.dp-section--navy .dp-eyebrow {
    color: var(--dp-sky);
}


/* ---------- Categories ---------- */

.dp-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp .dp-cat a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--dp-radius);
    background: #fff;
    color: var(--dp-navy);
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(5, 25, 46, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.dp .dp-cat a:hover,
.dp .dp-cat a:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(5, 25, 46, .16);
}

/* A coloured tile shows wherever a category has no picture. */
.dp-cat__img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 60%),
        var(--dp-tile, var(--dp-teal));
}

/* Filled to the tile's shape whatever the picture's own size. */
.dp-cat__img img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.dp .dp-cat a:hover .dp-cat__img img {
    transform: scale(1.05);
}

.dp-cat__body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 18px;
}

.dp-cat__name {
    font-family: 'LufgaBlack', sans-serif;
    font-size: 17px;
    line-height: 1.25;
}

.dp-cat__count {
    flex: 0 0 auto;
    padding: 3px 9px;
    border-radius: 50px;
    background: var(--dp-tint);
    color: var(--dp-ink-soft);
    font-size: 12px;
    white-space: nowrap;
}


/* ---------- Preferred partners ---------- */

.dp-partners {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp-partner {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--dp-radius);
    background: #fff;
    box-shadow: 0 6px 24px rgba(5, 25, 46, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.dp-partner:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(5, 25, 46, .16);
}

.dp-partner__logo {
    display: grid;
    place-items: center;
    height: 150px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--dp-line);
}

.dp-partner__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* The favourite heart (template-parts/favourite.php), top right */
.dp-partner .add-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
}

.dp-partner__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.dp .dp-partner h3 a {
    color: var(--dp-navy);
    text-decoration: none;
}

.dp .dp-partner__offer {
    margin-top: 6px;
    font-size: 15px;
    color: var(--dp-ink-soft);
}

.dp .dp-partner__link {
    margin-top: auto;
    padding-top: 16px;
    color: var(--dp-blue);
    font-family: 'LufgaBlack', sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.dp .dp-partner__link:hover {
    text-decoration: underline;
}


/* ---------- Calculator ---------- */

.dp-calc {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(5, 25, 46, .1);
}

.dp-calc__inputs {
    padding: 48px;
}

.dp .dp-calc__intro {
    margin: 10px 0 28px;
    color: var(--dp-ink-soft);
}

.dp-calc__rows {
    display: grid;
    gap: 12px;
}

.dp-calc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 12px 12px 12px 20px;
    border: 1px solid var(--dp-line);
    border-radius: 16px;
    cursor: text;
}

.dp-calc__row:focus-within {
    border-color: var(--dp-teal);
    box-shadow: 0 0 0 3px rgba(0, 165, 146, .15);
}

.dp-calc__label {
    display: flex;
    flex-direction: column;
    font-family: 'LufgaBlack', sans-serif;
    font-size: 16px;
    color: var(--dp-navy);
}

.dp-calc__label small {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--dp-teal);
}

.dp-calc__field {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 150px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--dp-tint);
    font-family: 'LufgaBlack', sans-serif;
    color: var(--dp-navy);
}

.dp .dp-calc__field input {
    width: 100%;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dp-navy);
    font-family: 'LufgaBlack', sans-serif;
    font-size: 18px;
    text-align: right;
    outline: none;
    box-shadow: none;
    -moz-appearance: textfield;
}

.dp .dp-calc__field input::-webkit-outer-spin-button,
.dp .dp-calc__field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dp-calc__result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(0, 165, 146, .45) 0%, rgba(0, 165, 146, 0) 65%),
        var(--dp-navy);
    color: #fff;
}

.dp-calc__result-label,
.dp-calc__per {
    font-size: 17px;
    color: rgba(255, 255, 255, .8);
}

.dp-calc__total {
    margin: 6px 0;
    font-family: 'LufgaBlack', sans-serif;
    font-size: clamp(56px, 7vw, 88px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, .35);
    transition: color .3s ease;
}

.dp-calc.has-total .dp-calc__total {
    color: #fff;
}

.dp-calc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.dp .dp-calc__small {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .6);
}


/* ---------- Partner with us ---------- */

.dp-pitch {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.dp-pitch h2 {
    margin-bottom: 18px;
}

.dp .dp-pitch p {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .8);
}

.dp-facts {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp-facts li {
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
}

.dp-facts strong {
    display: block;
    margin-bottom: 2px;
    font-family: 'LufgaBlack', sans-serif;
    font-size: 30px;
    line-height: 1.1;
    color: var(--dp-teal);
}


/* ---------- Join ---------- */

.dp-cta {
    padding: 96px 0;
}

.dp-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}

.dp-cta h2 {
    max-width: 16em;
    font-size: 36px;
}

.dp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ---------- Tablet ---------- */

@media (max-width: 991px) {

    .dp h2 {
        font-size: 32px;
    }

    .dp-hero__grid,
    .dp-calc,
    .dp-pitch {
        grid-template-columns: minmax(0, 1fr);
    }

    .dp-hero__grid {
        gap: 48px;
    }

    .dp-badge {
        left: auto;
        right: 16px;
        bottom: -24px;
    }

    .dp-cats,
    .dp-partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dp-pitch {
        gap: 40px;
    }

}


/* ---------- Phone ---------- */

@media (max-width: 767px) {

    .dp-wrap {
        padding: 0 20px;
    }

    .dp h2 {
        font-size: 28px;
    }

    .dp-hero {
        padding: 48px 0 64px;
    }

    .dp .dp-hero__lead {
        font-size: 17px;
    }

    .dp .dp-search__btn {
        padding: 0 16px;
    }

    .dp-badge {
        width: 112px;
        height: 112px;
    }

    .dp-badge__num {
        font-size: 32px;
    }

    .dp-badge__off {
        font-size: 10px;
    }

    .dp-section,
    .dp-cta {
        padding: 64px 0;
    }

    .dp-cats {
        gap: 12px;
    }

    .dp-cat__body {
        flex-direction: column;
        gap: 6px;
        padding: 12px 14px 14px;
    }

    .dp-cat__name {
        font-size: 15px;
    }

    .dp-partners {
        grid-template-columns: minmax(0, 1fr);
    }

    .dp-calc__inputs,
    .dp-calc__result {
        padding: 28px 22px;
    }

    .dp-calc__row {
        padding-left: 14px;
    }

    .dp-calc__field {
        width: 120px;
    }

    .dp-cta h2 {
        font-size: 28px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .dp .dp-btn,
    .dp .dp-cat a,
    .dp-partner,
    .dp-cat__img img,
    .dp-calc__total {
        transition: none;
    }

}
