/* ============================================================
   CONTACT.CSS
   Section: #contact  |  Classes: .ct-section, .ct-form-card
   Animations: .ct-animate, .ct-animate--left, .ct-animate--right, .ct-animate--scale
   Keyframes: ctMapRing, ctBadgePulse (in main.css)
   ============================================================ */


/* ── Scroll-animation base states ── */
.ct-animate {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   0.56s var(--ease-out) var(--ct-delay, 0ms),
    transform 0.56s var(--ease-out) var(--ct-delay, 0ms);
}
.ct-animate.is-visible { opacity: 1; transform: none; }

.ct-animate--left {
  opacity: 0;
  transform: translateX(-26px);
  transition:
    opacity   0.60s var(--ease-out) var(--ct-delay, 0ms),
    transform 0.60s var(--ease-out) var(--ct-delay, 0ms);
}
.ct-animate--left.is-visible { opacity: 1; transform: none; }

.ct-animate--right {
  opacity: 0;
  transform: translateX(26px);
  transition:
    opacity   0.60s var(--ease-out) var(--ct-delay, 80ms),
    transform 0.60s var(--ease-out) var(--ct-delay, 80ms);
}
.ct-animate--right.is-visible { opacity: 1; transform: none; }

.ct-animate--scale {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity   0.50s var(--ease-out) var(--ct-delay, 0ms),
    transform 0.50s var(--ease-out) var(--ct-delay, 0ms);
}
.ct-animate--scale.is-visible { opacity: 1; transform: none; }


/* ── Section wrapper ── */
.ct-section {
  position: relative;
  background: linear-gradient(
    162deg,
    var(--white)     0%,
    var(--slate-50)  28%,
    var(--teal-50)   62%,
    var(--slate-50)  85%,
    var(--white)    100%
  );
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 1000px;
}

/* Hairline separator from FAQ above */
.ct-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%; max-width: 560px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate-200), transparent);
  pointer-events: none; z-index: 1;
}


/* ── World map SVG background ── */
.ct-worldmap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-width: 900px;
  height: auto;
  color: var(--teal-600);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.ct-worldmap .ct-map-dot-ring {
  animation: ctMapRing 3s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}


/* ── Decorative blobs ── */
.ct-blob-tl {
  position: absolute;
  top: -100px; left: -100px;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,184,184,0.07) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.ct-blob-br {
  position: absolute;
  bottom: -80px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.06) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}


/* ── Container ── */
.ct-container {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--sp-16) var(--sp-4) var(--sp-20);
}


/* ── Two-column layout ── */
.ct-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: start;
}


/* ── Left column ── */
.ct-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* Pill badge */
.ct-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px 6px 8px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}
.ct-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  flex-shrink: 0;
  animation: ctBadgePulse 2.4s ease-in-out infinite;
}

/* H2 */
.ct-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5.5vw, 46px);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.12;
  letter-spacing: -0.026em;
}
.ct-title-accent {
  position: relative;
  display: inline;
  color: var(--teal-700);
}
.ct-title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-200));
  border-radius: var(--r-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.72s var(--ease-out);
}
.ct-title.is-visible .ct-title-accent::after {
  transform: scaleX(1);
  transition-delay: 0.38s;
}

/* Intro */
.ct-intro {
  font-size: clamp(14.5px, 3vw, 16.5px);
  line-height: 1.82;
  color: var(--slate-500);
  max-width: 52ch;
}
.ct-intro strong { color: var(--slate-700); font-weight: 600; }


/* ── WhatsApp prominent card ── */
.ct-wa-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-2xl);
  background: linear-gradient(
    135deg,
    rgba(37,211,102,0.10) 0%,
    rgba(29,174,86,0.06)  100%
  );
  border: 1.5px solid rgba(37,211,102,0.28);
  box-shadow: 0 2px 12px rgba(37,211,102,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition:
    background   180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow   180ms var(--ease-out),
    transform    180ms var(--ease-out);
  cursor: pointer;
}
.ct-wa-card:hover {
  background: linear-gradient(
    135deg,
    rgba(37,211,102,0.16) 0%,
    rgba(29,174,86,0.10)  100%
  );
  border-color: rgba(37,211,102,0.45);
  box-shadow: 0 6px 24px rgba(37,211,102,0.18);
  transform: translateY(-2px);
}
.ct-wa-card:active { transform: translateY(0); }

