/* Formulário de contacto — Marketplace Dental */
.calculator-section[hidden] { display: none !important; }

.contact-form-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  scroll-margin-top: 24px;
}
.contact-form-copy h2 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 48px); }
.contact-form-copy p { color: #5b6573; line-height: 1.65; margin: 20px 0 0; }
.contact-form-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-form-points li { position: relative; padding-left: 30px; color: var(--navy); font-weight: 700; font-size: 15px; }
.contact-form-points li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(2, 149, 90, 0.12); color: var(--emerald); font-size: 12px; display: grid; place-items: center; }

.contact-form {
  position: relative;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px 7px 22px 7px;
  background: linear-gradient(145deg, rgba(2, 149, 90, 0.05), transparent 50%), var(--ice);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-full { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 8px; color: var(--navy); font-size: 14px; font-weight: 800; }
.form-opcional { color: #8a93a0; font-weight: 600; }
.contact-form input:not([type="checkbox"]), .contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(34, 50, 100, 0.16);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(2, 149, 90, 0.14); }

.form-armadilha { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-desafio { margin-top: 22px; padding: 18px; border-radius: 14px; background: rgba(34, 50, 100, 0.06); }
.form-desafio strong { color: var(--emerald); font-size: 16px; }
.form-desafio-linha { display: flex; gap: 10px; margin-top: 10px; }
.form-desafio-linha input { max-width: 180px; }
.form-desafio-novo { width: 50px; border: 1px solid rgba(34, 50, 100, 0.16); border-radius: 12px; background: var(--white); color: var(--navy); font-size: 20px; cursor: pointer; }
.form-desafio-novo:hover { border-color: var(--emerald); color: var(--emerald); }

.contact-form .form-consentimento { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 24px; color: #5b6573; font-size: 13px; font-weight: 600; line-height: 1.5; }
.form-consentimento input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--emerald); flex: none; }
.contact-form button[type="submit"] { width: 100%; border: 0; cursor: pointer; font: inherit; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }

.form-estado { margin: 16px 0 0; min-height: 1em; font-size: 14px; font-weight: 700; color: var(--navy); }
.form-estado.erro { color: #c0392b; }
.form-estado.ok { color: var(--emerald); }
.form-sucesso { padding: 30px 6px; text-align: center; }
.form-sucesso h3 { margin: 0 0 10px; color: var(--navy); font-size: 26px; }
.form-sucesso p { margin: 0; color: #5b6573; line-height: 1.6; }

@media (max-width: 900px) {
  .contact-form-section { grid-template-columns: 1fr; gap: 32px; padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .contact-form-section { width: calc(100% - 32px); }
  .contact-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
}
