/* ============================================
   FuseIoT — CTA / Contact Section
   Dark section with particles, form, glow
   ============================================ */

/* --- Section --- */
.cta {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px var(--page-padding);
}

/* ============================================
   Floating Particles
   ============================================ */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
}

.particle--1 {
  width: 4px;
  height: 4px;
  background: var(--blue);
  opacity: 0.5;
  top: 15%;
  left: 10%;
  animation: float-particle 8s ease-in-out infinite;
}

.particle--2 {
  width: 8px;
  height: 8px;
  background: var(--red);
  opacity: 0.4;
  top: 25%;
  right: 15%;
  animation: float-particle 10s ease-in-out infinite reverse;
}

.particle--3 {
  width: 6px;
  height: 6px;
  background: var(--orange);
  opacity: 0.6;
  top: 60%;
  left: 20%;
  animation: float-particle 12s ease-in-out infinite;
  animation-delay: -3s;
}

.particle--4 {
  width: 10px;
  height: 10px;
  background: var(--green);
  opacity: 0.3;
  top: 70%;
  right: 25%;
  animation: float-particle 9s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.particle--5 {
  width: 5px;
  height: 5px;
  background: var(--blue);
  opacity: 0.5;
  top: 40%;
  left: 70%;
  animation: float-particle 11s ease-in-out infinite;
  animation-delay: -5s;
}

.particle--6 {
  width: 12px;
  height: 12px;
  background: var(--red);
  opacity: 0.3;
  top: 80%;
  left: 50%;
  animation: float-particle 14s ease-in-out infinite reverse;
  animation-delay: -4s;
}

.particle--7 {
  width: 4px;
  height: 4px;
  background: var(--orange);
  opacity: 0.5;
  top: 10%;
  left: 55%;
  animation: float-particle 7s ease-in-out infinite;
  animation-delay: -1s;
}

.particle--8 {
  width: 7px;
  height: 7px;
  background: var(--green);
  opacity: 0.4;
  top: 50%;
  right: 8%;
  animation: float-particle 13s ease-in-out infinite reverse;
  animation-delay: -6s;
}

@keyframes float-particle {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -20px);
  }
  50% {
    transform: translate(-15px, -40px);
  }
  75% {
    transform: translate(20px, -10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ============================================
   Content
   ============================================ */
.cta__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

/* --- Subtitle --- */
.cta__subtitle {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

/* --- Headline --- */
.cta__headline {
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 400;
  color: #FFF;
  text-align: center;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  position: relative;
}

/* --- Gradient glow behind headline --- */
.cta__headline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(52, 54, 177, 0.1) 0%,
    rgba(207, 42, 46, 0.08) 30%,
    rgba(244, 125, 78, 0.05) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   Form
   ============================================ */
.cta__form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* --- Inputs --- */
.cta__form-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  height: 52px;
  padding: 12px 24px;
  color: #FFF;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  width: 100%;
}

.cta__form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta__form-input:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
}

/* --- Textarea --- */
.cta__form-textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  min-height: 120px;
  padding: 16px 24px;
  color: #FFF;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s ease, background 0.3s ease;
  width: 100%;
}

.cta__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta__form-textarea:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
}

/* --- Form Group --- */
.cta__form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta__form-label {
  color: rgba(255, 255, 255, 0.5);
  padding-left: 4px;
}

/* --- Row layout for name/email fields --- */
.cta__form-row {
  display: flex;
  gap: 16px;
}

.cta__form-row .cta__form-group {
  flex: 1;
}

/* --- Submit Button --- */
.cta__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: #FFF;
  color: var(--bg-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.cta__submit:hover {
  /* hover-fill handles visual feedback */
}

.cta__submit:active {
  /* no transform */
}

.cta__form-submit {
  width: 100%;
  justify-content: center;
}

/* Nota de status do envio (contact-form.js) — mesma régua dos .label */
.cta__form-note {
  margin-top: 1rem;
  text-align: center;
  opacity: 0.72;
}

.cta__form-submit[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* Honeypot anti-spam: invisível e fora do fluxo; humano nunca vê */
.cta__form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Estado de sucesso do form (contact-form.js) — nasce do ponto de colapso */
.cta__form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
  padding: 3rem 1rem;
}

.cta__form-success-kicker {
  opacity: 0.7;
}

.cta__form-success-body {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.55;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.92);
}
