/* ==========================================================================
   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);
}

/* favicon spinner badge inside the card (sized by .carl-loader-badge--sm) */
.carl-submit-card .carl-submit-ring {
    margin: 0 0 16px;
}

/* 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 — Hostinger style
   Solid white full veil (covers sticky header + everything), favicon dead
   center with ONE sleek revolving line around it. No bar, no text.
   -------------------------------------------------------------------------- */
.carl-page-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    opacity: 1;
    visibility: visible;
    /* visible state blocks clicks; the hidden state below re-enables them */
    pointer-events: auto;
    transition: opacity .45s ease, visibility .45s 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 24px;
}

/* Favicon + single revolving line */
.hosti-ring-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
}

.hosti-fav {
    width: 64px;
    height: 64px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    animation: hostiFavPulse 1.8s ease-in-out infinite;
}

@keyframes hostiFavPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(.93); }
}

/* THE single sleek revolving line — 75% red fill, slow calm orbit, 2px thin */
.hosti-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0turn,
        var(--red) 0deg,
        var(--red) 270deg,
        rgba(214, 31, 38, 0) 270deg,
        rgba(214, 31, 38, 0) 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: hostiSpin 2.2s linear infinite;
}

/* faint full-circle track so the single line reads as orbiting */
.hosti-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(214, 31, 38, .12);
}

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

@media (max-width: 576px) {
    .hosti-ring-wrap { width: 92px; height: 92px; }
    .hosti-fav { width: 52px; height: 52px; }
}

/* Respect visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    .hosti-fav, .hosti-ring { animation-duration: 4s; }
}
/* Branded loader badge - favicon inside a spinning ring. Echoes the CRM
   loader spinner but puts the site logo at the centre. */
.carl-loader-badge {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 0 18px;
    display: grid;
    place-items: center;
}

.carl-loader-badge--sm {
    width: 52px;
    height: 52px;
    margin: 0 0 16px;
}

.carl-loader-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    animation: carlLogoPulse 1.6s ease-in-out infinite;
}

.carl-loader-badge--sm .carl-loader-logo {
    width: 34px;
    height: 34px;
}

/* Spinning ring: a conic gradient masked into a thin circle around the logo. */
.carl-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0turn, rgba(214, 31, 38, 0) 0deg, var(--red) 300deg, var(--red) 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    animation: carlSpin .9s linear infinite;
}

@keyframes carlLogoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(.9); }
}

/* --------------------------------------------------------------------------
   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;
    }
}
/* --------------------------------------------------------------------------
   1b. CRM SUCCESS TICK - the draw-on animation
   --------------------------------------------------------------------------
   Ported from the CRM's crm/loader/assets/style.css so the public website is
   fully self-contained. That CRM sheet used to be <link>-ed directly from the
   header, but the path never resolved (the CRM is a sibling app, not a
   sub-folder of the site), so the tick showed as a static shape with no
   draw-on animation. Bundling the rules here (loaded after everything) makes
   the enquiry success tick animate on the website without depending on the
   CRM being reachable.

   The base .success-animation box is scoped to the submit card above via
   .carl-submit-card .carl-submit-tick, so only the path animation + keyframes
   are needed here. Names are global, so the thank-you page badge reuses them.
   -------------------------------------------------------------------------- */
.success-animation .path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
}

.success-animation .path.circle {
    -webkit-animation: dash 0.9s ease-in-out;
    animation: dash 0.9s ease-in-out;
}

.success-animation .path.line {
    stroke-dashoffset: 1000;
    -webkit-animation: dash 0.9s 0.35s ease-in-out forwards;
    animation: dash 0.9s 0.35s ease-in-out forwards;
}

.success-animation .path.check {
    stroke-dashoffset: -100;
    -webkit-animation: dash-check 0.9s 0.35s ease-in-out forwards;
    animation: dash-check 0.9s 0.35s ease-in-out forwards;
}

@-webkit-keyframes dash {
    0%   { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes dash {
    0%   { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@-webkit-keyframes dash-check {
    0%   { stroke-dashoffset: -100; }
    100% { stroke-dashoffset: 900; }
}

@keyframes dash-check {
    0%   { stroke-dashoffset: -100; }
    100% { stroke-dashoffset: 900; }
}