/* ==========================================================================
   The Energy Shop — PPC Landing Page
   File: /css/tes-ppc-lp.css
   Scope: every rule is namespaced under .ppcLp so nothing here can leak
          into the main site stylesheet or vice versa.
   Depends on: Bootstrap 5.3.2 grid + existing TES utility classes
               (.gabarito, .inter, .f-xx-xxx, .foundationGreen, .flatButton …)
   ========================================================================== */

.ppcLp {
    --ppc-dark-green: #143C14;
    --ppc-lime: #C3EB66;
    --ppc-guide-green: #8AA748;
    --ppc-light-green: #E3F6B9;
    --ppc-pale-green: #F9FDF0;
    --ppc-line: #D9D9D9;
    --ppc-grey: #4E4E4E;
    --ppc-ink: #0E0E0E;
}

/* --------------------------------------------------------------------------
   Accessibility: the global stylesheet sets `button:focus { outline:none }`.
   That removes the keyboard focus ring sitewide, which breaks keyboard users
   and makes the page harder for automated agents to traverse reliably.
   We restore a visible ring inside this landing page only.
   -------------------------------------------------------------------------- */
.ppcLp a:focus-visible,
.ppcLp button:focus-visible,
.ppcLp input:focus-visible {
    outline: 3px solid var(--ppc-dark-green) !important;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Stripped landing-page header
   -------------------------------------------------------------------------- */
.ppcLpHeader {
    background: var(--ppc-dark-green);
    color: #ffffff;
    padding: 18px 0;
}

.ppcLpHeader .ppcLpLogo img {
    height: 38px;
    width: auto;
    display: block;
}

.ppcLpTrustPill {
    display: inline-block;
    background: rgba(195, 235, 102, 0.14);
    border: 1px solid rgba(195, 235, 102, 0.4);
    color: var(--ppc-lime);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.ppcLpPhone {
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    white-space: nowrap;
}

.ppcLpPhone:hover,
.ppcLpPhone:focus {
    color: var(--ppc-lime);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.ppcLpHero {
    background: var(--ppc-light-green);
    /* Generous vertical space is doing real work here — it isolates the
       postcode form from everything around it, so the fold reads as one
       thing to do rather than a busy band. */
    padding: 88px 0 84px;
}

.ppcLpKicker {
    font-size: 13px;
    font-weight: 500;
    color: var(--ppc-grey);
    margin-bottom: 10px;
}

.ppcLpHero h1 {
    color: var(--ppc-ink);
    margin-bottom: 16px;
}

.ppcLpSub {
    color: var(--ppc-grey);
    max-width: 470px;
    margin-bottom: 22px;
}

/* Postcode capture card ---------------------------------------------------- */
.ppcLpForm {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 30px;
    /* Deliberately the heaviest shadow on the page. This is the one thing
       we want the eye to land on. */
    box-shadow: 0 14px 40px rgba(20, 60, 20, 0.18);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Lime accent bar across the top of the form card — a cheap, static way to
   pull attention without motion or a colour that fights the CTA button. */
.ppcLpForm::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--ppc-lime);
}

.ppcLpForm label {
    display: block;
    font-family: "Gabarito", sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--ppc-ink);
    margin-bottom: 12px;
}

.ppcLpFormRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ppcLpFormRow input[type="text"] {
    flex: 1 1 190px;
    min-width: 0;
    min-height: 56px;
    border: 1.5px solid var(--ppc-line);
    border-radius: 50px;
    padding: 14px 22px;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    color: var(--ppc-ink);
    background: #ffffff;
}

.ppcLpFormRow input[type="text"]::placeholder {
    color: #8a8a8a;
}

.ppcLpFormRow input[type="text"]:focus {
    outline: none;
    border-color: var(--ppc-guide-green);
}

.ppcLpFormRow .flatButton {
    flex: 0 0 auto;
    min-height: 56px;
    border: none;
    white-space: nowrap;
}

.ppcLpMicrocopy {
    font-size: 13px;
    color: var(--ppc-grey);
    margin: 12px 0 0;
}

/* Hero badge row ----------------------------------------------------------- */
.ppcLpBadgeRow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Was three white pills, which added three more competing boxes to an
   already busy hero. Now plain ticked text on the hero background. */
.ppcLpBadgeRow {
    gap: 20px;
}

.ppcLpBadgeRow li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ppc-ink);
}

