/* ============================================================
   CloudTart — "Make It Happen" campaign section  (#get-callback)
   Redesigned CTA + callback wizard (Gravity Forms #2) + the
   AJAX success/status styling shared with the contact form.
   LTR baseline. RTL adjustments live in cloudtart-rtl.css.
   ============================================================ */

@property --ct-cta-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ct-cta-spin { to { --ct-cta-angle: 360deg; } }
@keyframes ct-cta-drift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(4%, -6%, 0) scale(1.15); }
    100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes ct-cta-stepin {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ct-cta-shake {
    10%,90% { transform: translateX(-2px); }
    20%,80% { transform: translateX(4px); }
    30%,50%,70% { transform: translateX(-8px); }
    40%,60% { transform: translateX(8px); }
}

/* ---------------------------------------------------------------
   Section shell + animated gold aurora background
   --------------------------------------------------------------- */
.ct-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 130px 0;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(214,185,168,0.10), transparent 60%),
        linear-gradient(160deg, #0a1524 0%, #0d1b2e 45%, #0b1626 100%);
}
.ct-cta__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ct-cta__aurora {
    position: absolute;
    width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    will-change: transform;
}
.ct-cta__aurora--1 { top: -12%; left: -6%;  background: radial-gradient(circle, rgba(214,185,168,0.42), transparent 65%); animation: ct-cta-drift 16s ease-in-out infinite; }
.ct-cta__aurora--2 { bottom: -18%; right: -8%; background: radial-gradient(circle, rgba(154,125,98,0.40), transparent 65%);  animation: ct-cta-drift 21s ease-in-out infinite reverse; }
.ct-cta__aurora--3 { top: 30%; right: 26%; width: 30vw; height: 30vw; background: radial-gradient(circle, rgba(234,215,199,0.22), transparent 60%); animation: ct-cta-drift 26s ease-in-out infinite; }
.ct-cta__grain {
    position: absolute; inset: 0; opacity: 0.35;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="15" cy="20" r="0.8" fill="%23d6b9a8" opacity="0.12"/><circle cx="60" cy="45" r="0.8" fill="%23d6b9a8" opacity="0.1"/><circle cx="35" cy="70" r="0.8" fill="%23d6b9a8" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>') repeat;
}

