/* ================================================================
   contact.css — Contact Page
   ================================================================ */

.contact-page { background: #f1f5fb; }

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 1; }
  60%       { transform: translateY(10px) scaleY(1.2); opacity: .4; }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-12deg); }
  100% { transform: translateX(200%) skewX(-12deg); }
}
@keyframes checkPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes successSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(2); opacity: 0; }
}

/* ================================================================
   HERO
   ================================================================ */
.ct-hero {
  position: relative;
  margin-top: 85px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #050d1e;
}

.ct-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ct-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

.ct-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(108deg, rgba(1,94,160,.88) 0%, rgba(5,13,30,.05) 50%),
    linear-gradient(to right, rgba(5,13,30,.9) 0%, rgba(5,13,30,.5) 55%, rgba(5,13,30,.7) 100%),
    linear-gradient(to top, rgba(5,13,30,.7) 0%, transparent 55%);
}
.ct-hero__overlay::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ct-hero__overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 0% 60%, rgba(57,173,255,.18) 0%, transparent 65%);
}

.ct-hero__inner {
  position: relative; z-index: 2;
  padding-bottom: 3rem;
}

.ct-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #39adff;
  background: rgba(57,173,255,.1);
  border: 1px solid rgba(57,173,255,.25);
  padding: .32rem .85rem .32rem .65rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  animation: fadeRight .7s ease both;
}
.ct-hero__eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }

.ct-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 1.0;
  color: #fff;
  margin: 0 0 .9rem;
  letter-spacing: .02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
  animation: fadeUp .75s .1s ease both;
}
.ct-hero__accent { color: #39adff; }

.ct-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.76);
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  animation: fadeUp .75s .2s ease both;
}

/* Scroll indicator */
.ct-hero__scroll-hint {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: fadeIn 1s .8s ease both;
}
.ct-hero__scroll-hint span {
  display: block;
  width: 2px; height: 36px;
  background: linear-gradient(to bottom, rgba(57,173,255,.8), transparent);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ================================================================
   24-HOUR RESPONSE BANNER
   ================================================================ */
.ct-response-banner {
  background: var(--blue);
  padding: 2.25rem 1.5rem;
}
.ct-response-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.ct-response-banner__icon {
  width: 64px; height: 64px;
  min-width: 64px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ct-response-banner__icon svg { width: 32px; height: 32px; }
.ct-response-banner__text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.ct-response-banner__number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: #fff;
  letter-spacing: .03em;
}
.ct-response-banner__label {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: rgba(255,255,255,.88);
  letter-spacing: .01em;
}

@media (max-width: 480px) {
  .ct-response-banner__inner { flex-direction: column; text-align: center; gap: 1rem; }
}

/* ================================================================
   STATS BAR
   ================================================================ */
.ct-stats {
  background: #fff;
  border-bottom: 1px solid #e1eaf4;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.ct-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.ct-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.8rem;
  border-right: 1px solid #f1f5f9;
  transition: background .2s;
}
.ct-stat:last-child { border-right: none; }
.ct-stat:hover { background: var(--blue-l); }

.ct-stat__icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--blue-l);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: background .2s, color .2s;
}
.ct-stat:hover .ct-stat__icon {
  background: var(--blue);
  color: #fff;
}
.ct-stat__icon svg { width: 20px; height: 20px; }
.ct-stat strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .1rem;
}
.ct-stat span {
  font-size: .78rem;
  color: #64748b;
}

/* Reveal animation for stat items */
.ct-stat.reveal { opacity: 0; transform: translateY(20px); }
.ct-stat.revealed {
  animation: fadeUp .55s ease both;
  animation-delay: var(--reveal-delay, 0s);
}

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
.ct-main { padding: 3.5rem 0 5rem; }

.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ================================================================
   LOCATION CARDS
   ================================================================ */
.ct-info {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.ct-location-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1px solid #e8f0f8;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.ct-location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(1,94,160,.13);
}

/* Top colour bar */
.ct-location-card__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, #39adff 100%);
}
.ct-location-card__accent--gold {
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
}

.ct-location-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem 0;
}
.ct-location-card__pin {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--blue-l);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.ct-location-card__pin--gold {
  background: #fef3c7;
  color: #b45309;
}
.ct-location-card__pin svg { width: 22px; height: 22px; }
.ct-location-card__head h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .15rem;
}
.ct-location-card__label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ct-location-card__body {
  padding: 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.ct-info-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .88rem;
  color: #475569;
  line-height: 1.55;
}
.ct-info-row > svg {
  width: 17px; height: 17px;
  min-width: 17px;
  color: var(--blue);
  margin-top: .15rem;
  flex-shrink: 0;
}
.ct-info-row p { margin: 0; }
.ct-info-row strong {
  display: block;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .15rem;
  font-size: .85rem;
}