.ppcLpBadgeRow .ppcLpTick {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ppc-guide-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ppcLpBadgeRow .ppcLpTick svg {
    width: 11px;
    height: 11px;
    display: block;
}

/* Live deals card ---------------------------------------------------------- */
/* Supporting evidence, not a second call to action. No drop shadow, a
   translucent fill that sits back into the hero band, and smaller type — so
   it reads as proof rather than competing with the form for the click. */
.ppcLpDeals {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(20, 60, 20, 0.10);
    border-radius: 16px;
    padding: 20px 22px;
}

.ppcLpDealsHead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.ppcLpDealsHead h2 {
    margin: 0;
}

.ppcLpDealsHead span {
    font-size: 13px;
    color: var(--ppc-grey);
    white-space: nowrap;
}

.ppcLpDeals table {
    width: 100%;
    border-collapse: collapse;
}

.ppcLpDeals th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ppc-grey);
    padding: 10px 0;
    border-bottom: 1px solid var(--ppc-line);
}

.ppcLpDeals th:last-child,
.ppcLpDeals td:last-child {
    text-align: right;
}

.ppcLpDeals td {
    padding: 11px 0;
    border-bottom: 1px solid var(--ppc-line);
    vertical-align: middle;
}

.ppcLpDeals tr:last-child td {
    border-bottom: none;
}

.ppcLpSupplierName {
    font-size: 14px;
    font-weight: 600;
    color: var(--ppc-ink);
    display: block;
}

.ppcLpTariffName {
    font-size: 12px;
    color: var(--ppc-grey);
    display: block;
    margin-top: 2px;
}

.ppcLpPrice {
    font-size: 16px;
    font-weight: 700;
    color: var(--ppc-ink);
    white-space: nowrap;
}

.ppcLpPrice.isBest {
    color: var(--ppc-guide-green);
}

.ppcLpDealsFoot {
    font-size: 12px;
    color: var(--ppc-grey);
    margin: 14px 0 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Press strip (replaces the Trustpilot rating strip)
   -------------------------------------------------------------------------- */
.ppcLpPress {
    padding: 30px 0;
    border-bottom: 1px solid var(--ppc-line);
}

.ppcLpPressLabel {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ppc-grey);
    text-align: center;
    margin-bottom: 20px;
}

.ppcLpPressLogos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ppcLpPressLogos img {
    height: 26px;
    width: auto;
    opacity: 0.72;
}

/* --------------------------------------------------------------------------
   Savings cards
   -------------------------------------------------------------------------- */
.ppcLpSavings {
    background: var(--ppc-pale-green);
    padding: 56px 0;
}

