.form-section {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 130px;
  background: linear-gradient(180deg, #EAF7FD 0%, #F5FBFE 55%, #FFFFFF 100%);
  isolation: isolate;
}

.form-section .weave {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--azul) 2.4px, transparent 2.4px);
  background-size: 34px 34px;
  opacity: 0.08;
}

.form-section .weave::before,
.form-section .weave::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.form-section .weave::before {
  width: 220px;
  height: 220px;
  top: -60px;
  right: 8%;
  background: var(--amarelo);
  opacity: 0.18;
}

.form-section .weave::after {
  width: 160px;
  height: 160px;
  bottom: 4%;
  left: 4%;
  background: var(--verde);
  opacity: 0.14;
}

/* ---------------------------------------------------------- */
/* WRAPPER                                                     */
/* ---------------------------------------------------------- */

.form-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding-top: calc( (var(--nav-h)) - 40px );
}

/* ---------------------------------------------------------- */
/* LADO ESQUERDO — TEXTO                                       */
/* ---------------------------------------------------------- */

.form-side {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-side h2 {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--azul-escuro);
  line-height: 1.15;
  margin: 0 0 16px;
}

.form-side p {
  font-family: var(--fonte-texto);
  font-size: 1.05rem;
  color: var(--texto);
  line-height: 1.6;
  margin: 0;
  max-width: 42ch;
}

.tag-scrawl {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--fonte-extra);
  font-size: 1.3rem;
  color: var(--vermelho);
  transform: rotate(-3deg);
  position: relative;
}

.tag-scrawl::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -6px;
  height: 6px;
  border-bottom: 3px dashed var(--amarelo);
  border-radius: 50%;
}

/* extras: trabalhe conosco + redes sociais */

.side-extra {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-trabalhe {
  background: var(--laranja);
  border-radius: 22px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 28px -14px rgba(117, 42, 13, 0.55);
}

.side-trabalhe p {
  font-family: var(--fonte-texto);
  color: var(--branco);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

.work-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--branco);
  color: var(--laranja-escuro);
  font-family: var(--fonte-texto);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.work-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.25);
}

.work-link:hover svg {
  transform: translateX(4px);
}

.side-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.side-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--branco);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.side-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.side-social a:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--azul-escuro);
}

/* ---------------------------------------------------------- */
/* LADO DIREITO — CARD DO FORMULÁRIO                            */
/* ---------------------------------------------------------- */

.form-card {
  position: relative;
  background: var(--branco);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 30px 60px -30px rgba(2, 61, 81, 0.28);
}

.form-card::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 6px solid var(--amarelo);
  opacity: 0.7;
  z-index: -1;
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--fonte-texto);
  font-size: 1rem;
  color: var(--texto);
  background: #F7FAFC;
  border: 2px solid #E4EEF3;
  border-radius: 16px;
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8FA3AC;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--azul);
  background: var(--branco);
  box-shadow: 0 0 0 4px rgba(0, 160, 211, 0.15);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23023D51'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
  cursor: pointer;
}

.field-message textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

  .termos {
    margin: 10px;
  }

  .termos label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
  }

.termos input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.termos a {
    color: var(--azul);
    text-decoration: none;
}

.termos a:hover {
    text-decoration: underline;
}

#btnEnviar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fonte-titulo);
  font-size: 1.05rem;
  color: var(--branco);
  background: var(--vermelho);
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 26px -14px rgba(94, 15, 26, 0.6);
}

.submit-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.submit-btn:hover {
  background: var(--vermelho-escuro);
  transform: translateY(-2px);
}

.submit-btn:hover svg {
  transform: translateX(4px);
}

.alert {
  margin-top: 22px;
  border-radius: 16px;
  padding: 14px 20px;
  font-family: var(--fonte-texto);
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(128, 218, 47, 0.15);
  color: var(--verde-escuro);
  border: 2px solid var(--verde);
}


/* ---------------------------------------------------------- */
/* RESPONSIVO                                                   */
/* ---------------------------------------------------------- */

@media (max-width: 980px) {
  .form-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-side {
    order: 1;
    text-align: left;
  }

  .form-card {
    order: 2;
    padding: 32px 26px;
  }
}

@media (max-width: 560px) {
  .form-section {
    padding: 80px 18px 90px;
  }

  .row-2 {
    grid-template-columns: 1fr;
  }

  .form-card {
    border-radius: 22px;
    padding: 28px 22px;
  }

  .side-trabalhe {
    padding: 18px 20px;
  }
}