.ct-info-row--highlight {
  background: var(--blue-l);
  border-radius: 10px;
  padding: .75rem 1rem;
  margin: 0 -.1rem;
}
.ct-info-row--gold {
  background: #fffbeb;
}
.ct-info-row--gold > svg { color: #b45309; }

.ct-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: opacity .2s;
}
.ct-link:hover { opacity: .75; }

.ct-directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 0 1.6rem 1.6rem;
  padding: .8rem;
  border-radius: 12px;
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .22s, color .22s;
}
.ct-directions-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.ct-directions-btn:hover { background: var(--blue); color: #fff; }

.ct-directions-btn--gold {
  border-color: #b45309;
  color: #b45309;
}
.ct-directions-btn--gold:hover { background: #b45309; color: #fff; }

/* Reveal */
.ct-location-card.reveal { opacity: 0; transform: translateY(28px); }
.ct-location-card.revealed {
  animation: fadeUp .6s ease both;
  animation-delay: var(--reveal-delay, 0s);
}

/* ================================================================
   CONTACT FORM CARD
   ================================================================ */
.ct-form-wrap.reveal { opacity: 0; transform: translateY(28px); }
.ct-form-wrap.revealed {
  animation: fadeUp .65s ease both;
  animation-delay: var(--reveal-delay, 0s);
}

.ct-form-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(1,94,160,.10);
  border: 1px solid #e8f0f8;
  position: sticky;
  top: calc(85px + 1.5rem);
}

.ct-form-header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 2px solid #f1f5f9;
}
.ct-form-header__icon {
  width: 52px; height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--blue) 0%, #39adff 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(1,94,160,.3);
  position: relative;
}
.ct-form-header__icon svg { width: 22px; height: 22px; }
/* Pulse ring */
.ct-form-header__icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 2px solid rgba(1,94,160,.25);
  animation: pulseRing 2.4s ease-out infinite;
}
.ct-form-header h2 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .25rem;
}
.ct-form-header p {
  font-size: 0.90rem;
  color: #64748b;
  margin: 0;
}
.ct-form-response-time {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--blue) !important;
  margin: 0;
}

/* ── Form fields with floating labels ── */
.ct-form { display: flex; flex-direction: column; gap: 1.2rem; }

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.ct-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.ct-field input,
.ct-field textarea {
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--dark);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.35rem 1rem .5rem;
  outline: none;
  transition: border-color .22s, background .22s, box-shadow .22s;
  resize: none;
}
.ct-field textarea { min-height: 110px; padding-top: 1.5rem; }

.ct-field input:focus,
.ct-field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(1,94,160,.08);
}

/* Floating label */
.ct-field label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: .92rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  transform-origin: left top;
}
.ct-field label span { color: var(--blue); font-weight: 600; }

/* When focused OR not empty (placeholder not shown = value exists) */
.ct-field input:focus + label,
.ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label,
.ct-field textarea:not(:placeholder-shown) + label {
  top: .45rem;
  font-size: .72rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .04em;
}

/* Animated underline bar */
.ct-field__bar {
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.ct-field input:focus ~ .ct-field__bar,
.ct-field textarea:focus ~ .ct-field__bar { transform: scaleX(1); }

/* ── Checkbox ── */
.ct-checkbox {
  display: flex;
  align-items: center;
  gap: .8rem;
  cursor: pointer;
  user-select: none;
  margin-top: .2rem;
}
.ct-checkbox input[type="checkbox"] { display: none; }

.ct-checkbox__box {
  width: 20px; height: 20px;
  min-width: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.ct-checkbox__box svg {
  width: 12px; height: 10px;
  opacity: 0;
  transform: scale(0);
  transition: opacity .18s, transform .18s;
}
.ct-checkbox input:checked + .ct-checkbox__box {
  background: var(--blue);
  border-color: var(--blue);
  animation: checkPop .28s ease;
}
.ct-checkbox input:checked + .ct-checkbox__box svg {
  opacity: 1;
  transform: scale(1);
}
.ct-checkbox__label {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.45;
}

/* ── Submit button ── */
.ct-submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(108deg, var(--blue) 0%, #1a7fc9 60%, var(--blue) 120%);
  background-size: 200% 100%;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(1,94,160,.35);
  transition: transform .2s, box-shadow .2s, background-position .4s;
  margin-top: .4rem;
}
.ct-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(1,94,160,.45);
  background-position: right center;
}
.ct-submit-btn:active { transform: translateY(0); }

.ct-submit-btn__arrow svg {
  width: 18px; height: 18px;
  transition: transform .25s;
}
.ct-submit-btn:hover .ct-submit-btn__arrow svg { transform: translateX(4px); }

/* Shimmer sweep on hover */
.ct-submit-btn__shimmer {
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-100%) skewX(-12deg);
  pointer-events: none;
}
.ct-submit-btn:hover .ct-submit-btn__shimmer {
  animation: shimmer .65s ease forwards;
}