.ppcLpSectionHead {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.ppcLpSectionHead p {
    color: var(--ppc-grey);
    margin: 0;
}

.ppcLpSaveCard {
    background: #ffffff;
    border: 1px solid var(--ppc-line);
    border-radius: 20px;
    padding: 28px 26px;
    height: 100%;
}

.ppcLpSaveAmount {
    font-family: "Gabarito", sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    color: var(--ppc-guide-green);
    margin-bottom: 10px;
}

.ppcLpSaveTitle {
    font-size: 17px;
    font-weight: 600;
    color: var(--ppc-ink);
    margin-bottom: 8px;
}

.ppcLpSaveDetail {
    font-size: 15px;
    color: var(--ppc-grey);
    line-height: 1.5;
    margin: 0;
}

.ppcLpBasis {
    font-size: 13px;
    color: var(--ppc-grey);
    line-height: 1.6;
    max-width: 860px;
    margin: 28px auto 0;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Trust block
   -------------------------------------------------------------------------- */
.ppcLpTrust {
    padding: 56px 0;
}

.ppcLpTrustCard {
    border: 1px solid #BABABA;
    border-radius: 20px;
    padding: 24px 22px;
    text-align: center;
    height: 100%;
}

.ppcLpTrustCard img {
    width: 128px;
    height: 128px;
    margin-bottom: 8px;
}

.ppcLpTrustCard h3 {
    margin-bottom: 10px;
}

.ppcLpTrustCard p {
    font-size: 15px;
    color: var(--ppc-grey);
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Supplier logo grid
   -------------------------------------------------------------------------- */
.ppcLpSuppliers {
    padding: 48px 0 56px;
    background: var(--ppc-pale-green);
}

.ppcLpSupplierGrid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ppcLpSupplierGrid li {
    background: #ffffff;
    border: 1px solid var(--ppc-line);
    border-radius: 12px;
    padding: 18px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
}

.ppcLpSupplierGrid img {
    max-width: 100%;
    max-height: 44px;
    width: auto;
    height: auto;
}

/* --------------------------------------------------------------------------
   Expert quote
   -------------------------------------------------------------------------- */
.ppcLpQuote {
    padding: 52px 0;
}

.ppcLpQuoteInner {
    border: 1px solid var(--ppc-line);
    border-radius: 20px;
    padding: 36px 8%;
    text-align: center;
}

.ppcLpQuoteInner img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 18px;
}

.ppcLpQuoteInner blockquote {
    margin: 0 0 14px;
}

.ppcLpQuoteInner cite {
    font-style: normal;
}

/* --------------------------------------------------------------------------
   Mid-page CTA, shown after the savings and suppliers sections
   -------------------------------------------------------------------------- */
/* Sits straight under its section, on the same pale green, so the button
   reads as the end of that section */
.ppcLpInlineCta {
    background: var(--ppc-pale-green);
    text-align: center;
    padding: 0 0 56px;
}

.ppcLpSavings:has(+ .ppcLpInlineCta),
.ppcLpSuppliers:has(+ .ppcLpInlineCta) {
    padding-bottom: 32px;
}

.ppcLpInlineCta .flatButton {
    min-height: 48px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.ppcLpFinalCta {
    background: var(--ppc-light-green);
    border-radius: 31px;
    padding: 44px 6%;
    text-align: center;
}

.ppcLpFinalCta p {
    color: var(--ppc-grey);
    max-width: 620px;
    margin: 0 auto 24px;
}

/* --------------------------------------------------------------------------
   Guarantees footer strip
   -------------------------------------------------------------------------- */
.ppcLpGuarantees {
    background: var(--ppc-dark-green);
    color: #ffffff;
    padding: 30px 0;
    margin-top: 56px;
}

.ppcLpGuaranteeList {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ppcLpGuaranteeList li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 500;
    color: #DFE8D5;
}

.ppcLpGuaranteeList .ppcLpDot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ppc-lime);
    flex: 0 0 auto;
}

.ppcLpOfgemMark {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 26px;
    font-size: 14px;
    color: #A8B8A1;
}

/* --------------------------------------------------------------------------
   Legal footer
   -------------------------------------------------------------------------- */
.ppcLpLegal {
    background: #ffffff;
    padding: 26px 0 34px;
    text-align: center;
}

.ppcLpLegal p {
    font-size: 13px;
    color: var(--ppc-grey);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 8px;
}

.ppcLpLegal a {
    color: var(--ppc-guide-green);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .ppcLpHero {
        padding: 68px 0 64px;
    }

    .ppcLpSupplierGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ppcLpQuoteInner {
        padding: 32px 6%;
    }
}

@media (max-width: 767.98px) {
    .ppcLpHero {
        padding: 52px 0 56px;
    }

    .ppcLpHeader {
        text-align: center;
    }

    .ppcLpHeader .ppcLpLogo img {
        margin: 0 auto 12px;
    }

    .ppcLpFormRow input[type="text"],
    .ppcLpFormRow .flatButton {
        flex: 1 1 100%;
        width: 100%;
    }

    .ppcLpPressLogos {
        gap: 28px;
    }

    .ppcLpPressLogos img {
        height: 20px;
    }

    .ppcLpGuaranteeList {
        flex-direction: column;
        gap: 12px;
    }

    .ppcLpOfgemMark {
        border-left: none;
        padding-left: 0;
        padding-top: 12px;
    }

    .ppcLpSupplierGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Font-size overrides for small screens — the global f-45-900 / f-40-600
   utilities are fixed-pixel, so they need scaling down inside the LP. */
@media (max-width: 767.98px) {
    .ppcLp h1.f-45-900 {
        font-size: 32px !important;
    }

    .ppcLp h2.f-40-600 {
        font-size: 27px !important;
    }

    .ppcLpSaveAmount {
        font-size: 29px;
    }
}

/* --------------------------------------------------------------------------
   Header colour variant

   /img/header-tes-logo.png is the standard site header logo, which is very
   likely dark-on-transparent. On the dark green header bar it would be
   invisible or muddy.

   If that turns out to be the case, add the class `isLight` to the <header>
   element in _Header.cshtml — no other change needed. The header flips to a
   white bar with dark text and the standard logo reads correctly.
   -------------------------------------------------------------------------- */
.ppcLpHeader.isLight {
    background: #ffffff;
    border-bottom: 1px solid var(--ppc-line);
}

.ppcLpHeader.isLight .ppcLpTrustPill {
    background: rgba(138, 167, 72, 0.10);
    border-color: rgba(138, 167, 72, 0.45);
    color: var(--ppc-dark-green);
}

.ppcLpHeader.isLight .ppcLpPhone {
    color: var(--ppc-ink);
}

.ppcLpHeader.isLight .ppcLpPhone:hover,
.ppcLpHeader.isLight .ppcLpPhone:focus {
    color: var(--ppc-guide-green);
}
