/* Lead capture: quick enquiry block, call/WhatsApp buttons, sticky mobile bar,
   thank-you page. Brand: yellow #fab758, navy #14213D, WhatsApp green #25d366. */

:root {
    --lead-yellow: #fab758;
    --lead-navy: #14213D;
    --lead-green: #25d366;
    --lead-green-dark: #1da851;
    --lead-bar-height: 64px;
}

/* ---------- Quick enquiry block ---------- */

.lead-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lead-points li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: 1.1rem;
    margin-bottom: .75rem;
}

.lead-points i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--lead-yellow);
    color: var(--lead-navy);
    font-size: 1.1rem;
    margin-top: .1rem;
}

.lead-card {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1.25rem 3rem rgba(20, 33, 61, .12);
    border-top: 6px solid var(--lead-yellow);
}

@media (min-width: 768px) {
    .lead-card { padding: 2.5rem; }
}

.lead-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--lead-navy);
    margin-bottom: .4rem;
}

.lead-input.form-control,
.lead-input.form-select {
    height: 3.25rem;
    border-radius: .9rem;
    border: 1.5px solid #e3e8f2;
    background-color: #f9fbff;
    font-size: 1.05rem;
    padding: 0 1rem;
    box-shadow: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.lead-input.form-select { padding-right: 2.5rem; }
[dir="rtl"] .lead-input.form-select {
    padding-right: 1rem;
    padding-left: 2.5rem;
    background-position: left 1rem center;
}

.lead-input.form-control:focus,
.lead-input.form-select:focus {
    border-color: var(--lead-yellow);
    background-color: #fff;
    box-shadow: 0 0 0 .25rem rgba(250, 183, 88, .25);
}

.lead-input[dir="ltr"] { text-align: left; }

.lead-submit {
    height: 3.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 .5rem 1.25rem rgba(250, 183, 88, .45);
}

.lead-privacy {
    margin-top: 1rem;
    font-size: .9rem;
    color: #6b7488;
    text-align: center;
}

.lead-privacy a {
    color: var(--lead-navy);
    text-decoration: underline;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden inputs). */
.lead-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Call / WhatsApp buttons ---------- */

.lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.lead-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.lead-btn i { font-size: 1.35rem; line-height: 1; }

.lead-btn:hover { transform: translateY(-2px); }

.lead-btn--call {
    background: var(--lead-navy);
    color: #fff;
}

.lead-btn--call:hover { color: #fff; box-shadow: 0 .5rem 1rem rgba(20, 33, 61, .25); }

.lead-btn--wa {
    background: var(--lead-green);
    color: #fff;
}

.lead-btn--wa:hover { color: #fff; background: var(--lead-green-dark); box-shadow: 0 .5rem 1rem rgba(37, 211, 102, .3); }

/* ---------- Sticky mobile bar ---------- */

.lead-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    gap: .5rem;
    padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -.25rem 1.25rem rgba(20, 33, 61, .15);
    backdrop-filter: blur(6px);
}

.lead-bar__btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 3rem;
    border-radius: 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
}

.lead-bar__btn i { font-size: 1.4rem; line-height: 1; }

.lead-bar__btn--call { background: var(--lead-navy); }
.lead-bar__btn--wa { background: var(--lead-green); }
.lead-bar__btn:hover,
.lead-bar__btn:focus { color: #fff; }

@media (max-width: 991.98px) {
    /* Keep the footer and the scroll-to-top button clear of the bar. */
    body { padding-bottom: calc(var(--lead-bar-height) + env(safe-area-inset-bottom)); }
    .progress-wrap { bottom: calc(var(--lead-bar-height) + 1rem); }
}

/* The theme colours every tel: link navy; keep button text white. */
a.lead-btn,
a.lead-btn:hover,
a.lead-btn:focus,
a.lead-btn *,
a.lead-bar__btn,
a.lead-bar__btn:hover,
a.lead-bar__btn:focus,
a.lead-bar__btn * {
    color: #fff !important;
}

/* ---------- Thank-you page ---------- */

.lead-thanks {
    background: linear-gradient(180deg, #fff8ee 0%, #ffffff 100%);
}

.lead-thanks__card {
    background: #fff;
    border-radius: 1.75rem;
    padding: 3rem 1.5rem;
    box-shadow: 0 1.25rem 3rem rgba(20, 33, 61, .1);
}

@media (min-width: 768px) {
    .lead-thanks__card { padding: 3.5rem 3rem; }
}

.lead-thanks__icon {
    display: inline-flex;
    margin-bottom: 1.25rem;
}

.lead-thanks__icon circle {
    stroke: var(--lead-yellow);
    stroke-width: 2;
    fill: #fff8ee;
}

.lead-thanks__icon path {
    stroke: var(--lead-navy);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: lead-check .6s .2s ease forwards;
}

@keyframes lead-check {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .lead-thanks__icon path { animation: none; stroke-dashoffset: 0; }
    .lead-btn { transition: none; }
}

/* ---------- Short form under the page banner (ad landing pages) ---------- */

.lead-hero {
    position: relative;
    z-index: 3;
    margin-top: -2.5rem;      /* tuck the card into the banner's cloud edge */
    padding-bottom: 1.5rem;
}

.lead-hero__card.lead-card {
    padding: 1.25rem 1.25rem 1rem;
}

.lead-hero__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--lead-navy);
    line-height: 1.25;
}

.lead-hero__text {
    font-size: 1rem;
    color: #4a5368;
}

.lead-hero__fields {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.lead-hero__submit { width: 100%; }

.lead-hero .lead-privacy { margin-top: .75rem; font-size: .85rem; }

@media (min-width: 992px) {
    .lead-hero__card.lead-card { padding: 1.75rem 2rem 1.25rem; }
    .lead-hero__fields {
        grid-template-columns: 1fr 1fr auto;
        align-items: stretch;
    }
    .lead-hero__submit { width: auto; padding-inline: 2rem; }
}

/* On phones the banner above this form is cut down so the form sits on the
   first screen. Only banners directly followed by the short form change. */
@media (max-width: 991.98px) {
    .hero-overlay:has(+ .lead-hero) {
        height: 230px !important;
    }
    .hero-overlay:has(+ .lead-hero) .fs-50,
    .hero-overlay:has(+ .lead-hero) .fs-70 {
        font-size: 1.75rem !important;
        line-height: 1.2;
        margin-top: 0 !important;
    }
    .hero-overlay:has(+ .lead-hero) .breadcrumb { display: none; }
}