/* Loading state */
.ct-submit-btn.loading { opacity: .75; pointer-events: none; }
.ct-submit-btn.loading .ct-submit-btn__text::after {
  content: '…';
  animation: fadeIn .3s ease;
}

/* ── Success message ── */
.ct-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 2rem;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 16px;
  margin-top: 1rem;
  animation: successSlide .5s ease;
}
.ct-success.visible { display: flex; }
.ct-success__icon {
  width: 52px; height: 52px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: checkPop .4s ease;
}
.ct-success__icon svg { width: 22px; height: 22px; }
.ct-success strong {
  font-size: 1.05rem;
  color: #166534;
}
.ct-success p {
  font-size: .88rem;
  color: #4ade80;
  margin: 0;
  color: #166534;
}

/* ── Field error state ── */
.ct-field.has-error input,
.ct-field.has-error textarea {
  border-color: #ef4444;
  background: #fff5f5;
}
.ct-field-error {
  font-size: .74rem;
  color: #ef4444;
  margin-top: .3rem;
  padding-left: .2rem;
  animation: fadeUp .2s ease;
}

/* ================================================================
   SCROLL REVEAL (JS-driven)
   ================================================================ */
.reveal { opacity: 0; transform: translateY(28px); }
.revealed {
  animation: fadeUp .6s ease both;
  animation-delay: var(--reveal-delay, 0s);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .ct-layout { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .ct-stat { border-bottom: 1px solid #f1f5f9; }
  .ct-stat:nth-child(odd) { border-right: 1px solid #f1f5f9; }
  .ct-stat:nth-child(even) { border-right: none; }
  .ct-form-card { position: static; }
}

@media (max-width: 640px) {
  .ct-hero { min-height: 320px; }
  .ct-hero__title { font-size: 2.4rem; }
  .ct-stats__inner { grid-template-columns: 1fr; }
  .ct-stat { border-right: none; }
  .ct-form__row { grid-template-columns: 1fr; }
  .ct-form-card { padding: 1.6rem 1.4rem 1.4rem; }
}

/* ================================================================
   GRAVITY FORMS INTEGRATION
   Overrides GF legacy markup to match the ct-form field design.
   ================================================================ */

/* ── Wrapper resets ── */
.ct-form-card .gform_wrapper,
.ct-form-card .gform_legacy_markup_wrapper {
  margin: 0;
  padding: 0;
  max-width: none;
}
.ct-form-card .gform_body { margin: 0; }

/* ── Field list: flex grid ── */
.ct-form-card ul.gform_fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* ── Hide honeypot ── */
.ct-form-card .gform_validation_container {
  display: none !important;
}

/* ── Field item ── */
.ct-form-card .gfield {
  flex: 1 1 100%;
  min-width: 0;
  position: relative;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  padding: 0 !important;
}

/* Side-by-side: name + phone */
.ct-form-card .gfield.gf_left_half {
  flex: 1 1 calc(50% - 0.6rem);
}

/* ── Floating label ── */
.ct-form-card .gfield_label.gform-field-label {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  z-index: 1;
  pointer-events: none;
  font-size: .92rem;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: normal;
  text-transform: none;
  transition: top .2s, font-size .2s, color .2s, letter-spacing .2s, font-weight .2s;
}

/* Float on focus */
.ct-form-card .gfield:has(input:focus) .gfield_label,
.ct-form-card .gfield:has(textarea:focus) .gfield_label {
  top: .4rem;
  font-size: .7rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .04em;
}

/* Float when filled */
.ct-form-card .gfield:has(input:not(:placeholder-shown)) .gfield_label,
.ct-form-card .gfield:has(textarea:not(:placeholder-shown)) .gfield_label {
  top: .4rem;
  font-size: .7rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .04em;
}

/* Required asterisk */
.ct-form-card .gfield_required {
  color: var(--blue);
  font-weight: 600;
  font-size: .85em;
}

/* ── Input / Textarea ── */
.ct-form-card .ginput_container {
  position: relative;
}
.ct-form-card .ginput_container input[type="text"],
.ct-form-card .ginput_container input[type="email"],
.ct-form-card .ginput_container input[type="tel"],
.ct-form-card .ginput_container textarea {
  width: 100% !important;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--dark);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.35rem 1rem .55rem;
  outline: none;
  transition: border-color .22s, background .22s, box-shadow .22s;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0 !important;
}
.ct-form-card .ginput_container textarea {
  min-height: 120px;
  padding-top: 1.5rem;
}

/* Keep placeholder invisible so it doesn't conflict with the floating label */
.ct-form-card .ginput_container input::placeholder,
.ct-form-card .ginput_container textarea::placeholder {
  color: transparent;
}

/* Focus state */
.ct-form-card .ginput_container input:focus,
.ct-form-card .ginput_container textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(1,94,160,.08);
}

/* Animated underline bar (::after on ginput_container) */
.ct-form-card .ginput_container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.ct-form-card .gfield:has(input:focus) .ginput_container::after,
.ct-form-card .gfield:has(textarea:focus) .ginput_container::after {
  transform: scaleX(1);
}

/* ── Field validation error state ── */
.ct-form-card .gfield.gfield_error .ginput_container input,
.ct-form-card .gfield.gfield_error .ginput_container textarea {
  border-color: #ef4444;
  background: #fff5f5;
}
.ct-form-card .gfield.gfield_error .gfield_label {
  color: #ef4444;
}
.ct-form-card .validation_message,
.ct-form-card .gfield_validation_message {
  display: block;
  font-size: .74rem;
  color: #ef4444;
  margin-top: .3rem;
  padding-left: .2rem;
  animation: fadeUp .2s ease;
  background: none;
  border: none;
  padding-top: 0;
}

/* Form-level validation banner */
.ct-form-card .gform_validation_errors {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-size: .84rem;
  color: #c53030;
}
.ct-form-card .gform_validation_errors > h2,
.ct-form-card .gform_validation_errors ol { margin: 0; font-size: .84rem; color: #c53030; }
.ct-form-card .gform_validation_errors ol { padding-left: 1.2em; margin-top: .35rem; }

/* ── Footer / submit area ── */
.ct-form-card .gform_footer,
.ct-form-card .gform-footer {
  margin: .4rem 0 0;
  padding: 0;
  text-align: left;
}

/* ── Submit button ── */
.ct-form-card .gform_button.button {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(108deg, var(--blue) 0%, #1a7fc9 60%, var(--blue) 120%);
  background-size: 200% 100%;
  background-position: left center;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(1,94,160,.35);
  transition: transform .2s, box-shadow .2s, background-position .4s;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ct-form-card .gform_button.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(1,94,160,.45);
  background-position: right center;
}
.ct-form-card .gform_button.button:active { transform: translateY(0); }

/* GF AJAX spinner — reposition to sit inside button area */
.ct-form-card .gform_ajax_spinner {
  width: 20px;
  height: 20px;
  margin-left: .5rem;
  vertical-align: middle;
}

/* ── Confirmation / Success message ── */
.ct-form-card .gform_confirmation_wrapper,
.ct-form-card #gform_confirmation_wrapper_1 {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  animation: successSlide .5s ease;
}
.ct-form-card .gform_confirmation_message {
  color: #166534;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* ── Checkbox field (newsletter if added to GF form) ── */
.ct-form-card .gfield--type-checkbox .gfield_checkbox {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ct-form-card .gfield--type-checkbox .gchoice {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.ct-form-card .gfield--type-checkbox .gchoice input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  accent-color: var(--blue);
  cursor: pointer;
}
.ct-form-card .gfield--type-checkbox .gchoice label {
  position: static;
  font-size: .82rem;
  color: #64748b;
  pointer-events: auto;
  cursor: pointer;
  transform: none;
  letter-spacing: normal;
  text-transform: none;
}

/* ── Responsive: stack side-by-side fields on mobile ── */
@media (max-width: 560px) {
  .ct-form-card .gfield.gf_left_half { flex: 1 1 100%; }
}
