/* ============================================================
   Service CTA card — replaces the old (hidden) .banner sidebar.
   Figma 2117:1745. Per-service heading + GLOBAL form + GLOBAL
   stats bar (read from ACF options) + gold badge seal.
   Lives in the .seo-content sidebar (flex second child).
   ============================================================ */

.svc-cta {
    flex: 0 0 412px;
    max-width: 412px;
    align-self: flex-start;
    margin-top: 34px;            /* room for the badge lifted above the card */
    position: -webkit-sticky;
    position: sticky;
    top: 160px;                  /* 110px fixed header + 50px gap */
    z-index: 20;                 /* above the floating getStatus badge (z-index:11) */
}

.svc-cta__card {
    position: relative;
    background: #fff;
    border-radius: 6px 0 0 0;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    padding: 30px 32px 26px;
    overflow: visible;
}

/* Gold badge seal — floats top-right, heading wraps to its left */
.svc-cta__badge {
    float: left;
    width: 112px;
    height: 112px;
    margin: -29px 0px 0px 0px;
    shape-outside: circle(50%);
}
.svc-cta__badge img { width: 100%; height: 100%; display: block; }

.svc-cta__title {
    font-family: var(--ff-he);
    font-weight: 300;
    font-size: 36px;
    line-height: 44px;
    color: #1d1d1b;
    text-align: right;
    margin: 0 0 16px;
}
.svc-cta__title strong { font-weight: 600; }

.svc-cta__subtitle {
    font-family: var(--ff-he);
    font-weight: 400;
    font-size: 19px;
    line-height: 26px;
    color: #1d1d1b;
    text-align: right;
    margin: 0 0 20px;
    clear: both;
}

.svc-cta__form { display: flex; flex-direction: column; gap: 13px; }

.svc-cta__field,
.svc-cta__select {
    width: 100%;
    height: 52px;
    background: #e4e4e4;
    border: none;
    border-radius: 0;
    padding: 0 18px;
    font-family: var(--ff-he);
    font-weight: 300;
    font-size: 18px;
    color: #1d1d1b;
    text-align: right;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.svc-cta__field::placeholder { color: #5e6163; opacity: 1; }

.svc-cta__select {
    color: #5e6163;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%235e6163' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: left 16px center;
}
.svc-cta__select--filled { color: #1d1d1b; }

/* Privacy row: text on the right, small checkbox on its left */
.svc-cta__privacy {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin: 2px 0 4px;
    cursor: pointer;
}
.svc-cta__privacy-text {
    font-family: var(--ff-he);
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #1d1d1b;
    text-align: right;
    order: 2;
    flex: 1 1 auto;
}
.svc-cta__privacy-text a { color: inherit; text-decoration: underline; }
.svc-cta__privacy-box {
    order: 1;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    background: #e4e4e4;
    border: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
}
.svc-cta__privacy-box:checked {
    background: var(--c-gold-flat);
}
.svc-cta__privacy-box:checked::after {
    content: "";
    position: absolute;
    left: 4px; top: 1px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.svc-cta__submit-wrap { text-align: left; margin-top: 6px; }
.svc-cta__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    min-width: 163px;
    padding: 0 22px;
    background: #1d1d1b;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--ff-he);
    font-weight: 700;
    font-size: 20px;
    transition: background 0.2s var(--ease);
}
.svc-cta__submit:hover { background: #000; }
.svc-cta__submit svg { width: 20px; height: 20px; }

/* Flash notice (after redirect ?sent=) */
.svc-cta .amir-flash {
    margin: 0 0 14px;
    padding: 10px 14px;
    font-family: var(--ff-he);
    font-size: 15px;
    border-radius: 4px;
}
.svc-cta .amir-flash--ok  { background: #e8f5e9; color: #1b5e20; }
.svc-cta .amir-flash--err { background: #fdecea; color: #b71c1c; }

/* GOLD stats bar (bottom of the card) — global stats */
.svc-cta__stats {
    display: flex;
    background: linear-gradient(143deg, #8c672c 8%, #d3b077 68%, #8c672c 95%);
    border-radius: 0 0 6px 6px;
    padding: 14px 8px;
    justify-content: space-around;
    align-items: center;
}
.svc-cta__stat {
    flex: 0 1 auto;
    text-align: center;
    color: #fff;
    padding: 4px 6px;
}
.svc-cta__stat:not(:last-child) {
    border-inline-end: 1px solid rgba(255, 255, 255, 0.35);
}
.svc-cta__statnum {
    display: block;
    font-family: var(--ff-he);
    font-weight: 700;
    font-size: 35.327px;
    line-height: 35.327px;
}
.svc-cta__statlabel {
    display: block;
    font-family: var(--ff-he);
    font-weight: 400;
    font-size: 13px;
    line-height: 13px;
    margin-top: 7px;
    white-space: nowrap;
}


/* ===== Field validation (Hebrew, modern) ===== */
.svc-cta__fw { position: relative; }
.svc-cta__field--error { outline: 2px solid #d32f2f; outline-offset: -2px; background: #fbe9e7; }
.svc-cta__err {
    position: absolute;
    top: 5px;
    left: 12px;
    font-family: var(--ff-he);
    font-weight: 500;
    font-size: 11px;
    line-height: 1;
    color: #d32f2f;
    pointer-events: none;
}
.svc-cta__privacy--error .svc-cta__privacy-box { outline: 2px solid #d32f2f; outline-offset: 1px; }
.svc-cta__privacy--error .svc-cta__privacy-text { color: #d32f2f; }

/* ===== MOBILE (card stacks below the SEO text) ===== */
@media (max-width: 1024px) {
    /* the taxonomy page's .seo-content stays flex-row by default (the theme's
       column rule is scoped to page-templates only) — force column here so the
       card drops BELOW the text instead of squeezing beside it. */
    .seo-content .content { -ms-flex-direction: column; flex-direction: column; }
    .svc-cta {
        flex: 0 0 auto;
        max-width: 520px;
        width: 100%;
        margin: 40px auto 0;
        position: static;
        top: auto;
    }
    .svc-cta__title { font-size: 30px; line-height: 38px; }
    .svc-cta__subtitle { font-size: 17px; line-height: 24px; }
}