/* focus-mode dim/blur veil (click to exit) */
.ct-cta__backdrop {
    position: absolute; inset: 0; z-index: 20;
    background: rgba(6,12,22,0.55);
    -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.ct-cta.is-focus .ct-cta__backdrop { opacity: 1; pointer-events: auto; cursor: pointer; }

.ct-cta .container { position: static; }  /* keep form-col free to rise above the veil */

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.ct-cta__head { text-align: center; max-width: 720px; margin: 0 auto 58px; transition: filter .4s ease, opacity .4s ease; }
.ct-cta__eyebrow {
    display: inline-block; margin-bottom: 16px;
    font-size: 13px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
    color: #d6b9a8;
    padding: 7px 18px; border: 1px solid rgba(214,185,168,0.35); border-radius: 999px;
    background: rgba(214,185,168,0.06);
}
.ct-cta__title {
    font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.04; color: #fff; margin: 0 0 18px;
}
.ct-cta__title::after {
    content: ''; display: block; width: 84px; height: 3px; margin: 20px auto 0;
    background: linear-gradient(90deg, transparent, #d6b9a8, #ead7c7, #d6b9a8, transparent); border-radius: 2px;
}
.ct-cta__subtitle { font-size: clamp(16px, 2vw, 20px); color: #c7cdd6; margin: 0; line-height: 1.6; }

/* ---------------------------------------------------------------
   Grid: form card + direct-contact rail
   --------------------------------------------------------------- */
.ct-cta__grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: stretch;
    max-width: 1100px; margin: 0 auto;
}
.ct-cta__form-col { position: relative; z-index: 5; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.ct-cta.is-focus .ct-cta__form-col { z-index: 30; }

/* Glass form card */
.ct-cta__card {
    position: relative; height: 100%;
    background: linear-gradient(180deg, rgba(19,32,52,0.72), rgba(11,21,36,0.82));
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(214,185,168,0.22);
    border-radius: 24px;
    padding: 40px 38px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease;
}
.ct-cta.is-focus .ct-cta__card {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(214,185,168,0.45);
    box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(214,185,168,0.15), 0 0 60px rgba(214,185,168,0.12);
}
.ct-cta__card-head { margin-bottom: 26px; }
.ct-cta__card-title { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.ct-cta__card-sub { font-size: 15px; color: #aeb6c2; margin: 0; line-height: 1.55; }

/* ---------------------------------------------------------------
   Wizard: progress
   --------------------------------------------------------------- */
.ct-cta__progress { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.ct-cta__dot { width: 26px; height: 4px; border-radius: 3px; background: rgba(214,185,168,0.18); transition: background .35s ease, transform .35s ease; }
.ct-cta__dot.is-active { background: linear-gradient(90deg, #d6b9a8, #ead7c7); transform: scaleY(1.5); }
.ct-cta__dot.is-done   { background: rgba(214,185,168,0.6); }
.ct-cta__counter { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: rgba(214,185,168,0.75); text-transform: uppercase; }

/* ---------------------------------------------------------------
   Wizard: fields (one-at-a-time)
   --------------------------------------------------------------- */
.ct-cta__field { display: none; }
.ct-cta__field.is-current { display: block; animation: ct-cta-stepin .42s cubic-bezier(.2,.7,.2,1) both; }
.ct-cta__field.shake .ct-cta__control { animation: ct-cta-shake .5s ease; }
.ct-cta__field > label {
    display: block; margin-bottom: 12px;
    font-size: 15px; font-weight: 600; color: #e9edf2; letter-spacing: .2px;
}

/* Field control + rotating gold glow (reuses the search-bar technique) */
.ct-cta__control { position: relative; display: block; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.ct-cta.is-focus .ct-cta__field.is-current .ct-cta__control { transform: scale(1.015); }
.ct-cta__glow {
    position: absolute; inset: -1.5px; border-radius: 16px; z-index: 0; pointer-events: none; opacity: 0;
    background: conic-gradient(from var(--ct-cta-angle),
        transparent 0%, transparent 28%, #9a7d62 46%, #d6b9a8 58%, #ead7c7 68%, #d6b9a8 76%, transparent 100%);
    transition: opacity .4s ease;
}
.ct-cta__glow--blur { inset: -9px; filter: blur(15px); }
.ct-cta__control:focus-within .ct-cta__glow      { opacity: 1;   animation: ct-cta-spin 3s linear infinite; }
.ct-cta__control:focus-within .ct-cta__glow--blur { opacity: .5; animation: ct-cta-spin 3s linear infinite; }

.ct-cta__control input,
.ct-cta__control textarea {
    position: relative; z-index: 1; display: block; width: 100%;
    background: #0c1828; color: #fff;
    border: 1px solid rgba(214,185,168,0.22); border-radius: 15px;
    padding: 17px 20px; font-size: 16px; font-family: inherit; line-height: 1.5;
    outline: none; transition: border-color .3s ease;
    -webkit-appearance: none; appearance: none;
}
.ct-cta__control textarea { min-height: 110px; resize: vertical; }
.ct-cta__control input::placeholder,
.ct-cta__control textarea::placeholder { color: rgba(214,185,168,0.4); }
.ct-cta__control:focus-within input,
.ct-cta__control:focus-within textarea { border-color: transparent; }
.ct-cta__field.is-invalid .ct-cta__control input,
.ct-cta__field.is-invalid .ct-cta__control textarea { border-color: #e2645f; }

/* ---------------------------------------------------------------
   Wizard: navigation
   --------------------------------------------------------------- */
.ct-cta__nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.ct-cta__back {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
    background: transparent; border: 1px solid rgba(214,185,168,0.35); color: #d6b9a8;
    cursor: pointer; font-size: 15px; transition: all .3s ease;
}
.ct-cta__back:hover { background: rgba(214,185,168,0.12); border-color: #d6b9a8; }
.ct-cta__next,
.ct-cta__submit {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 30px; border: none; cursor: pointer;
    font-size: 16px; font-weight: 700; letter-spacing: .3px;
    color: #0d1b2e; border-radius: 15px;
    background: linear-gradient(135deg, #e7d3c5 0%, #d6b9a8 55%, #c9a98f 100%);
    background-size: 200% 100%; background-position: 0% 0;
    box-shadow: 0 14px 34px rgba(214,185,168,0.28);
    transition: background-position .5s ease, transform .25s ease, box-shadow .3s ease;
}
.ct-cta__next:hover,
.ct-cta__submit:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 20px 46px rgba(214,185,168,0.42); }
.ct-cta__next:active,
.ct-cta__submit:active { transform: translateY(0); }
.ct-cta__submit i { font-size: 15px; }

/* loading state (Next/Submit + contact button) */
.ct-cta__next.is-loading,
.ct-cta__submit.is-loading,
.contact__form-inner .gform_button.is-loading,
#contactForm button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.ct-cta__next.is-loading::after,
.ct-cta__submit.is-loading::after,
#contactForm button.is-loading::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
    border: 2px solid rgba(13,27,46,0.4); border-top-color: #0d1b2e; border-radius: 50%;
    animation: ct-cta-spin-el .7s linear infinite;
}
@keyframes ct-cta-spin-el { to { transform: rotate(360deg); } }

.ct-cta__status { margin: 16px 0 0; min-height: 20px; font-size: 14px; text-align: center; color: #aeb6c2; }
.ct-cta__status.is-error { color: #f0a09b; }

/* success state */
.ct-cta__done { text-align: center; padding: 24px 8px; animation: ct-cta-stepin .5s both; }
.ct-cta__done-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 20px;
    border-radius: 50%; font-size: 30px; color: #0d1b2e;
    background: linear-gradient(135deg, #e7d3c5, #d6b9a8); box-shadow: 0 12px 30px rgba(214,185,168,0.4);
}
.ct-cta__done-msg { font-size: 18px; color: #fff; line-height: 1.6; }

/* ---------------------------------------------------------------
   Direct-contact rail (redesigned circle buttons)
   --------------------------------------------------------------- */
.ct-cta__direct-col { position: relative; display: flex; flex-direction: column; justify-content: center; transition: filter .4s ease, opacity .4s ease; }
.ct-cta__direct-label { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(214,185,168,0.75); text-align: center; margin: 0 0 22px; }
.ct-cta__circles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-circle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 24px 14px; text-decoration: none; text-align: center;
    background: linear-gradient(180deg, rgba(214,185,168,0.08), rgba(214,185,168,0.03));
    border: 1px solid rgba(214,185,168,0.22); border-radius: 18px;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.ct-circle__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
    border: 1px solid rgba(214,185,168,0.35); color: #d6b9a8; font-size: 22px;
    transition: transform .35s ease, background .35s ease, color .35s ease;
}
.ct-circle__text { font-size: 14px; font-weight: 600; color: #e9edf2; }
.ct-circle:hover {
    transform: translateY(-6px); border-color: rgba(214,185,168,0.5);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 30px rgba(214,185,168,0.12);
    background: linear-gradient(180deg, rgba(214,185,168,0.14), rgba(214,185,168,0.05));
}
.ct-circle:hover .ct-circle__icon { background: linear-gradient(135deg, #e7d3c5, #d6b9a8); color: #0d1b2e; transform: scale(1.08); }

/* ---------------------------------------------------------------
   AJAX status for the DESIGNED CONTACT FORM (form #1)
   NOTE: unlike the campaign card, .contact__form's section background is
   LIGHT (#f8f8f8 — see cloudtart-theme.css .contact__form), so this status/
   success block needs dark, high-contrast text — not the light gold/white
   used on the dark campaign card.
   --------------------------------------------------------------- */
.ct-form-status { margin: 18px 0 0; text-align: center; font-size: 15px; color: #9a7d62; }
.ct-form-status.is-error { color: #c0392b; }
.ct-form-status.is-ok { color: #1e7e4f; }
.ct-form-done { text-align: center; padding: 50px 20px; }
.ct-form-done__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin-bottom: 24px;
    border-radius: 50%; font-size: 34px; color: #0d1b2e;
    background: linear-gradient(135deg, #e7d3c5, #d6b9a8); box-shadow: 0 14px 34px rgba(214,185,168,0.4);
}
.ct-form-done__msg { font-size: 20px; color: #0d1b2e; line-height: 1.6; max-width: 520px; margin: 0 auto; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    .ct-cta { padding: 90px 0; }
    .ct-cta__grid { grid-template-columns: 1fr; gap: 30px; max-width: 620px; }
    .ct-cta__head { margin-bottom: 42px; }
    .ct-cta__card { padding: 32px 24px; }
    .ct-cta__direct-col { order: 2; }
    .ct-cta__form-col { order: 1; }
    .ct-cta__circles { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .ct-circle { padding: 18px 8px; }
    .ct-circle__icon { width: 48px; height: 48px; font-size: 18px; }
}
@media (max-width: 575px) {
    .ct-cta { padding: 70px 0; }
    .ct-cta__card { padding: 26px 18px; border-radius: 20px; }
    .ct-cta__card-title { font-size: 22px; }
    .ct-cta__circles { grid-template-columns: 1fr 1fr; }
    .ct-cta__control input, .ct-cta__control textarea { font-size: 16px; padding: 15px 16px; } /* 16px avoids iOS zoom */
    .ct-cta__next, .ct-cta__submit { min-height: 52px; font-size: 15px; }
    .ct-cta.is-focus .ct-cta__card { transform: none; }  /* avoid overflow on small screens */
}

/* Motion-reduction */
@media (prefers-reduced-motion: reduce) {
    .ct-cta__aurora, .ct-cta__glow, .ct-cta__field.is-current { animation: none !important; }
}