.ct-wa-card__logo {
  width: 46px; height: 46px;
  flex-shrink: 0;
  color: var(--whatsapp-green);
}
.ct-wa-card__text { flex: 1; min-width: 0; }
.ct-wa-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: 2px;
}
.ct-wa-card__heading {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.2;
}
.ct-wa-card__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(37,211,102,0.15);
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
  color: #0d7a2f;
  white-space: nowrap;
}
.ct-wa-card__status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  flex-shrink: 0;
}
.ct-wa-card__sub {
  font-size: 13px;
  color: var(--slate-400);
  line-height: 1.3;
}
.ct-wa-card__arrow {
  width: 20px; height: 20px;
  color: var(--whatsapp-green);
  flex-shrink: 0;
  opacity: 0.70;
  transition: transform 200ms var(--ease-out), opacity 200ms;
}
.ct-wa-card:hover .ct-wa-card__arrow {
  transform: translateX(4px);
  opacity: 1;
}


/* ── Contact info cards (2×2 grid) ── */
.ct-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.ct-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.82);
  border: 1.5px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 180ms var(--ease-out),
    box-shadow   180ms var(--ease-out),
    transform    180ms var(--ease-out);
}
.ct-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
a.ct-card { cursor: pointer; }
a.ct-card:hover .ct-card__value { color: var(--teal-700); }

.ct-card__icon-wrap {
  width: 40px; height: 40px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
}
.ct-card__icon-wrap--gold {
  background: var(--gold-100);
  border-color: var(--gold-200);
}
.ct-card__icon {
  width: 18px; height: 18px;
  color: var(--teal-600);
  flex-shrink: 0;
}
.ct-card__icon-wrap--gold .ct-card__icon { color: var(--gold-600); }

.ct-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ct-card__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ct-card__value {
  font-family: var(--font-head);
  font-size: clamp(13px, 3vw, 14.5px);
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.3;
  word-break: break-word;
  transition: color 160ms var(--ease-out);
}
.ct-card__sub {
  font-size: 12px;
  color: var(--slate-400);
  line-height: 1.3;
  margin-top: 1px;
}
.ct-card__chevron {
  width: 14px; height: 14px;
  color: var(--slate-300);
  flex-shrink: 0;
  transition: color 160ms var(--ease-out), transform 200ms var(--ease-out);
}
a.ct-card:hover .ct-card__chevron {
  color: var(--teal-400);
  transform: translateX(3px);
}


/* ── Trust badges row ── */
.ct-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.ct-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  background: rgba(255,255,255,0.86);
  border: 1.5px solid var(--teal-100);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-800);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.ct-trust-badge svg {
  width: 13px; height: 13px;
  color: var(--teal-500);
  flex-shrink: 0;
}


/* ── Right column — form card ── */
.ct-right {
  display: flex;
  align-items: stretch;
}

.ct-form-card {
  width: 100%;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.80);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.10),
    0 6px 20px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,1);
  display: flex;
  flex-direction: column;
}

/* Tighter focus ring inside form (visible on white bg) */
.ct-form-card :focus-visible { outline-color: var(--teal-600); }


