/* Cursos forms — visual style for lead capture, paralleling the
   HubSpot-template look (orange accent, white card, clean labels). */

.cursos-form-block,
.cursos-cta-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  margin: 32px auto;
  max-width: 600px;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}
.cursos-form-block__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cursos-form-block__title,
.cursos-cta-block__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  text-align: center;
}
.cursos-form-block__subtitle,
.cursos-cta-block__subtitle {
  margin: 0 0 12px;
  color: #444;
  font-size: 1rem;
  text-align: center;
}
.cursos-cta-block {
  text-align: center;
}
.cursos-cta-block__button {
  display: inline-block;
  background: #ff7548;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 12px;
  transition: background 0.15s ease;
}
.cursos-cta-block__button:hover { background: #e55d2c; }

.cursos-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.cursos-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cursos-form__field label {
  font-weight: 600;
  color: #1e1818;
  font-size: 0.92rem;
}
.cursos-form__req {
  color: #d63a3a;
  margin-left: 2px;
}
/* High specificity + !important on visual props to defeat HubSpot's atlas
   template form styles, which target inputs with broader selectors like
   ".row-fluid form input" and win on specificity otherwise. */
form.cursos-form .cursos-form__field input,
form.cursos-form .cursos-form__field select,
form.cursos-form .cursos-form__field textarea {
  padding: 12px 14px !important;
  border: 1px solid #c6c6c6 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #1e1818 !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}
form.cursos-form .cursos-form__field input:focus,
form.cursos-form .cursos-form__field select:focus,
form.cursos-form .cursos-form__field textarea:focus {
  outline: none !important;
  border-color: #ff7548 !important;
  box-shadow: 0 0 0 3px rgba(255, 117, 72, 0.15) !important;
}
form.cursos-form .cursos-form__field input::placeholder {
  color: #999 !important;
  opacity: 1 !important;
}
.cursos-form__legal {
  font-size: 0.78rem;
  color: #666;
  margin: 8px 0 4px;
  line-height: 1.4;
}
.cursos-form__submit {
  background: #ff7548;
  color: #ffffff;
  border: 0;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
.cursos-form__submit:hover { background: #e55d2c; }
.cursos-form__submit:disabled { background: #999; cursor: not-allowed; }
.cursos-form__status {
  font-size: 0.92rem;
  min-height: 1.2em;
  text-align: center;
  margin-top: 4px;
}
.cursos-form__status--ok { color: #2a8a3e; }
.cursos-form__status--error { color: #d63a3a; }
.cursos-form__status--info { color: #555; }

/* Smooth scroll when "Baixar Ebook" anchor jumps to #form-ebook. */
html { scroll-behavior: smooth; }

/* Honeypot: hide from sighted users but keep accessible to form serialization.
   Bots scraping the form will still fill it (they see the input in the HTML);
   sighted users never see it. Avoid display:none — some bots skip those. */
.cursos-form__honey {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* HS bullet-list icons came in with a purple background (the original page's
   editor style). It looks out of place against the orange-themed pages —
   override to brand orange so the icons stay visually present but on-palette. */
.list__icon {
  background-color: #ff7548 !important;
}

/* The CTA block on the TYP (thank-you) page needs more breathing room above
   the "Teste a Plataforma Lexter" link that sits below it — otherwise they
   render too close together. */
.cursos-cta-block {
  margin-top: 32px;
  margin-bottom: 48px;
}

/* TYP page: the original HubSpot CTA ("Baixe o conteúdo") is a static
   anchor with class .button.button--large. It sits right above the small
   underlined "Teste a Plataforma Lexter" link in the next dnd-row, with
   barely any gap. Add explicit margin so the visual hierarchy is clear. */
a.button.button--large {
  display: inline-block;
  margin-bottom: 32px;
}

/* Anchor CTAs that replace HubSpot CTA iframes (hero + middle section).
   They reuse .cursos-form__submit for visual continuity but need anchor-style
   tweaks (no underline, centered text). The block selector below ensures
   they render as inline-block buttons sized for hero use. */
a.cursos-cta-anchor.cursos-form__submit {
  text-decoration: none !important;
  width: auto !important;
  min-width: 200px !important;
  display: inline-block !important;
  text-align: center !important;
  padding: 14px 32px !important;
}
