/* =========================================================
   BOOMER AUTOMATION — CONTACT CSS
   File: contact.v1.css
   Purpose: contact page loader, hero, Netlify form,
   contact details, animated strips, contact steps, and CTA.
========================================================= */

/* =========================================================
   PAGE LOADER
========================================================= */

/* Full-screen loader shown while the contact page is loading. */
.contact-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 48% 42%, rgba(54, 243, 255, 0.18), transparent 28%),
    radial-gradient(circle at 60% 60%, rgba(124, 92, 255, 0.16), transparent 34%),
    #030712;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 500ms ease,
    visibility 500ms ease;
}

/* Hide loader after JavaScript marks it complete. */
.contact-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animated loader orb. */
.contact-loader-orb {
  position: absolute;
  width: clamp(9rem, 34vw, 18rem);
  height: clamp(9rem, 34vw, 18rem);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(54, 243, 255, 0.95), transparent 28%),
    radial-gradient(circle at 68% 64%, rgba(124, 92, 255, 0.9), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(56, 255, 182, 0.35), transparent 58%);
  animation: contactLoaderMorph 2.8s ease-in-out infinite;
}

/* Loader content appears above the orb. */
.contact-loader-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

/* Loader brand mark. */
.contact-loader-mark {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
  font-weight: 950;
  letter-spacing: -0.08em;
  box-shadow: 0 0 70px rgba(54, 243, 255, 0.38);
}

/* Loader text. */
.contact-loader-content p {
  margin: 0;
  color: var(--soft);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Loader blob animation. */
@keyframes contactLoaderMorph {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    border-radius: 42% 58% 61% 39% / 45% 42% 58% 55%;
  }

  50% {
    transform: scale(1.08) rotate(12deg);
    border-radius: 60% 40% 38% 62% / 52% 62% 38% 48%;
  }
}

/* =========================================================
   HERO
========================================================= */

/* Full-screen contact hero. */
.contact-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 7.5rem 0 5.5rem;
  overflow: hidden;
}

/* Dark overlay over hero image for text contrast. */
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 7, 18, 0.96) 0%,
      rgba(3, 7, 18, 0.78) 48%,
      rgba(3, 7, 18, 0.34) 100%
    ),
    radial-gradient(circle at 24% 46%, rgba(54, 243, 255, 0.18), transparent 38%),
    radial-gradient(circle at 74% 42%, rgba(124, 92, 255, 0.2), transparent 34%);
}

/* Hero image wrapper. */
.contact-hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* Hero image targeted by contact.v1.js for parallax. */
.contact-hero-image {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center;
  opacity: 0.46;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
}

/* Extra overlay to blend hero into the page. */
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(3, 7, 18, 0.94) 100%),
    radial-gradient(circle at 65% 48%, rgba(54, 243, 255, 0.13), transparent 32%);
}

/* Hero content container. */
.contact-hero-content {
  max-width: 980px;
}

/* Hero headline. */
.contact-hero h1 {
  max-width: 1000px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.75rem, 7.2vw, 6.35rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

/* Hero body copy. */
.contact-hero-copy {
  max-width: 740px;
  margin-bottom: 1.7rem;
  color: var(--soft);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

/* CTA row used in hero and final CTA. */
.contact-hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* =========================================================
   CONTACT STRIP
========================================================= */

/* Horizontal animated keyword strip. */
.contact-strip {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

/* Moving track of service keywords. */
.contact-strip-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 1rem 0;
  color: var(--soft);
  font-size: clamp(0.86rem, 2vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: contactStripScroll 26s linear infinite;
}

/* Keep each keyword on one line. */
.contact-strip-track span {
  white-space: nowrap;
}

/* Strip movement animation. */
@keyframes contactStripScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   CONTACT MAIN
========================================================= */

/* Main contact section background. */
.contact-main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 22%, rgba(54, 243, 255, 0.1), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(124, 92, 255, 0.14), transparent 32%),
    var(--bg);
}

/* Mobile-first contact layout. */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* Contact information column. */
.contact-info {
  position: relative;
}

/* Contact information headline. */
.contact-info h2 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5.8vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

/* Contact information paragraph. */
.contact-info > p {
  max-width: 660px;
}

/* Contact detail list. */
.contact-detail-list {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Contact detail row. */
.contact-detail-list a,
.contact-detail-list div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

/* Contact detail label. */
.contact-detail-list span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Contact detail value. */
.contact-detail-list strong {
  color: var(--text);
  font-size: clamp(1rem, 3vw, 1.35rem);
  overflow-wrap: anywhere;
}

/* Contact row hover. */
.contact-detail-list a:hover strong,
.contact-detail-list a:focus-visible strong {
  color: var(--accent);
}

/* Small animated support block. */
.contact-response-block {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
}

/* Pulsing indicator beside support block. */
.response-pulse {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(54, 243, 255, 0.78);
}

/* Outer pulse ring. */
.response-pulse::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border: 1px solid rgba(54, 243, 255, 0.45);
  border-radius: inherit;
  animation: responsePulse 1.8s ease-out infinite;
}

/* Support block heading. */
.contact-response-block h3 {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: clamp(1.25rem, 4vw, 1.9rem);
  letter-spacing: -0.055em;
}

/* Support block text. */
.contact-response-block p {
  margin-bottom: 0;
}

/* Pulse animation. */
@keyframes responsePulse {
  from {
    opacity: 1;
    transform: scale(0.72);
  }

  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* =========================================================
   FORM
========================================================= */

/* Form wrapper section. */
.contact-form-section {
  position: relative;
}

/* Netlify contact form. */
.contact-form {
  position: relative;
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: clamp(1.3rem, 4vw, 2.2rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(54, 243, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Moving glow across the form. */
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(54, 243, 255, 0.08), transparent);
  animation: formScan 4.8s ease-in-out infinite;
  pointer-events: none;
}

/* Form scan animation. */
@keyframes formScan {
  0% {
    transform: translateX(-120%);
  }

  55%,
  100% {
    transform: translateX(280%);
  }
}

/* Hide honeypot field from human users. */
.contact-hidden-field {
  display: none;
}

/* Form heading area. */
.form-heading {
  position: relative;
  z-index: 1;
}

/* Form eyebrow text. */
.form-heading span {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Form title. */
.form-heading h2 {
  margin-bottom: 0.6rem;
  color: var(--text);
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

/* Form intro text. */
.form-heading p {
  max-width: 620px;
  margin-bottom: 0;
}

/* Mobile-first form grid. */
.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

/* Field wrapper. */
.form-field {
  display: grid;
  gap: 0.45rem;
}

/* Field label text. */
.form-field span {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
}

/* Shared field styling. */
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(3, 7, 18, 0.72);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
  transition:
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    background var(--transition-med);
}

/* Select styling. */
.form-field select {
  appearance: none;
  cursor: pointer;
}

/* Textarea styling. */
.form-field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

/* Placeholder styling. */
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(168, 179, 199, 0.72);
}

/* Field focus state. */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(54, 243, 255, 0.58);
  background: rgba(3, 7, 18, 0.92);
  box-shadow: 0 0 0 4px rgba(54, 243, 255, 0.11);
}

/* Full-width field helper. */
.form-field-full {
  grid-column: 1 / -1;
}

/* Consent checkbox row. */
.form-consent {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  line-height: 1.5;
}

/* Consent checkbox. */
.form-consent input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

/* Submit button. */
.contact-submit {
  position: relative;
  z-index: 1;
  width: 100%;
  cursor: pointer;
}

/* Submit button disabled state. */
.contact-submit:disabled {
  cursor: progress;
  opacity: 0.76;
}

/* Form note. */
.form-note {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-size: 0.88rem;
}

/* =========================================================
   CONTACT ADVANTAGES
========================================================= */

/* Contact advantages section. */
.contact-advantages {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 255, 182, 0.1), transparent 30%),
    radial-gradient(circle at 82% 66%, rgba(124, 92, 255, 0.18), transparent 34%),
    #020617;
}

