/* =====================================================================
   Scotland Winter Offer landing page
   Template: Scotland Winter Offer.cshtml
   Everything is scoped under .scot-page / .scot-* / .rmq-* so nothing
   leaks into the rest of the site. Reuses site variables/fonts from the
   main CSS (--nrg-orange-dark, --box-domestic, OnestLight/Medium/Black).

   Contents
     1. Base & sections
     2. Hero & offer card
     3. Quote form (Rightmove style, .rmq)
     4. As seen in
     5. Coverage map
     6. Team / video / Millie
     7. Testimonials
     8. How to order
     9. Flexible ways to pay
    10. USPs
    11. Bottom call to action
    12. Discount reveal modal
    13. Mobile
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. BASE & SECTIONS
   --------------------------------------------------------------------- */
.scot-page {
    --scot-peach: var(--box-domestic, #F3C9AF);
    --scot-peach-light: #FBEEE4;
    --scot-orange: var(--nrg-orange-dark, #f56d21);
    --scot-green: #00a94e;
    --scot-cream: #F2F0EC;
    --scot-ink: #000000;
    --scot-radius: 16px;

    color: var(--scot-ink);                  /* solid black body text, matches live */
}

.scot-section { padding: 64px 0; }

.scot-section-title {
    font-family: 'OnestBlack', 'Onest', sans-serif;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--scot-ink);
    margin-bottom: 8px;
}

.scot-section-intro {
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 1rem;
    color: var(--scot-ink);
}

.scot-card {
    background: #fff;
    border-radius: var(--scot-radius);
    padding: 32px;
    height: 100%;
}

.scot-first-card { height: auto; }

/* Desktop: white box stretches so its bottom lines up with the bottom of the "Get my quote" button */
@media (min-width: 992px) {
    .scot-first-row .scot-first-card { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
}

.scot-bg-peach { background: var(--scot-peach); }
.scot-bg-white { background: #fff; }

/* ---------------------------------------------------------------------
   2. HERO & OFFER CARD
   --------------------------------------------------------------------- */
.scot-hero {
    position: relative;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    background-color: #9a9a9a;           /* fallback while image loads */
    background-size: cover;
    background-position: center bottom;
    padding: 40px;
}

.scot-hero::before {                      /* subtle left fade so the offer card reads well */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}

.scot-hero > * { position: relative; z-index: 1; }

/* Offer card - glassmorphism */
.scot-offer-card {
    position: relative;
    border-radius: var(--scot-radius);
    padding: 32px;
    max-width: 480px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.scot-offer-card::before {                /* light sheen across the top-left */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.scot-offer-card > * { position: relative; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .scot-offer-card { background: rgba(255, 255, 255, 0.94); }
}

.scot-offer-eyebrow {
    font-family: 'OnestMedium', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--scot-orange);
    margin-bottom: 6px;
}

.scot-offer-title {
    font-family: 'OnestBlack', sans-serif;
    font-size: 2.6rem;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--scot-ink);
    margin-bottom: 4px;
}

.scot-offer-title .accent-orange { color: var(--scot-orange); }

.scot-offer-sub {
    font-family: 'OnestMedium', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.scot-offer-text { font-size: 0.95rem; color: var(--scot-ink); margin-bottom: 20px; }

.scot-reveal-btn {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 !important;
    overflow: hidden;
    text-align: left;
}

.scot-reveal-btn .scot-reveal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    background: #fff;
    color: var(--scot-orange);
    border: 2px solid var(--scot-orange);
    border-radius: 0.375rem 0 0 0.375rem;
}

.scot-reveal-btn .scot-reveal-label { flex: 1; text-align: center; padding-right: 12px; }

.scot-nrgpay-logo {
    font-family: 'OnestBlack', sans-serif;
    color: var(--scot-ink);
}

.scot-nrgpay-logo span { color: var(--scot-orange); }

/* ---------------------------------------------------------------------
   3. QUOTE FORM - Rightmove style (.rmq)
   Change the look from the variables on .rmq.
   --------------------------------------------------------------------- */
.rmq-shell {
    position: relative;
    z-index: 2;
    max-width: 1210px;
    margin: -130px auto 0;
}

.rmq-shell .rmq-alert {
    margin: 0 0 12px;
    padding: 12px 16px;
    color: #7a1414;
    font-weight: 600;
    background: #fde8e8;
    border: 1px solid #f5b5b5;
    border-radius: 12px;
}

/* Quote disclaimer under the form, with the delivery vehicle icon */
.rmq-shell .rmq-disclaimer {
    max-width: 640px;
    margin: 28px auto 40px;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--scot-ink);
}

.rmq-shell .rmq-disclaimer img {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.rmq {
    --rmq-bg: #F3C9AF;                       /* light orange */
    --rmq-divider: rgba(0, 0, 0, 0.15);
    --rmq-text: #000000;                     /* black text */
    --rmq-muted: rgba(0, 0, 0, 0.8);
    --rmq-accent: #f56d21;                   /* dark orange: tab underline, progress bar, focus */

    --rmq-btn: #00a94e;
    --rmq-btn-hover: #008f42;
    --rmq-btn-text: #ffffff;

    --rmq-input-bg: #ffffff;
    --rmq-input-text: #000000;
    --rmq-placeholder: #5a5a5a;
    --rmq-icon: #000000;
    --rmq-focus-ring: rgba(245, 109, 33, 0.3);

    --rmq-error-border: #d93025;
    --rmq-error-bg: #fdecec;
    --rmq-error-text: #a3161a;

    --rmq-radius: 24px;
    --rmq-control-radius: 8px;
    --rmq-control-height: 64px;

    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--rmq-text);
    font-family: inherit;
    text-align: left;
    background: var(--rmq-bg);
    border-radius: var(--rmq-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.rmq *,
.rmq *::before,
.rmq *::after { box-sizing: border-box; }

.rmq [hidden] { display: none !important; }

.rmq-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Tabs */
.rmq .rmq-tabs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0 36px;
    border-bottom: 1px solid var(--rmq-divider);
}

.rmq .rmq-tab {
    position: relative;
    display: block;
    margin: 0;
    padding: 26px 30px 22px;
    color: var(--rmq-muted);
    font-family: 'OnestMedium', sans-serif;
    line-height: 1.2;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.2s ease;
}

.rmq .rmq-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--rmq-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.rmq .rmq-tab:hover,
.rmq .rmq-tab.is-active { color: var(--rmq-text); }

.rmq .rmq-tab.is-active::after { transform: scaleX(1); }

.rmq .rmq-tab:focus-visible {
    outline: 2px solid var(--rmq-text);
    outline-offset: -6px;
    border-radius: 8px;
}

/* Body / steps */
.rmq .rmq-body { padding: 28px 36px 36px; }

.rmq .rmq-step { display: none; }

.rmq .rmq-step.is-active {
    display: block;
    animation: rmq-fade 0.25s ease both;
}

.rmq .rmq-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.rmq .rmq-label {
    margin: 0;
    color: var(--rmq-text);
    font-family: 'OnestMedium', sans-serif;
    font-size: 1.25rem;
    line-height: 1.3;
}

.rmq .rmq-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px 6px;
    color: var(--rmq-muted);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.rmq .rmq-back svg { width: 18px; height: 18px; }
.rmq .rmq-back:hover { color: var(--rmq-text); }

.rmq .rmq-back:focus-visible {
    outline: 2px solid var(--rmq-text);
    outline-offset: 2px;
}

/* Field row */
.rmq .rmq-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
}

.rmq .rmq-row--single { grid-template-columns: minmax(0, 1fr) auto; }

.rmq .rmq-field { min-width: 0; }

.rmq .rmq-control { position: relative; }

.rmq .rmq-icon {
    position: absolute;
    top: 50%;
    left: 22px;
    width: 24px;
    height: 24px;
    color: var(--rmq-icon);
    transform: translateY(-50%);
    pointer-events: none;
}

/* Inputs & selects */
.rmq .rmq-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: var(--rmq-control-height);
    margin: 0;
    padding: 0 20px;
    color: var(--rmq-input-text);
    font: inherit;
    font-size: 1.125rem;
    line-height: normal;
    background-color: var(--rmq-input-bg);
    border: 2px solid transparent;
    border-radius: var(--rmq-control-radius);
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rmq .rmq-control--icon .rmq-input { padding-left: 60px; }

.rmq .rmq-input::placeholder {
    color: var(--rmq-placeholder);
    opacity: 1;
}

.rmq .rmq-input:focus {
    border-color: var(--rmq-accent);
    box-shadow: 0 0 0 3px var(--rmq-focus-ring);
}

.rmq .rmq-input.is-invalid {
    border-color: var(--rmq-error-border);
    background-color: #fff7f7;
    box-shadow: none;
}

.rmq .rmq-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.2); }