/* ── Form card header ── */
.ct-form-header {
  padding: var(--sp-6) var(--sp-7) var(--sp-5);
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ct-form-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.ct-form-header::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,184,184,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.ct-form-header__eyebrow {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.ct-form-header__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-300);
  flex-shrink: 0;
}
.ct-form-header__title {
  position: relative; z-index: 1;
  font-family: var(--font-head);
  font-size: clamp(17px, 3.5vw, 21px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.016em;
  margin-bottom: 4px;
}
.ct-form-header__sub {
  position: relative; z-index: 1;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.ct-form-header__sub strong { color: var(--gold-300); font-weight: 600; }


/* ── Form body ── */
.ct-form-body {
  padding: var(--sp-6) var(--sp-7) var(--sp-7);
  flex: 1;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.ct-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ct-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}
.ct-label__opt {
  font-weight: 400;
  color: var(--slate-400);
  font-size: 11px;
}
.ct-required {
  color: #DC2626;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--slate-900);
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 150ms var(--ease-out),
    box-shadow   150ms var(--ease-out),
    background   150ms;
}
.ct-input::placeholder,
.ct-textarea::placeholder { color: var(--slate-400); }

.ct-input:hover,
.ct-select:hover,
.ct-textarea:hover {
  border-color: var(--slate-300);
  background: var(--white);
}
.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(34,184,184,0.13);
  background: var(--white);
  outline: none;
}

.ct-textarea {
  resize: vertical;
  min-height: 96px;
}

/* Error states */
.ct-error {
  display: none;
  font-size: 11.5px;
  color: #DC2626;
  margin-top: 3px;
  line-height: 1.3;
}
.ct-field.has-error .ct-input,
.ct-field.has-error .ct-select,
.ct-field.has-error .ct-textarea {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}
.ct-field.has-error .ct-error { display: block; }

/* Character counter */
.ct-char-count {
  font-size: 11.5px;
  color: var(--slate-400);
  text-align: right;
  line-height: 1;
  margin-top: 2px;
}
.ct-char-count--warn { color: #B45309; }
.ct-char-count--over { color: #DC2626; font-weight: 600; }

/* Select with custom chevron */
.ct-select-wrap { position: relative; }
.ct-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 5.5px solid var(--slate-400);
  pointer-events: none;
}
.ct-select { padding-right: 34px; cursor: pointer; }

/* Input with prefix (+) */
.ct-input-wrap { position: relative; }
.ct-input-wrap .ct-input { padding-left: 26px; }
.ct-input-prefix {
  position: absolute;
  top: 50%; left: 12px;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-400);
  pointer-events: none;
  line-height: 1;
}

.ct-field-hint {
  font-size: 11.5px;
  color: var(--slate-400);
  line-height: 1.3;
  margin-top: 2px;
}

/* Submit button */
.ct-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 52px;
  padding: 14px var(--sp-6);
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-900) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(13,110,110,0.30);
  margin-top: var(--sp-1);
  transition:
    transform    160ms var(--ease-in-out),
    box-shadow   160ms var(--ease-in-out);
}
.ct-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.10) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 460ms var(--ease-out);
}
.ct-submit:hover::before { transform: translateX(100%); }
.ct-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}
.ct-submit:active { transform: translateY(0); }
.ct-submit svg {
  width: 16px; height: 16px; flex-shrink: 0;
  transition: transform 200ms var(--ease-out);
}
.ct-submit:hover svg { transform: translateX(3px); }

/* Form footer */
.ct-form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.ct-form-footer__privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--slate-400);
  text-align: center;
}
.ct-form-footer__privacy svg {
  width: 12px; height: 12px;
  color: var(--teal-400);
  flex-shrink: 0;
}
.ct-form-footer__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.ct-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--teal-700);
  white-space: nowrap;
}
.ct-mini-badge svg {
  width: 10px; height: 10px;
  flex-shrink: 0;
  color: var(--teal-500);
}


/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .ct-animate,
  .ct-animate--left,
  .ct-animate--right,
  .ct-animate--scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ct-title-accent::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }
  .ct-badge__dot { animation: none !important; }
  .ct-worldmap .ct-map-dot-ring { animation: none !important; }
  .ct-submit,
  .ct-wa-card,
  .ct-card { transition: none !important; }
  .ct-submit:hover,
  .ct-wa-card:hover,
  .ct-card:hover { transform: none !important; }
}


/* ── Responsive breakpoints ── */
@media (min-width: 375px) {
  .ct-container { padding-inline: var(--sp-5); }
}

@media (min-width: 480px) {
  .ct-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 520px) {
  .ct-field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .ct-container {
    padding: var(--sp-16) var(--sp-6) var(--sp-20);
  }
  .ct-form-header { padding: var(--sp-7) var(--sp-8) var(--sp-6); }
  .ct-form-body   { padding: var(--sp-6) var(--sp-8) var(--sp-7); }
}

@media (min-width: 768px) {
  .ct-container {
    padding: var(--sp-20) var(--sp-8) var(--sp-24);
  }
  .ct-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
    align-items: start;
  }
  /* Collapse field rows to 1-col at tablet to avoid cramping */
  .ct-field-row { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .ct-field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .ct-container {
    padding: var(--sp-24) var(--sp-8) var(--sp-24);
  }
  .ct-layout {
    grid-template-columns: 46fr 54fr;
    gap: var(--sp-14);
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .ct-layout {
    grid-template-columns: 44fr 56fr;
    gap: var(--sp-16);
  }
}

@media (min-width: 1440px) {
  .ct-layout {
    grid-template-columns: 42fr 58fr;
    gap: var(--sp-20);
  }
}
