/* ==========================================================================
   Contact page (contact.html) - hero, contact cards, enquiry form, map.
   Shared parts (eyebrows, buttons, FAQ, CTA, scroll reveal) come from
   about-page.css / about-page.js. Form behaviour: assets/js/contact-page.js
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Hero ---------- */
.ct-hero {
    padding: clamp(8rem, 13vw, 10rem) 0 clamp(7rem, 11vw, 9rem);
    background:
        linear-gradient(100deg, rgba(8, 15, 29, 0.95) 0%, rgba(8, 15, 29, 0.85) 40%, rgba(8, 15, 29, 0.35) 72%, rgba(8, 15, 29, 0.15) 100%),
        url("../images/hero-panoramic-uk.webp") 80% 30% / cover no-repeat,
        #0B1424;
}

.ct-hero::before {
    display: none;
}

.ct-hero-inner {
    position: relative;
}

.ct-hero .ab-hero-title,
.ct-hero .ab-hero-sub {
    max-width: 600px;
}

/* ---------- Contact cards (overlap the hero) ---------- */
.ct-cards-wrap {
    position: relative;
    z-index: 2;
    margin-top: clamp(-5rem, -7vw, -3.5rem);
}

.ct-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.ct-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.6rem 1.5rem;
    border-radius: 22px;
    background: var(--color-bg-card);
    border: 1px solid color-mix(in srgb, var(--color-text-heading) 8%, transparent);
    box-shadow: 0 30px 60px -38px rgba(15, 23, 42, 0.55);
    transition: transform 0.45s var(--ab-ease), box-shadow 0.45s var(--ab-ease), border-color 0.3s;
}

.ct-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--color-secondary) 45%, transparent);
    box-shadow: 0 34px 64px -34px color-mix(in srgb, var(--color-secondary) 55%, transparent);
}

.ct-ic {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 0.6rem;
    border-radius: 15px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--color-secondary) 75%, #FFFFFF), var(--color-secondary));
    color: #FFFFFF;
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--color-secondary) 80%, transparent);
}

.ct-ic svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ct-ic-wa {
    background: linear-gradient(145deg, #4ADE80, #16A34A);
    box-shadow: 0 12px 24px -12px rgba(22, 163, 74, 0.7);
}

.ct-ic-wa svg {
    fill: currentColor;
    stroke: none;
}

.ct-card h2 {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
    color: var(--color-text-heading);
}

.ct-link {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.25s;
}

.ct-link small {
    flex: 0 0 auto;
    padding: 0.05rem 0.45rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--color-secondary) 14%, transparent);
    color: color-mix(in srgb, var(--color-secondary) 75%, var(--color-text-heading));
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ct-card a.ct-link {
    color: var(--color-text-heading);
}

body.dark-mode .ct-card a.ct-link {
    color: #E2E8F0;
}

.ct-card a.ct-link:hover,
.ct-card a.ct-link:focus-visible {
    color: var(--color-secondary);
}

.ct-email {
    font-size: 0.92rem;
    overflow-wrap: normal;    /* breaks only at the <wbr> after the @ */
}

.ct-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
}

.ct-note {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--color-text-light);
}

/* ---------- Enquiry section ---------- */
.ct-enquiry-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.ct-robot {
    width: 100%;
    height: 340px;
    margin: -1rem 0 -2rem;
}

.ct-intro p {
    line-height: 1.75;
    color: var(--color-text-light);
}

.ct-ticks {
    display: grid;
    gap: 0.6rem;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
    list-style: none;
}

.ct-ticks li {
    position: relative;
    padding-left: 2rem;
    font-weight: 600;
    color: var(--color-text-heading);
}

.ct-ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--color-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ct-form-card {
    position: relative;
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    border-radius: 26px;
    background: var(--color-bg-card);
    border: 1px solid color-mix(in srgb, var(--color-text-heading) 8%, transparent);
    box-shadow: 0 40px 80px -46px rgba(15, 23, 42, 0.6);
}