.rmq select.rmq-input {
    padding-right: 52px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%231a1d29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.rmq select.rmq-input::-ms-expand { display: none; }

.rmq input[type="number"].rmq-input { -moz-appearance: textfield; }

.rmq input[type="number"].rmq-input::-webkit-inner-spin-button,
.rmq input[type="number"].rmq-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* Error message - soft red note under the field */
.rmq .rmq-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    padding: 5px 10px;
    color: var(--rmq-error-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    background: var(--rmq-error-bg);
    border-radius: 6px;
}

.rmq .rmq-error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--rmq-error-border);
    border-radius: 50%;
}

/* Button */
.rmq .rmq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 240px;
    height: var(--rmq-control-height);
    margin: 0;
    padding: 0 32px;
    color: var(--rmq-btn-text);
    font-family: 'OnestMedium', sans-serif;
    font-size: 1.125rem;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    background: var(--rmq-btn);
    border: 0;
    border-radius: var(--rmq-control-radius);
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.rmq .rmq-btn:hover {
    color: var(--rmq-btn-text);
    background: var(--rmq-btn-hover);
}

.rmq .rmq-btn:active { transform: translateY(1px); }

.rmq .rmq-btn:focus-visible {
    outline: 3px solid var(--rmq-text);
    outline-offset: 2px;
}

