/* ==========================================================================
   CARL INTERNATIONAL
   1. Completes the CRM loader component  (crm/loader/assets/style.css)
   2. Enquiry submit overlay that wraps it
   3. Thank-you page blocks
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CRM LOADER - missing keyframe
   --------------------------------------------------------------------------
   crm/loader/assets/style.css applies `animation: spinner 1.2s infinite linear`
   to the .spinner blocks but never declares @keyframes spinner, so the CRM
   loader does not animate. Keyframe names are global, so defining it here
   (loaded after the CRM sheet) makes the CRM loader work everywhere.
   -------------------------------------------------------------------------- */
@keyframes spinner {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(.3);
        opacity: .2;
    }
    100% {
        transform: scale(1);
    }
}

/* --------------------------------------------------------------------------
   2. ENQUIRY SUBMIT OVERLAY
   Shown only while a form is being submitted / the response is arriving.
   -------------------------------------------------------------------------- */
.carl-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 47, 94, .3);
    backdrop-filter: blur(4px) saturate(1.04);
    -webkit-backdrop-filter: blur(4px) saturate(1.04);
    opacity: 0;
    transition: opacity .28s ease;
}

.carl-submit-overlay.carl-submit-show {
    display: flex;
    opacity: 1;
}

.carl-submit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 36px 46px 30px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 26px 70px rgba(10, 47, 94, .28);
    text-align: center;
    min-width: 290px;
    transform: translateY(12px) scale(.97);
    transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}

.carl-submit-overlay.carl-submit-show .carl-submit-card {
    transform: translateY(0) scale(1);
}

/* ring inside the card */
.carl-submit-card .carl-submit-ring {
    width: 46px;
    height: 46px;
    margin: 0 0 18px;
}

/* CRM .success-animation is a full-page absolute layer - scope it to the card */
.carl-submit-card .carl-submit-tick {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 14px;
    z-index: auto;
    display: none;
}

.carl-submit-card .carl-submit-tick svg {
    width: 88px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
}

.carl-submit-overlay.carl-submit-done .carl-submit-ring {
    display: none;
}

.carl-submit-overlay.carl-submit-done .carl-submit-tick {
    display: block;
}

.carl-submit-text {
    font-size: 16px;
    font-weight: 700;
    color: #0a2540;
    margin: 0;
}

.carl-submit-hint {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0;
}
/* --------------------------------------------------------------------------
   3. THANK-YOU PAGE
   Built from the site's own components: page-hero, page-form, page-card,
   page-icon, page-list, cta-band, btn-red / btn-line.
   -------------------------------------------------------------------------- */

/* green success roundel inside the card */
.thanks-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(140deg, #8ac96a 0%, #73af55 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 12px 28px rgba(115, 175, 85, .34);
    animation: thanksPop .45s cubic-bezier(.2, 1.5, .4, 1) both;
}

.thanks-badge svg {
    width: 40px;
    height: 40px;
}

.thanks-badge .path {
    stroke-dasharray: 44;
    stroke-dashoffset: 44;
    animation: thanksDraw .5s .18s ease forwards;
}

@keyframes thanksPop {
    from {
        transform: scale(.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes thanksDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.thanks-card {
    padding: 40px 34px 34px;
}

.thanks-card .section-title {
    font-size: 28px;
    margin: 0 0 8px;
}

.thanks-card .section-sub {
    margin: 0 auto 22px;
    max-width: 560px;
    line-height: 1.7;
}

/* reference strip */
.thanks-ref {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 13px 30px;
    margin: 0 auto 24px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px dashed rgb(18 60 124 / .25);
}

.thanks-ref .mini {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.thanks-ref strong {
    font-size: 19px;
    font-weight: 800;
    color: #0a2540;
    letter-spacing: .04em;
}

/* request summary rows */
.thanks-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.thanks-meta li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-size: 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.thanks-meta li:last-child {
    border-bottom: 0;
}

.thanks-meta li:nth-child(odd) {
    background: var(--bg);
}

.thanks-meta i {
    color: var(--red);
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.thanks-meta b {
    color: #0a2540;
    font-weight: 700;
    white-space: nowrap;
}

.thanks-meta span {
    color: #46586f;
    overflow-wrap: anywhere;
}

/* section wrapper helper so the next-steps block reads like the rest of the site */
.thanks-next {
    background: #fff;
    border-top: 1px solid var(--line);
}

@media (max-width: 576px) {
    .carl-submit-card {
        padding: 30px 26px 24px;
        min-width: 0;
        width: 100%;
    }
    .carl-submit-card .carl-submit-tick svg {
        width: 72px;
    }
    .thanks-badge {
        width: 64px;
        height: 64px;
    }
    .thanks-badge svg {
        width: 34px;
        height: 34px;
    }
    .thanks-card {
        padding: 30px 20px 26px;
    }
    .thanks-card .section-title {
        font-size: 22px;
    }
    .thanks-ref {
        padding: 11px 20px;
    }
    .thanks-ref strong {
        font-size: 16px;
    }
    .thanks-meta li {
        padding: 11px 14px;
        font-size: 13px;
    }
}
/* --------------------------------------------------------------------------
   4. PAGE LOADER (every page opening)
   Minimal circling line on a light haze. Only renders when JS is available
   (html.js), so a visitor with scripting turned off is never trapped.
   -------------------------------------------------------------------------- */
.carl-page-loader {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(4px) saturate(1.04);
    -webkit-backdrop-filter: blur(4px) saturate(1.04);
    opacity: 1;
    visibility: visible;
    /* visible state blocks clicks; the hidden state below re-enables them */
    pointer-events: auto;
    transition: opacity .32s ease, visibility .32s ease;
}

.js .carl-page-loader {
    display: flex;
}

.carl-page-loader.carl-page-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* stop the page scrolling behind the loader */
body.carl-page-locked {
    overflow: hidden;
}

.carl-page-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.carl-page-card .carl-ring {
    margin: 0 0 18px;
}

.carl-page-text {
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 576px) {

    .carl-page-card .carl-ring {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }
    .carl-page-text {
        font-size: 11.5px;
    }
}
/* --------------------------------------------------------------------------
   5. MINIMAL CIRCLING LINE
   -------------------------------------------------------------------------- */
.carl-ring {
    width: 52px;
    height: 52px;
    display: block;
    transform-origin: 50% 50%;
    animation: carlSpin .9s linear infinite;
}

.carl-ring circle {
    fill: none;
    stroke-linecap: round;
    stroke-width: 2.5;
}

/* faint full circle so the arc reads as part of a ring */
.carl-ring-track {
    stroke: var(--red);
    stroke-opacity: .16;
}

/* the circling line itself */
.carl-ring-arc {
    stroke: var(--red);
    stroke-dasharray: 32 94;
    animation: carlArc 1.5s ease-in-out infinite;
}

@keyframes carlSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes carlArc {

    0%,
    100% {
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dashoffset: 30;
    }
}

/* Respect visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {

    .carl-ring,
    .carl-ring-arc {
        animation-duration: 2.4s;
    }
}