/* Advantages headline. */
.contact-advantages-heading h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5.8vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

/* Contact steps wrapper. */
.contact-steps {
  display: grid;
  gap: 0;
  margin-top: 2.4rem;
  border-top: 1px solid var(--border);
}

/* Contact step row. */
.contact-step {
  display: grid;
  gap: 0.65rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

/* Contact step number. */
.contact-step span {
  color: var(--accent);
  font-weight: 950;
}

/* Contact step heading. */
.contact-step h3 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 4.4vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

/* Contact step text. */
.contact-step p {
  max-width: 44rem;
  margin-bottom: 0;
}

/* =========================================================
   FINAL CTA
========================================================= */

/* Final contact CTA section. */
.contact-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 26%, rgba(54, 243, 255, 0.16), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(124, 92, 255, 0.18), transparent 36%),
    #020617;
}

/* CTA content wrapper. */
.contact-cta-inner {
  max-width: 940px;
}

/* CTA headline. */
.contact-cta h2 {
  max-width: 860px;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(2.1rem, 5.9vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

/* CTA paragraph. */
.contact-cta p {
  max-width: 700px;
  margin-bottom: 1.5rem;
  color: var(--soft);
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (min-width: 760px) {
  /* Form fields become two columns on tablet and up. */
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact step rows become structured rows. */
  .contact-step {
    grid-template-columns: 0.18fr 0.42fr 1fr;
    align-items: baseline;
  }
}

/* =========================================================
   RESPONSIVE — DESKTOP
========================================================= */

@media (min-width: 980px) {
  /* Main contact area becomes two columns on desktop. */
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  /* Keep contact info sticky for a premium desktop feel. */
  .contact-info {
    position: sticky;
    top: 7rem;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 680px) {
  /* Keep hero content lower on mobile for stronger image impact. */
  .contact-hero {
    align-items: end;
    padding: 7rem 0 6.5rem;
  }

  /* Stronger mobile overlay for readability. */
  .contact-hero::before {
    background:
      linear-gradient(180deg, rgba(3, 7, 18, 0.38) 0%, rgba(3, 7, 18, 0.97) 70%),
      radial-gradient(circle at 50% 35%, rgba(54, 243, 255, 0.18), transparent 38%);
  }

  /* Slightly reduce hero image height on mobile. */
  .contact-hero-image {
    height: 105%;
    opacity: 0.54;
  }

  /* Stack CTA buttons on mobile. */
  .contact-hero-actions {
    flex-direction: column;
  }

  /* Make CTA buttons easy to tap. */
  .contact-hero-actions .btn {
    width: 100%;
  }

  /* Give form a little more breathing room on phones. */
  .contact-form {
    padding: 1rem;
  }
}

/* =========================================================
   REDUCED MOTION SUPPORT
========================================================= */

@media (prefers-reduced-motion: reduce) {
  /* Disable page-specific decorative animations for users
     who prefer reduced motion. */
  .contact-loader-orb,
  .contact-strip-track,
  .contact-form::before,
  .response-pulse::after {
    animation: none !important;
  }
}