.rmq .rmq-btn[aria-busy="true"] {
    opacity: 0.75;
    pointer-events: none;
}

/* Maintenance notice (uses the same card) */
.rmq .rmq-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    color: var(--scot-ink, #000000);
    background: #ffffff;
    border-radius: 12px;
}

.rmq .rmq-notice p { margin: 0; color: inherit; }
.rmq .rmq-notice-title { margin-bottom: 4px !important; font-weight: 700; }

/* Tab panels */
.rmq .rmq-panel { display: none; }

.rmq .rmq-panel.is-active {
    display: block;
    animation: rmq-fade 0.25s ease both;
}

/* Step counter + progress bar (inside the quote tab) */
.rmq .rmq-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
}

.rmq .rmq-progress-label {
    margin: 0;
    color: var(--rmq-muted);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.rmq .rmq-progress-track {
    flex: 0 1 220px;
    height: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 6px;
}

.rmq .rmq-progress-bar {
    width: 33.333%;
    height: 100%;
    background: var(--rmq-accent);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.rmq .rmq-field .rmq-error { display: flex; width: fit-content; }

/* Text in the Order by phone / Customer promise tabs */
.rmq .rmq-text {
    max-width: 680px;
    margin: 0 0 20px;
    color: var(--rmq-text);
    font-size: 1rem;
    line-height: 1.5;
}

.rmq .rmq-text--small { font-size: 0.9rem; color: var(--rmq-muted); }

.rmq .rmq-text a {
    color: var(--rmq-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* "Mention code TAKE20..." with a white curved outline */
.rmq .rmq-code-note {
    margin: 0;
    padding: 10px 20px;
    color: var(--rmq-text);
    font-size: 0.95rem;
    line-height: 1.35;
    border: 2px solid #fff;
    border-radius: 999px;
}

/* Customer promise points */
.rmq .rmq-promise {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rmq .rmq-promise li {
    position: relative;
    padding-left: 30px;
    color: var(--rmq-text);
    font-size: 1rem;
    line-height: 1.45;
}

.rmq .rmq-promise li::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--rmq-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    border-radius: 50%;
}

/* New tick icon (set by tickIcon in the template) replaces the orange ticks */
.scot-has-tick .rmq .rmq-promise li { padding-left: 34px; }

.scot-has-tick .rmq .rmq-promise li::before {
    top: 0.05em;
    width: 24px;
    height: 24px;
    background: var(--scot-tick) center / contain no-repeat;
    border-radius: 0;
}

/* PayPal Pay in 3 message inside the quote tab */
.rmq .rmq-paypal { margin-top: 28px; }
.rmq .rmq-paypal:empty { display: none; }

.rmq .rmq-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.rmq .rmq-panel-actions .rmq-text { margin: 0; }

@keyframes rmq-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------
   4. AS SEEN IN
   --------------------------------------------------------------------- */
.scot-featured {
    background: #fff;
    border-radius: 12px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
}

.scot-featured-label { white-space: nowrap; font-size: 0.9rem; }
.scot-featured img { height: 26px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------------------------------------------------------------------
   5. TRUSTED BY HOMEOWNERS + COVERAGE MAP (Leaflet)
   --------------------------------------------------------------------- */
.scot-trusted {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: left;
}

.scot-trusted p,
.scot-trusted li {
    font-size: 1rem;                      /* body copy matches the bullet points */
    line-height: 1.55;
}

.scot-trusted p { margin: 0 0 18px; }

/* New tick icon for bullet lists (the image is set by tickIcon in the template) */
.scot-tick-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.scot-tick-list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 36px;
}

.scot-tick-list li:last-child { margin-bottom: 0; }

.scot-tick-list li::marker { content: none; }

.scot-tick-list li::before {
    content: "";
    position: absolute;
    top: 0.1em;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--scot-tick) center / contain no-repeat;
}
.scot-map-wrap {
    background: #fff;
    border-radius: var(--scot-radius);
    padding: 16px;
    height: 100%;
}

.scot-coverage-map {
    --scot-pin-dark: #1f5c3f;
    --scot-pin-mid: #6faf82;
    --scot-pin-light: #a9cdb1;
    --scot-dot: #fdae3b;

    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    isolation: isolate; /* keeps the map below the header and modals */
    border-radius: 16px;
    background: #ece9e4;
}

.scot-coverage-map__fallback,
.scot-coverage-map__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.scot-coverage-map__fallback { object-fit: cover; }

.scot-coverage-map__canvas {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scot-coverage-map.is-ready .scot-coverage-map__canvas { opacity: 1; }

.scot-coverage-map .leaflet-container {
    background: #9bdcff;
    font: inherit;
}

.scot-map-label {
    color: #8a8580;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 0 3px #ebe7e3, 0 0 3px #ebe7e3, 0 0 6px #ebe7e3;
}

.scot-map-label.is-minor,
.scot-coverage-map .leaflet-scotRoads-pane {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scot-coverage-map.is-settled .scot-map-label.is-minor,
.scot-coverage-map.is-settled .leaflet-scotRoads-pane { opacity: 1; }

/* Depot pin */
.scot-map-pin {
    position: relative;
    width: 72px;
    height: 80px;
    transform-origin: 50% 100%;
}

.scot-map-pin__head {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: #fff;
    background: var(--scot-pin-dark);
    box-shadow: 0 0 0 5px var(--scot-pin-mid), 0 0 0 10px var(--scot-pin-light);
    background-clip: padding-box;
    transform: scale(0.8);
}

.scot-map-pin__head::after {
    content: "";
    position: absolute;
    bottom: -19px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: var(--scot-pin-dark);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateX(-50%);
}

.scot-map-pin__pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--scot-pin-mid);
    opacity: 0;
}

.scot-map-pin.is-animated {
    animation: scot-pin-drop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.scot-map-pin.is-animated .scot-map-pin__pulse {
    animation: scot-pin-pulse 1.1s ease-out 0.35s 1 both;
}

/* Delivery dots */
.scot-map-dot-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scot-map-dot {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--scot-dot);
}

.scot-map-dot.is-animated {
    animation: scot-dot-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scot-pin-drop {
    from { opacity: 0; transform: translateY(-36px) scale(0.7); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scot-pin-drop-small {
    from { opacity: 0; transform: translateY(-36px) scale(0.5); }
    to   { opacity: 1; transform: translateY(0) scale(0.75); }
}

@keyframes scot-pin-pulse {
    from { opacity: 0.6; transform: scale(0.8); }
    to   { opacity: 0; transform: scale(2.2); }
}

@keyframes scot-dot-pop {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------------------------------------------------------------------
   6. TEAM / VIDEO / MILLIE
   --------------------------------------------------------------------- */
.scot-video {
    max-width: 960px;                        /* not full width on big screens */
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--scot-radius);
    overflow: hidden;
    background: #000;
}

.scot-video > iframe { border: 0; }

/* Message from Millie - orange banner with her photo standing over the left edge */
.scot-millie {
    --scot-millie-overhang: 72px;            /* how far her head sits above the banner */

    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
    margin-top: calc(var(--scot-millie-overhang) + 24px);
    color: var(--scot-ink);
    background: var(--scot-peach);           /* light orange */
    border-radius: 24px;
}

.scot-millie-photo { position: relative; }

.scot-millie-photo img {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: auto;
    max-width: none;
    height: calc(100% + var(--scot-millie-overhang));
    transform: translateX(-50%);
    object-fit: contain;
    object-position: bottom;
}

.scot-millie-body { padding: 40px 48px 40px 8px; }

.scot-millie-title {
    margin: 0 0 14px;
    color: var(--scot-ink);
    font-family: 'OnestBlack', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.scot-millie-text {
    margin: 0 0 14px;
    color: var(--scot-ink);
    font-family: inherit;                    /* regular weight, not bold */
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.5;
}

.scot-millie-sign {
    margin: 18px 0 0;
    color: var(--scot-ink);
    font-size: 0.95rem;
}

.scot-millie-sign,
.scot-millie-sign strong { font-family: 'OnestBlack', sans-serif; font-weight: normal; }

/* ---------------------------------------------------------------------
   7. TESTIMONIALS
   --------------------------------------------------------------------- */
.scot-testimonials-wrap { max-width: 980px; margin: 0 auto; }

/* Every review box the same height as the tallest one */
.scot-testimonials.owl-carousel .owl-stage { display: flex; }
.scot-testimonials.owl-carousel .owl-item { display: flex; height: auto; }
.scot-testimonials.owl-carousel .owl-item > .scot-testimonial,
.scot-testimonials.owl-carousel .owl-item > div {
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    margin: 0 3px;                            /* keeps the orange border inside the clipped area */
}

/* Only the current review shows: the site CSS lets the next/previous boxes peek out
   past the edges, which put their borders under the arrows */
.scot-testimonials.owl-carousel .owl-stage-outer { overflow: hidden !important; }
.scot-testimonials-wrap .custom-owl-nav-circle { position: relative; z-index: 2; flex: 0 0 48px; }

/* Mobile review bar partial ("Review Bar - Mobile With No Seen"): the site CSS
   fades 3 panels on a 10.5s loop, so with only Feefo + Trustpilot there was a
   blank slot. On this page: 2 panels, 4s each, no gap. */
.scot-page .reviews-bar-fade .review-panel { animation: scot-review-two 8s infinite; }
.scot-page .reviews-bar-fade .review-panel:nth-child(1) { animation-delay: 0s; }
.scot-page .reviews-bar-fade .review-panel:nth-child(2) { animation-delay: 4s; }
.scot-page .reviews-bar-fade .review-panel:nth-child(n+3) { display: none !important; }

@keyframes scot-review-two {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    44%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Mobile review bar at the top: space between it and the hero image */
.scot-review-bar-mobile { margin-bottom: 12px; }
.scot-review-bar-mobile .reviews-bar-fade { margin-bottom: 0; }

.scot-testimonial {
    border: 2px solid var(--scot-orange);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scot-testimonial-stars { color: #00b67a; margin-bottom: 12px; }
.scot-testimonial-text { font-size: 1.1rem; margin-bottom: 12px; }
.scot-testimonial-name { font-family: 'OnestMedium', sans-serif; }
.scot-testimonial-location { font-size: 0.85rem; color: #333; }

/* Small, subtle arrows under the reviews on mobile */
.scot-review-nav {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 16px auto 24px;
    padding: 0;
}

.scot-review-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #000000;
    font-size: 0.85rem;
    line-height: 1;
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.scot-review-arrow i { color: inherit; }

.scot-review-arrow:hover,
.scot-review-arrow:focus-visible {
    color: #fff;
    background: var(--scot-orange);
    border-color: var(--scot-orange);
}

/* ---------------------------------------------------------------------
   8. HOW TO ORDER
   --------------------------------------------------------------------- */
.scot-step {
    background: #F9F6F3;
    border: 1px solid var(--scot-ink);
    border-radius: 12px;
    padding: 24px 18px;
    height: 100%;
    text-align: center;
}

.scot-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--scot-orange);
    color: #fff;
    font-family: 'OnestBlack', sans-serif;
    margin-bottom: 12px;
}

.scot-step h3 { text-align: center; font-size: 1.05rem; margin-bottom: 6px; }
.scot-step p { font-size: 0.85rem; margin: 0; color: var(--scot-ink); }

@media (min-width: 992px) {
    .scot-steps > .col { flex: 1 0 0%; }  /* 5 equal columns on desktop */
}

/* ---------------------------------------------------------------------
   9. FLEXIBLE WAYS TO PAY
   --------------------------------------------------------------------- */
/* Each option is one tile with a curved outline: PayPal blue / NRG orange */
.scot-pay {
    --scot-pay-outline: var(--scot-orange);

    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
    border: 2px solid var(--scot-pay-outline);
    border-radius: var(--scot-radius);
}

.scot-pay--paypal { --scot-pay-outline: #0070ba; }
.scot-pay--nrgpay { --scot-pay-outline: var(--scot-orange); }

.scot-pay-img {
    aspect-ratio: 16 / 10;                   /* taller image tiles */
    overflow: hidden;
}

.scot-pay-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.scot-pay-card {
    flex: 1 1 auto;
    padding: 24px 28px 28px;
    background: transparent;
}

.scot-pay-card p { font-size: 1rem; line-height: 1.55; margin-bottom: 12px; }

.scot-pay-logo {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 14px;
    font-family: 'OnestBlack', sans-serif;
    font-size: 1.6rem;
}

.scot-pay-logo img {
    display: block;
    width: auto !important;                  /* stop site-wide img rules shrinking it */
    max-width: 220px !important;
    height: 44px !important;
    max-height: none !important;
    object-fit: contain;
    object-position: left center;
}

/* ---------------------------------------------------------------------
   PREFER TO SPEAK TO SOMEONE?
   Banner with a cut-out photo standing over the top edge
   --------------------------------------------------------------------- */
.scot-speak {
    --scot-speak-overhang: 80px;             /* how far the photo rises above the banner */

    position: relative;
    display: flex;
    align-items: center;
    min-height: 250px;
    margin-top: var(--scot-speak-overhang);
    border-radius: 16px;
    background-color: #d9d6d2;
    background-image:                        /* soft "blurred office" look; a photo set in the template replaces it */
        radial-gradient(ellipse 30% 70% at 4% 85%, rgba(224, 247, 247, 0.9), transparent 70%),
        radial-gradient(ellipse 25% 60% at 2% 10%, rgba(178, 224, 228, 0.8), transparent 70%),
        radial-gradient(ellipse 22% 80% at 30% 40%, rgba(255, 255, 255, 0.55), transparent 70%),
        radial-gradient(ellipse 18% 70% at 48% 75%, rgba(255, 255, 255, 0.4), transparent 70%),
        radial-gradient(ellipse 20% 90% at 62% 20%, rgba(250, 243, 240, 0.85), transparent 70%),
        radial-gradient(ellipse 25% 90% at 95% 50%, rgba(150, 146, 142, 0.6), transparent 70%),
        linear-gradient(90deg, #cfd3d3 0%, #c9c7c4 50%, #bdb9b5 100%);
    background-size: cover;
    background-position: center;
}

.scot-speak-body {
    position: relative;
    z-index: 1;
    max-width: 62%;
    padding: 36px 48px;
}

.scot-speak-title {
    margin: 0 0 12px;
    color: var(--scot-ink);
    font-family: 'OnestBlack', sans-serif;
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    white-space: nowrap;                     /* one line on desktop */
    line-height: 1.05;
    text-transform: uppercase;
}

.scot-speak-title .accent-orange { color: var(--scot-orange); }

.scot-speak-text {
    max-width: 600px;
    margin: 0 0 22px;
    color: var(--scot-ink);
    font-size: 1.05rem;
    line-height: 1.45;
}

.scot-speak-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 280px;
    height: 54px;
    padding: 0 28px;
    color: var(--scot-green);
    font-family: 'OnestMedium', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid var(--scot-green);
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.scot-speak-btn:hover,
.scot-speak-btn:focus-visible {
    color: #fff;
    background: var(--scot-green);
}

.scot-speak-btn:focus-visible {
    outline: 3px solid var(--scot-ink);
    outline-offset: 2px;
}

.scot-speak-photo {
    position: absolute;
    right: 10%;
    bottom: 0;
    display: block;
    height: calc(100% + var(--scot-speak-overhang));
}

.scot-speak-photo img {
    display: block;
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

/* ---------------------------------------------------------------------
   10. USPs
   --------------------------------------------------------------------- */
.scot-usps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.scot-usp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 32px 24px 28px;
    text-align: center;
    background: #fff;
    border-radius: var(--scot-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scot-usp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.scot-usp-icon {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.scot-usp-text {
    max-width: 260px;
    margin: 0;
    color: var(--scot-ink);
    font-family: 'OnestMedium', sans-serif;
    font-size: 1.1rem;
    line-height: 1.35;
}

/* ---------------------------------------------------------------------
   11. BOTTOM CALL TO ACTION
   --------------------------------------------------------------------- */
.scot-cta-band {
    display: flex;
    align-items: center;
    min-height: clamp(420px, 31vw, 640px);
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.scot-cta-band .scot-offer-card {
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* ---------------------------------------------------------------------
   12. DISCOUNT REVEAL MODAL
   --------------------------------------------------------------------- */
.scot-reveal-modal .modal-dialog { max-width: 760px; }

.scot-reveal-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
}

.scot-reveal-code-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 48px 24px 40px;
    text-align: center;
    background: var(--scot-orange, #f56d21);
}

.scot-reveal-eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'OnestMedium', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scot-reveal-code {
    margin: 0;
    color: #fff;
    font-family: 'OnestBlack', sans-serif;
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    letter-spacing: 0.12em;
    white-space: nowrap;
    user-select: all;
    transition: transform 0.3s ease;
}

.scot-reveal-code.is-done {
    transform: scale(1.06);
    animation: scot-code-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scot-code-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.2); text-shadow: 0 0 24px rgba(255, 255, 255, 0.8); }
    100% { transform: scale(1.06); }
}

/* Confetti canvas over the orange panel */
.scot-confetti {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Copy button + note fade in once the code has finished typing */
.scot-reveal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.scot-reveal-actions.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.scot-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    height: 52px;
    padding: 0 28px;
    color: #fff;
    font-family: 'OnestMedium', sans-serif;
    font-size: 1.05rem;
    background: var(--scot-green, #00a94e);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.scot-copy-btn:hover { background: #008f42; }
.scot-copy-btn:active { transform: translateY(1px); }

.scot-copy-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.scot-copy-btn.is-copied,
.scot-copy-btn.is-copied:hover,
.scot-copy-btn.is-copied:focus,
.scot-copy-btn.is-copied:active {
    color: #000000;
    background: #ffffff;
}

.scot-copy-btn.is-copied i { color: inherit; }

.scot-reveal-note {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
    .scot-reveal-actions,
    .scot-reveal-code { transition: none; animation: none; }
}

.scot-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    filter: invert(1) grayscale(1) brightness(2);  /* white cross */
    opacity: 0.9;
}

.scot-modal-close:hover { opacity: 1; }

/* ---------------------------------------------------------------------
   13. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .rmq-shell { margin-top: -80px; }

    .rmq .rmq-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
    }

    .rmq .rmq-row > .rmq-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .rmq .rmq-row--single { grid-template-columns: minmax(0, 1fr) auto; }

    .rmq .rmq-row--single > .rmq-btn {
        grid-column: auto;
        width: auto;
    }

    .scot-cta-band {
        align-items: flex-start;
        min-height: 230px;
        padding-top: 1.5rem;
        background-position: 72% bottom;
    }

    .scot-cta-band .scot-offer-card { padding: 1.5rem; }

    .scot-speak-body { max-width: 64%; padding: 30px 32px; }
    .scot-speak-title { white-space: normal; }
    .scot-speak-photo { right: 2%; height: calc(85% + var(--scot-speak-overhang)); }

    /* First-time section: centred text, bullets stay left aligned */
    .scot-first-list {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
    .scot-speak-btn { min-width: 0; }
}

@media (max-width: 767.98px) {
    .scot-section { padding: 40px 0; }
    .scot-section-title { font-size: 1.5rem; }

    .scot-hero {
        min-height: 0;
        padding: 16px 16px 260px;            /* taller so more of the tanker shows */
        border-radius: 16px;
    }

    .scot-offer-card {
        padding: 24px 20px;
        max-width: none;
        text-align: center;                  /* same transparency as desktop */
    }

    .scot-offer-title { font-size: 2rem; }
    .scot-offer-sub { font-size: 1.05rem; }

    .scot-featured { flex-direction: column; gap: 8px; }

    .scot-speak {
        --scot-speak-overhang: 60px;
        flex-direction: column;
        min-height: 0;
        text-align: center;
    }

    .scot-speak-photo {
        position: relative;
        right: auto;
        order: -1;                          /* photo above the text on phones */
        height: 280px;
        margin-top: calc(var(--scot-speak-overhang) * -1);
    }

    .scot-pay-card { padding: 20px; }

    .scot-speak-body { max-width: none; padding: 8px 22px 30px; }
    .scot-speak-text { font-size: 1rem; margin-bottom: 22px; }
    .scot-speak-btn { width: 100%; min-width: 0; height: 56px; }

    .scot-usps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .scot-usp { padding: 22px 14px 20px; gap: 12px; }
    .scot-usp-icon { width: 80px; height: 80px; }
    .scot-usp-text { font-size: 0.95rem; }

    .scot-testimonial { padding: 24px; }
    .scot-millie {
        --scot-millie-overhang: 60px;
        grid-template-columns: 1fr;
        text-align: center;
        border-radius: 18px;
    }

    .scot-millie-photo { height: 200px; }
    .scot-millie-photo img { height: calc(200px + var(--scot-millie-overhang)); }

    .scot-millie-body { padding: 20px 22px 30px; }
    .scot-millie-title { font-size: 1.5rem; }
    .scot-millie-text { font-size: 1rem; }

    /* Millie on mobile: #FACEBA box, black text, "Millie" in the darker orange */
    .scot-millie { background: #FACEBA; }
    .scot-millie,
    .scot-millie-title,
    .scot-millie-text,
    .scot-millie-sign,
    .scot-millie-sign strong { color: #000; }
    .scot-millie-title span,
    .scot-millie-title .cro-orange { color: #f56d21; }

    /* Discount pop-up: less space above the code */
    .scot-reveal-code-stage { min-height: 0; padding: 24px 20px 32px; }

    /* Ways to pay: space between the stacked tiles, and clear of the USPs */
    .scot-pay { flex: 0 0 auto; }
    .scot-pay-col + .scot-pay-col { margin-top: 24px; }
    .scot-pay-section { padding-bottom: 56px; }
    .scot-pay-section + .scot-section { position: relative; padding-top: 48px; }

    /* Prefer to speak: tidy stacked card */
    .scot-speak {
        --scot-speak-overhang: 40px;
        overflow: visible;
        background-position: center;
    }
    .scot-speak-photo {
        display: flex;
        justify-content: center;
        width: 100%;
        height: 240px;
    }
    .scot-speak-photo img {
        max-width: 100%;
        height: 100%;
        margin: 0 auto;
    }
    .scot-speak-body { width: 100%; padding: 12px 20px 24px; }
    .scot-speak-title { font-size: 1.5rem; line-height: 1.15; margin-bottom: 12px; white-space: normal; }
    .scot-speak-text { font-size: 0.95rem; line-height: 1.5; margin-bottom: 18px; }
    .scot-speak-btn { height: 52px; font-size: 1rem; }

    /* Trusted section: centre the intro paragraph (bullets stay left) */
    .scot-trusted p { text-align: center; }

    /* Hero: no space under the offer card on phones, so the quote form sits right below it */
    .scot-hero {
        min-height: 0 !important;
        padding: 12px;                       /* wraps the discount box so the quote form comes up */
        background-position: center bottom;
    }
    .rmq-shell { margin-top: 12px; }     /* no overlap now the hero is just the offer box */
    .scot-hero[style*="--scot-hero-mobile"] { background-image: var(--scot-hero-mobile) !important; }
    .scot-offer-card { padding: 18px 16px; }
    .scot-offer-eyebrow { margin-bottom: 2px; }
    .scot-offer-title { font-size: 1.75rem; }
    .scot-offer-sub { font-size: 1rem; margin-bottom: 6px; }
    .scot-offer-text { font-size: 0.9rem; margin-bottom: 12px; }
}

@media (max-width: 575.98px) {
    .rmq-shell { margin-top: 12px; }

    .rmq {
        --rmq-radius: 18px;
        --rmq-control-height: 56px;
    }

    .rmq .rmq-tabs { gap: 0; padding: 0 8px; }

    .rmq .rmq-tab {
        flex: 1 1 0;
        padding: 18px 4px 14px;
        font-size: 0.8rem;
        text-align: center;
    }

    .rmq .rmq-panel-actions > .rmq-btn { width: 100%; min-width: 0; }

    .rmq .rmq-body { padding: 20px 16px 24px; }
    .rmq .rmq-label { font-size: 1.05rem; }

    .rmq .rmq-row,
    .rmq .rmq-row--single {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rmq .rmq-row > .rmq-btn,
    .rmq .rmq-row--single > .rmq-btn {
        grid-column: auto;
        width: 100%;
        min-width: 0;
    }

    .rmq .rmq-input { font-size: 1rem; } /* 16px stops iOS zooming on focus */

    .scot-map-pin { transform: scale(0.75); }
    .scot-map-pin.is-animated { animation-name: scot-pin-drop-small; }

    .scot-map-dot {
        width: 12px;
        height: 12px;
        border-width: 1.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scot-usp { transition: none; }
    .scot-usp:hover { transform: none; }

    .rmq *,
    .rmq *::before,
    .rmq *::after {
        animation: none !important;
        transition: none !important;
    }
}