/**
 * FUTUREAXIS Contact — corporate tech contact layout.
 * Visual language: shared cinema hero, info cards, form+map shell.
 */

.ftx-ct {
  --ct-navy: #0e143d;
  --ct-ink: #1c1f2e;
  --ct-muted: #6b7285;
  --ct-theme: #6421ff;
  --ct-theme-2: #7a3dff;
  --ct-soft: #f4f5f8;
  --ct-white: #ffffff;
  --ct-radius: 18px;
  --ct-radius-sm: 12px;
  color: var(--ct-ink);
  background: var(--ct-soft);
}

.ftx-ct a {
  text-decoration: none;
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero uses shared .ftx-ins-hero from insights CSS */
.ftx-ct-hero.ftx-ins-hero {
  min-height: 420px;
  max-height: 480px;
  height: clamp(400px, 48vh, 480px);
}

.ftx-ct-hero .ftx-ins-hero__content {
  padding: 108px 0 56px;
}

/* Info cards */
.ftx-ct-info {
  padding: 56px 0 20px;
  background: var(--ct-soft);
}

.ftx-ct-info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ftx-ct-card {
  position: relative;
  background: var(--ct-white);
  border-radius: var(--ct-radius);
  overflow: visible;
  box-shadow: 0 12px 36px rgba(14, 20, 61, 0.06);
}

.ftx-ct-card__media {
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: var(--ct-radius) var(--ct-radius) 0 0;
  background: #ddd8ec;
}

.ftx-ct-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ftx-ct-card__badge {
  position: absolute;
  left: 18px;
  top: 170px;
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ct-theme);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 22px rgba(100, 33, 255, 0.28);
  transform: translateY(-50%);
  pointer-events: none;
}

.ftx-ct-card__body {
  position: relative;
  z-index: 1;
  padding: 36px 22px 26px;
  background: var(--ct-white);
  border-radius: 0 0 var(--ct-radius) var(--ct-radius);
}

.ftx-ct-card__body h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ct-navy);
}

.ftx-ct-card__body p,
.ftx-ct-card__body a {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ct-muted);
  font-weight: 500;
}

.ftx-ct-card__body a:hover {
  color: var(--ct-theme);
}

/* Form + map shell */
.ftx-ct-main {
  padding: 28px 0 80px;
  background: var(--ct-soft);
  scroll-margin-top: 100px;
}

.ftx-ct-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  background: var(--ct-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(14, 20, 61, 0.08);
}

.ftx-ct-shell__form {
  padding: 42px 40px 44px;
}

.ftx-ct-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-theme);
}

.ftx-ct-shell__title {
  margin: 0 0 28px;
  max-width: 14em;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ct-navy);
}

.ftx-ct-form {
  display: grid;
  gap: 16px;
}

.ftx-ct-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ftx-ct-field {
  position: relative;
  display: block;
  margin: 0;
}

.ftx-ct-field input,
.ftx-ct-field select,
.ftx-ct-field textarea {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: #f1f2f6;
  padding: 0 48px 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ct-ink);
  outline: none;
  appearance: none;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.ftx-ct-field textarea {
  min-height: 150px;
  border-radius: 22px;
  padding: 18px 48px 18px 20px;
  resize: vertical;
  line-height: 1.55;
}

.ftx-ct-field i {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #9aa0b2;
  font-size: 14px;
  pointer-events: none;
}

.ftx-ct-field textarea + i {
  top: 20px;
}

.ftx-ct-field input:focus,
.ftx-ct-field select:focus,
.ftx-ct-field textarea:focus {
  background: #eceef5;
  box-shadow: 0 0 0 3px rgba(100, 33, 255, 0.12);
}

.ftx-ct-field.is-invalid input,
.ftx-ct-field.is-invalid select,
.ftx-ct-field.is-invalid textarea {
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.35);
}

.ftx-ct-field__error {
  display: block;
  margin-top: 6px;
  padding-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
}

.ftx-ct-form__actions {
  margin-top: 8px;
}

.ftx-ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ct-theme) 0%, var(--ct-theme-2) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(100, 33, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ftx-ct-submit i {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.ftx-ct-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(100, 33, 255, 0.34);
}

.ftx-ct-submit:hover i {
  transform: translateX(4px);
}

.ftx-ct-form.is-submitting [data-ct-submit] {
  opacity: 0.7;
  pointer-events: none;
}

.ftx-ct-shell__map {
  min-height: 100%;
  background: #e8e6f0;
}

.ftx-ct-shell__map iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  display: block;
}

.ftx-ct-success h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--ct-navy);
}

.ftx-ct-success p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ct-muted);
}

.ftx-ct-shell .ftaxis-alert {
  margin-bottom: 18px;
}

@media only screen and (max-width: 1199px) {
  .ftx-ct-shell {
    grid-template-columns: 1fr;
  }

  .ftx-ct-shell__map iframe {
    min-height: 360px;
  }
}

@media only screen and (max-width: 991px) {
  .ftx-ct-hero.ftx-ins-hero {
    min-height: 360px;
    max-height: 420px;
    height: clamp(340px, 46vh, 420px);
  }

  .ftx-ct-hero .ftx-ins-hero__content {
    padding: 96px 0 48px;
  }

  .ftx-ct-info__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 767px) {
  .ftx-ct-info {
    padding: 32px 0 8px;
  }

  .ftx-ct-main {
    padding: 16px 0 56px;
  }

  .ftx-ct-shell {
    border-radius: 18px;
  }

  .ftx-ct-shell__form {
    padding: 28px 20px 32px;
  }

  .ftx-ct-form__row {
    grid-template-columns: 1fr;
  }

  .ftx-ct-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ftx-ct-submit:hover {
    transform: none;
  }

  .ftx-ct-submit:hover i {
    transform: none;
  }
}