.ct-form-card::before {
    content: '';
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: -1px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

/* a soft, calm glow around the form while the visitor is filling it in: warm gold, fades in
   slowly and breathes gently (a separate layer, so the card's own styles are untouched) */
.ct-form-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        0 0 0 1px rgba(197, 160, 57, 0.32),
        0 0 0 8px rgba(197, 160, 57, 0.06),
        0 0 60px 6px rgba(197, 160, 57, 0.24);
    opacity: 0;
    transition: opacity 1.1s ease;
}
.ct-form-card:focus-within::after {
    opacity: 1;
    animation: ct-form-calm 6s ease-in-out 1.1s infinite;
}
@keyframes ct-form-calm {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
html.dark-mode .ct-form-card::after {
    box-shadow:
        0 0 0 1px rgba(231, 207, 134, 0.28),
        0 0 0 8px rgba(231, 207, 134, 0.05),
        0 0 60px 6px rgba(201, 164, 56, 0.18);
}
@media (prefers-reduced-motion: reduce) {
    .ct-form-card:focus-within::after { animation: none; }
}

.ct-form-card > h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text-heading);
}

.ct-form-sub {
    margin: 0.3rem 0 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.1rem;
}

.ct-field {
    margin-bottom: 1.05rem;
}

.ct-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-text-heading);
}

.ct-req {
    color: var(--color-secondary);
}

.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    border: 1.5px solid color-mix(in srgb, var(--color-text-heading) 14%, transparent);
    background: var(--color-bg-body);
    color: var(--color-text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.ct-field textarea {
    resize: vertical;
    min-height: 130px;
}

.ct-field select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23C5A039' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 16px;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-secondary) 18%, transparent);
}

.ct-field.has-error input,
.ct-field.has-error select,
.ct-field.has-error textarea {
    border-color: #DC2626;
}

.ct-err {
    min-height: 0;
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    color: #DC2626;
}

.ct-err:empty {
    display: none;
}

.ct-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ct-status {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
}

.ct-status:empty {
    display: none;
}

.ct-status.is-error {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #B91C1C;
}

.ct-status a {
    color: inherit;
    font-weight: 700;
}

.ct-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ct-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s var(--ab-ease);
}

.ct-submit:hover svg {
    transform: translate(3px, -3px);
}

.ct-submit.is-busy {
    opacity: 0.75;
    cursor: progress;
}

.ct-privacy {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    text-align: center;
    color: var(--color-text-light);
}

.ct-privacy a {
    color: var(--color-secondary);
}

.ct-success {
    padding: 1rem 0.5rem;
    text-align: center;
    outline: none;
}

.ct-success[hidden] {
    display: none;
}

.ct-success h3 {
    margin: 0 0 0.4rem;
    color: var(--color-text-heading);
}

.ct-success p {
    margin: 0 0 1.25rem;
    color: var(--color-text-light);
}

/* ---------- Map ---------- */
.ct-map-wrap {
    padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.ct-map {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid color-mix(in srgb, var(--color-text-heading) 8%, transparent);
    box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.55);
    background: var(--color-bg-light);
}

.ct-map iframe {
    display: block;
    width: 100%;
    height: 440px;
    border: 0;
}

/* Shown until the visitor chooses to load Google Maps (cookie consent) */
.ct-map iframe[hidden],
.ct-map-consent[hidden] {
    display: none;
}

.ct-map-consent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.9rem;
    min-height: 440px;
    padding: 2rem 2.5rem;
    background:
        radial-gradient(500px 300px at 15% 50%, color-mix(in srgb, var(--color-secondary) 14%, transparent), transparent 70%),
        repeating-linear-gradient(45deg, color-mix(in srgb, var(--color-text-heading) 4%, transparent) 0 2px, transparent 2px 22px),
        var(--color-bg-light);
}

.ct-map-consent > * {
    max-width: 420px;
}

.ct-map-consent svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--color-secondary);
    stroke-width: 1.8;
}

.ct-map-consent p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-light);
}

.ct-map-consent a {
    color: var(--color-secondary);
    font-weight: 600;
}

.ct-map-card {
    position: absolute;
    right: 1.5rem;     /* right side: Google's own place box sits top-left */
    top: 1.5rem;
    max-width: 330px;
    padding: 1.4rem 1.5rem;
    border-radius: 20px;
    background: rgba(11, 20, 36, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
}

.ct-map-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #FFFFFF;
}

.ct-map-card address {
    margin-bottom: 1.1rem;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.ct-map-card .btn-primary {
    background: #C5A039;
    border-color: #C5A039;
    color: #0B1424;
}

/* ---------- Why contact us ---------- */
.ct-why {
    background: var(--color-bg-light);
}

.ct-why-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.ct-why-item {
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid color-mix(in srgb, var(--color-text-heading) 8%, transparent);
    transition: transform 0.4s var(--ab-ease), border-color 0.3s;
}

.ct-why-item:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--color-secondary) 45%, transparent);
}

.ct-why-item span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-secondary) 13%, transparent);
    font-size: 1.5rem;
}

.ct-why-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    color: var(--color-text-heading);
}

.ct-why-item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-light);
}

.ct-cta-wa:hover {
    border-color: #25D366 !important;
    color: #4ADE80 !important;
}

/* ---------- Original location cards (restored) ---------- */
.ct-locations {
    padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.ct-locations .contact-locations-grid > div {
    border-radius: 22px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ct-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ct-why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ct-enquiry-grid {
        grid-template-columns: 1fr;
    }

    .ct-robot {
        height: 260px;
        margin: -1rem 0 -1rem;
    }

    .ct-map-card {
        position: static;
        max-width: none;
        border-radius: 0;
    }

    .ct-map iframe {
        height: 340px;
    }

    .ct-map-consent {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .ct-hero {
        background:
            linear-gradient(180deg, rgba(8, 15, 29, 0.9) 0%, rgba(8, 15, 29, 0.82) 60%, rgba(8, 15, 29, 0.7) 100%),
            url("../images/hero-panoramic-uk.webp") 70% 30% / cover no-repeat,
            #0B1424;
    }

    .ct-cards,
    .ct-row {
        grid-template-columns: 1fr;
    }

    .ct-why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ct-why-item:last-child {
        grid-column: 1 / -1;
    }

    .ab-cta-actions .ab-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-card,
    .ct-why-item,
    .ct-submit svg {
        transition: none;
    }
}

/* ==========================================================================
   Robot companion (assets/js/contact-robot.js)
   The robot's canvas becomes a floating layer that can glide over the form.
   It never takes clicks, taps, typing or scrolling (pointer-events: none),
   sits above the page content but below the fixed site header (z-index 1000),
   and only moves with GPU transforms, so the layout never shifts.
   ========================================================================== */
.ct-robot.ct-robot-live {
    position: relative;
    z-index: 40;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

.ct-robot.ct-robot-live canvas {
    pointer-events: none;
}

/* desktop/laptop: an empty strip on the card's right where the robot sits
   beside the active field (class added by contact-robot.js above 900px,
   not with reduced motion) */
.ct-form-card.ct-robot-lane {
    padding-right: calc(clamp(1.5rem, 3.5vw, 2.5rem) + 64px);
}

/* soft floating shadow under the robot; grows fainter as it rises over the page */
.ct-robot-shadow {
    position: absolute;
    left: 50%;
    bottom: 14%;
    z-index: -1;
    width: 34%;
    max-width: 190px;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(2, 6, 14, 0.45), rgba(2, 6, 14, 0));
    filter: blur(3px);
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* lowered beside "Details / Requirements": the floor shadow would sit on the text below */
.ct-robot.is-dipped .ct-robot-shadow {
    opacity: 0;
}

/* while travelling over the form: lifted look */
.ct-robot.is-travelling .ct-robot-shadow {
    transform: translateX(-50%) translateY(18px) scale(0.85);
}

html.dark-mode .ct-robot-shadow {
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

/* ---------- Robot speech bubble (positioned by contact-robot.js) ---------- */
.ct-robot-bubble {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 41;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(280px, calc(100vw - 32px));
    padding: 0.65rem 0.95rem;
    border-radius: 16px 16px 16px 6px;
    background: linear-gradient(160deg, #1B2A4A 0%, #111A2E 100%);
    border: 1px solid rgba(201, 164, 56, 0.6);
    color: #F8FAFC;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    box-shadow:
        0 14px 30px -14px rgba(2, 6, 14, 0.75),
        0 0 0 4px rgba(201, 164, 56, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

/* small gold tail pointing down at the robot */
.ct-robot-bubble::after {
    content: '';
    position: absolute;
    left: 16px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #111A2E;
    border-right: 1px solid rgba(201, 164, 56, 0.6);
    border-bottom: 1px solid rgba(201, 164, 56, 0.6);
    transform: rotate(45deg);
}

/* beside a field (robot in the lane): a single compact line above the field */
.ct-robot-bubble.is-lane {
    white-space: nowrap;
    max-width: none;
    padding: 0.32rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.3;
    border-radius: 12px 12px 4px 12px;
}

.ct-robot-bubble.is-lane::after {
    bottom: -5px;
    width: 9px;
    height: 9px;
}

.ct-robot-bubble.is-flipped {
    border-radius: 16px 16px 6px 16px;
}

.ct-robot-bubble.is-flipped::after {
    left: auto;
    right: 16px;
}

/* placed to the robot's right: the tail points left at its head */
.ct-robot-bubble.at-right {
    border-radius: 6px 16px 16px 16px;
}

.ct-robot-bubble.at-right::after {
    left: -7px;
    top: 50%;
    bottom: auto;
    margin-top: -6px;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 164, 56, 0.6);
    border-left: 1px solid rgba(201, 164, 56, 0.6);
}

/* placed to the robot's left: the tail points right */
.ct-robot-bubble.at-left {
    border-radius: 16px 6px 16px 16px;
}

.ct-robot-bubble.at-left::after {
    left: auto;
    right: -7px;
    top: 50%;
    bottom: auto;
    margin-top: -6px;
    border-bottom: 0;
    border-top: 1px solid rgba(201, 164, 56, 0.6);
    border-right: 1px solid rgba(201, 164, 56, 0.6);
}

/* placed below the robot: the tail points up */
.ct-robot-bubble.at-below {
    border-radius: 6px 16px 16px 16px;
}

.ct-robot-bubble.at-below::after {
    top: -7px;
    bottom: auto;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(201, 164, 56, 0.6);
    border-left: 1px solid rgba(201, 164, 56, 0.6);
}

/* the line types out on top of an invisible copy that holds the bubble at its final size */
.ct-robot-bubble-text {
    position: relative;
}

.ct-say-full {
    visibility: hidden;
}

.ct-say-typed {
    position: absolute;
    inset: 0;
}

/* ---------- robot voice on/off button ---------- */
.ct-intro {
    position: relative;
}

.ct-voice-btn,
.ct-enquiry .ct-intro > .ct-voice-btn {
    position: absolute;
    top: 4px;
    left: 0;
    width: auto;
    z-index: 42;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(201, 164, 56, 0.5);
    background: rgba(255, 255, 255, 0.9);
    color: #A7832A;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px -12px rgba(17, 26, 46, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ct-voice-btn:hover {
    border-color: #C9A438;
}

.ct-voice-btn:focus-visible {
    outline: 2px solid #C9A438;
    outline-offset: 3px;
}

.ct-voice-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ct-voice-btn svg * {
    stroke: currentColor !important;
}

.ct-voice-btn .ct-voice-wave { display: none; }
.ct-voice-btn.is-on .ct-voice-wave { display: inline; }
.ct-voice-btn.is-on .ct-voice-mute { display: none; }

.ct-voice-btn.is-on {
    background: linear-gradient(135deg, #E7CF86 0%, #C9A438 55%, #A7832A 100%);
    border-color: #C9A438;
    color: #111A2E;
}

html.dark-mode body.dark-mode .ct-voice-btn {
    background: rgba(17, 26, 46, 0.85);
    color: #E7CF86 !important;
}

html.dark-mode body.dark-mode .ct-voice-btn.is-on {
    background: linear-gradient(135deg, #E7CF86 0%, #C9A438 55%, #A7832A 100%);
    color: #111A2E !important;
}

.ct-robot-bubble.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0s;
}

.ct-robot-bubble-text {
    display: inline-block;
    animation: ct-bubble-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ct-bubble-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* thinking indicator: three soft gold dots */
.ct-robot-bubble-dots {
    display: none;
    gap: 3px;
    align-items: center;
}

.ct-robot-bubble.is-thinking .ct-robot-bubble-dots {
    display: inline-flex;
}

.ct-robot-bubble-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #E7CF86;
    animation: ct-dot 1.4s ease-in-out infinite;
}

.ct-robot-bubble-dots i:nth-child(2) { animation-delay: 0.18s; }
.ct-robot-bubble-dots i:nth-child(3) { animation-delay: 0.36s; }

@keyframes ct-dot {
    0%, 70%, 100% { opacity: 0.3; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-3px); }
}

/* light theme: white bubble, navy text, gold edge */
html:not(.dark-mode) .ct-robot-bubble {
    background: #FFFFFF;
    color: #111A2E;
    box-shadow:
        0 14px 30px -14px rgba(17, 26, 46, 0.45),
        0 0 0 4px rgba(201, 164, 56, 0.08);
}

html:not(.dark-mode) .ct-robot-bubble::after {
    background: #FFFFFF;
}

html:not(.dark-mode) .ct-robot-bubble-dots i {
    background: #C9A438;
}

@media (prefers-reduced-motion: reduce) {
    .ct-robot-bubble-text,
    .ct-robot-bubble-dots i {
        animation: none;
    }
}

/* ==========================================================================
   Fit the screen: shorter laptop screens (side-by-side layout)
   The enquiry card was ~715px tall, more than fits under the 105px header on a
   ~640-800px-high laptop screen, so its top or the Send button was always off-screen.
   Spacing and field heights scale with the screen height so the whole form,
   Send button included, is visible at once. Nothing is removed.
   ========================================================================== */
@media (min-width: 901px) and (max-height: 1100px) {
    .ct-enquiry .ct-form-card {
        padding-top: clamp(16px, 3vh, 40px);
        padding-bottom: clamp(16px, 3vh, 40px);
    }

    .ct-enquiry .ct-form-card > h2 {
        font-size: clamp(1.3rem, 3.4vh, 1.6rem);
    }

    .ct-enquiry .ct-form-sub {
        margin-bottom: clamp(8px, 1.6vh, 24px);
    }

    .ct-enquiry .ct-field {
        margin-bottom: clamp(8px, 1.4vh, 17px);
    }

    .ct-enquiry .ct-field label {
        margin-bottom: 4px;
        font-size: 0.82rem;
    }

    .ct-enquiry .ct-field input,
    .ct-enquiry .ct-field select {
        min-height: clamp(36px, 6.4vh, 48px);
        height: clamp(36px, 6.4vh, 48px);
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .ct-enquiry .ct-field textarea {
        min-height: 56px;
        height: clamp(56px, 10.5vh, 130px);
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .ct-enquiry .ct-submit {
        min-height: clamp(40px, 7vh, 54px);
    }

    .ct-enquiry .ct-privacy {
        margin-top: 0.4rem;
    }

    .ct-enquiry .ct-form-card .ct-field label {
        margin-bottom: 3px;
    }
}

/* ==========================================================================
   Laptop / desktop: the "Get in Touch" column and the Inquiry Form card are the
   same height. The robot floats over the top of the column (it may overlap the
   heading) instead of reserving its own 340px, and the text sits at the bottom.
   ========================================================================== */
@media (min-width: 901px) {
    .ct-enquiry .ct-enquiry-grid {
        align-items: stretch;
    }

    .ct-enquiry .ct-intro {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-top: 150px;              /* room for the robot's head above the text */
    }

    .ct-enquiry .ct-intro > .ct-robot,
    .ct-enquiry .ct-intro > .ct-robot.ct-robot-live {
        position: absolute;
        top: -24px;
        left: 0;
        width: 100%;
        height: 340px;
        margin: 0;
    }

    .ct-enquiry .ct-intro > :not(.ct-robot):not(.ct-voice-btn) {
        position: relative;
    }

    .ct-enquiry .ct-intro .ct-ticks {
        margin-bottom: 0;
    }
}

/* Short laptop screens: stretched to the "Get in Touch" column (robot space + text), the card
   was taller than the space under the header, so its Send button fell off-screen. Here it keeps
   its natural height, level with the bottom of the column (where the text sits), so the whole
   form and the text beside it are on screen together. contact-page.js scrolls it into view. */
@media (min-width: 901px) and (max-height: 820px) {
    .ct-enquiry .ct-form-card {
        align-self: end;
    }
}

/* "You're claiming …" note above the form when arriving from the FREE offer pop-up
   (assets/js/contact-page.js, ?offer=) */
.ct-offer-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 164, 56, 0.55);
    background: linear-gradient(135deg, rgba(243, 222, 156, 0.35), rgba(201, 164, 56, 0.12));
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--color-text, #1F2A44);
}

.ct-offer-gift {
    font-size: 1.05rem;
    line-height: 1;
}

.ct-offer-banner em {
    font-size: 0.78rem;
    opacity: 0.8;
}

html.dark-mode .ct-offer-banner {
    color: #E6EAF2;
    background: linear-gradient(135deg, rgba(201, 164, 56, 0.2), rgba(201, 164, 56, 0.06));
}

/* ==========================================================================
   Robot on phones and tablets (900px and below only; desktop is unchanged)
   assets/js/contact-robot-mobile.js docks it while the visitor is at the form.
   ========================================================================== */
@media (max-width: 900px) {
    /* in its place above "Get in Touch": compact (the camera is framed closer to match).
       !important and min-height: responsive.css sizes #robot-canvas-container (shared with the
       home page robot) with an !important height and a 320-400px min-height at these widths. */
    .ct-enquiry #robot-canvas-container.ct-robot {
        height: 200px !important;
        min-height: 0;
        max-width: 340px;
        margin: -0.5rem auto -0.75rem;
    }

    /* docked: a small round companion badge that glides over the form to the field being used
       (the bottom-left corner when no field is in use), above the page content but below the
       site header. It never takes taps; contact-robot-mobile.js sets its top/left. */
    .ct-enquiry #robot-canvas-container.ct-robot.ct-robot-docked {
        position: fixed;
        z-index: 990;
        width: 60px !important;
        height: 60px !important;
        min-height: 0;
        max-width: none;
        margin: 0;
        border-radius: 50%;
        overflow: hidden;
        pointer-events: none;
        background:
            radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.98) 0%, rgba(244, 238, 222, 0.96) 62%, rgba(231, 207, 134, 0.9) 100%);
        border: 2px solid #C9A438;
        box-shadow:
            0 10px 24px -10px rgba(17, 26, 46, 0.55),
            0 0 0 4px rgba(201, 164, 56, 0.14);
        transform: none !important;           /* no lean/float transforms on the badge itself */
        transition: none;                     /* contact-robot-mobile.js glides it frame by frame */
        animation: ct-robot-dock-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .ct-enquiry #robot-canvas-container.ct-robot-docked .ct-robot-shadow {
        display: none;
    }

    .ct-robot-spacer {
        display: block;
        width: 100%;
    }

    /* speech bubble: it starts at the (centred) robot's middle, so at most half the screen
       wide; it then wraps before the Share Feedback / Free tabs on the right edge, which
       would otherwise cover the end of the line */
    .ct-robot-bubble {
        max-width: min(260px, calc(50vw - 12px));
    }

    html.dark-mode .ct-enquiry #robot-canvas-container.ct-robot.ct-robot-docked {
        background:
            radial-gradient(circle at 50% 38%, rgba(36, 55, 95, 0.98) 0%, rgba(17, 26, 46, 0.97) 70%, rgba(11, 20, 36, 0.97) 100%);
        box-shadow:
            0 10px 24px -10px rgba(0, 0, 0, 0.8),
            0 0 0 4px rgba(201, 164, 56, 0.18);
    }
}

@keyframes ct-robot-dock-in {
    from { opacity: 0; scale: 0.6; }
    to { opacity: 1; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-enquiry #robot-canvas-container.ct-robot-docked {
        animation: none;
        transition: none;
    }
}

/* Phones and tablets (form below the text): tighter spacing so the whole form, Send button
   included, fits the space under the header on a typical phone. Only spacing changes: text
   sizes stay as they are, and fields stay at least 44px tall for touch. */
@media (max-width: 900px) and (max-height: 920px) {
    .ct-enquiry .ct-form-sub {
        margin-bottom: 10px;
    }

    .ct-enquiry .ct-field {
        margin-bottom: 8px;
    }

    .ct-enquiry .ct-field label {
        margin-bottom: 3px;
    }

    .ct-enquiry .ct-field input,
    .ct-enquiry .ct-field select {
        min-height: 44px;
        height: 44px;
    }

    .ct-enquiry .ct-field textarea {
        min-height: 72px;
        height: clamp(72px, 11vh, 130px);
    }
}

/* ---------- Dark mode colour restore ----------
   style.css forces every span in dark mode to grey with !important (weight 0,5,2),
   which made the contact card icons grey on their badges. ":not(#ct-x)" only adds weight. */
html.dark-mode .ct-ic:not(#ct-x) { color: #FFFFFF !important; }
