/* Bundled fonts prevent the landing page from inheriting an unrelated theme font. */
@font-face { font-family: Karla; src: url("fonts/karla-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Karla; src: url("fonts/karla-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Karla; src: url("fonts/karla-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Karla; src: url("fonts/karla-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: Poppins; src: url("fonts/poppins-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url("fonts/poppins-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url("fonts/poppins-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url("fonts/poppins-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: Poppins; src: url("fonts/poppins-800.ttf") format("truetype"); font-style: normal; font-weight: 800; font-display: swap; }

.flm-landing {
  --flm-forest: #1f4d3a;
  --flm-sage: #9dcc78;
  --flm-mist: #eaf5e7;
  --flm-ivory: #fcfcf8;
  --flm-charcoal: #24322d;
  --flm-line: #d7e5d2;
  max-width: 1180px;
  margin: 44px auto;
  padding: 44px;
  color: var(--flm-charcoal);
  background: var(--flm-ivory);
  border-radius: 22px;
  box-shadow: 0 20px 58px rgba(31, 77, 58, .1);
}

.flm-embed-body {
  padding: 0;
  margin: 0;
  background: #fcfcf8;
}

.flm-embed-body .flm-landing {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* The outer Next.js page owns the resource heading in embed mode. */
.flm-embed-body .flm-questionnaire-header { margin-bottom: 18px; }
.flm-embed-body .flm-questionnaire-header > .flm-eyebrow,
.flm-embed-body .flm-questionnaire-header > .flm-campaign-title,
.flm-embed-body .flm-questionnaire-header > .flm-lead { display: none; }

/*
 * Align the page title and questionnaire with the theme header (1320px container, 5px padding).
 * Keyed on the questionnaire itself rather than a body class, so it works with
 * both [faturio_lead_magnet id="…"] and the legacy [faturio_diagnostico_digital].
 * The title selectors outrank the theme's static-page rule in
 * newsblogger/assets/css/faturio-page-layout.css; the body-class selector is
 * the fallback for browsers without :has().
 */
.page .spnc-wrapper .site .spnc-default-page .spnc-post-content:has(.flm-questionnaire) > .entry-header > .spnc-entry-title,
.flm-diagnostic-page.page .spnc-wrapper .site .spnc-default-page .spnc-post-content > .entry-header > .spnc-entry-title,
.spnc-post-content .flm-questionnaire {
  width: min(1310px, 100%);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.flm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 56px;
  align-items: center;
}

.flm-copy-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 170px);
  gap: 28px;
  align-items: start;
}

.flm-resource-cover {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-top: 2px;
  background: #dcebd7;
  border: 1px solid rgba(31, 77, 58, .14);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(31, 77, 58, .16);
}

.flm-resource-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flm-resource-cover-fallback {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 15px 13px;
  color: #fff;
  background: linear-gradient(155deg, #1f4d3a 0%, #2f6d50 55%, #9dcc78 170%);
}

.flm-resource-cover-fallback span {
  color: #c7eba9;
  font: 700 13px/1 Poppins, sans-serif;
  letter-spacing: -.03em;
}

.flm-resource-cover-fallback strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font: 700 17px/1.12 Poppins, sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.flm-resource-cover-fallback small {
  color: #dff0d5;
  font: 700 8px/1.3 Poppins, sans-serif;
  letter-spacing: .09em;
}

.flm-eyebrow {
  margin: 0 0 14px;
  color: #237b73;
  font: 700 12px/1.2 Poppins, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.flm-landing h1,
.flm-landing h2,
.flm-landing h3,
.flm-landing button,
.flm-download {
  font-family: Poppins, sans-serif;
}

.flm-campaign-title {
  max-width: 640px;
  margin: 0;
  color: var(--flm-forest);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.flm-lead {
  max-width: 625px;
  margin: 21px 0;
  color: #52675b;
  font-size: 19px;
  line-height: 1.6;
}

.flm-benefits {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.flm-benefits li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
}

.flm-benefits li::before {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-top: 1px;
  color: var(--flm-forest);
  background: var(--flm-sage);
  border-radius: 50%;
  content: "✓";
  font-weight: 800;
}

.flm-form-card {
  padding: 31px;
  background: #fff;
  border: 1px solid var(--flm-line);
  border-radius: 17px;
}

.flm-form-card h2 {
  margin: 0;
  color: var(--flm-forest);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.flm-form-card > p {
  margin: 8px 0 22px;
  color: #65766b;
}

.flm-form {
  display: grid;
  gap: 8px;
}

.flm-form label {
  margin-top: 7px;
  color: var(--flm-forest);
  font: 700 14px/1.3 Karla, sans-serif;
}

.flm-form input:not([type="checkbox"]):not([type="radio"]),
.flm-form select {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  color: var(--flm-charcoal);
  background: #fff;
  border: 1px solid #b9cdbd;
  border-radius: 7px;
  font: 400 16px/1.3 Karla, sans-serif;
}

.flm-form input:focus,
.flm-form select:focus {
  outline: 3px solid rgba(157, 204, 120, .35);
  border-color: #548a60;
}

.flm-form .flm-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 14px 0 20px;
  color: #52675b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.42;
}

.flm-consent input { margin: 3px 0 0; }
.flm-consent a { color: var(--flm-forest); text-decoration-thickness: 1px; }

.flm-form button,
.flm-download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  color: #fff;
  background: var(--flm-forest);
  border: 1px solid var(--flm-forest);
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.flm-form button:hover,
.flm-form button:focus,
.flm-download:hover,
.flm-download:focus {
  color: #fff;
  background: #16382a;
  transform: translateY(-1px);
}

.flm-message {
  padding: 11px 13px;
  margin-bottom: 8px;
  border-radius: 7px;
  font-size: 14px;
}

.flm-message-error { color: #7a2f2b; background: #f9e4e1; }
.flm-honeypot { position: absolute; left: -9999px; overflow: hidden; width: 1px; height: 1px; }

.flm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 45px;
  padding-top: 28px;
  border-top: 1px solid var(--flm-line);
}

.flm-steps div { padding-right: 20px; }
.flm-steps span { color: #6b9570; font: 800 12px/1 Poppins, sans-serif; letter-spacing: .1em; }
.flm-steps h3 { margin: 8px 0 7px; color: var(--flm-forest); font-size: 19px; letter-spacing: -.01em; }
.flm-steps p { margin: 0; color: #607168; font-size: 15px; line-height: 1.45; }

.flm-thank-you { max-width: 760px; text-align: center; }
.flm-thank-you .flm-lead { margin-right: auto; margin-left: auto; }
.flm-small { color: #607168; font-size: 14px; }

.flm-questionnaire { max-width: 900px; }
.flm-questionnaire-header { max-width: 720px; margin-bottom: 32px; }
.flm-questionnaire .flm-lead { max-width: 720px; }
.flm-scale { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; padding: 15px 17px; margin-top: 24px; color: #52675b; background: #fff; border: 1px solid var(--flm-line); border-radius: 12px; font-size: 14px; }
.flm-scale strong { color: var(--flm-forest); }
.flm-scale b, .flm-answer-options b { display: inline-grid; width: 22px; height: 22px; place-items: center; color: var(--flm-forest); background: var(--flm-sage); border-radius: 50%; }
.flm-progress { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; margin-bottom: 20px; color: #52675b; border-bottom: 1px solid var(--flm-line); font-size: 14px; }
.flm-progress strong { color: var(--flm-forest); }
.flm-question-section { padding-top: 25px; margin: 28px 0 0; color: var(--flm-forest); font-size: 23px; }
.flm-question { padding: 22px 0; margin: 0; border: 0; border-bottom: 1px solid var(--flm-line); }
/* Floating the legend keeps it in normal flow, so the fieldset padding no longer sits between it and the description. */
.flm-question legend { float: left; width: 100%; margin: 0 0 4px; color: var(--flm-forest); font: 700 18px/1.4 Poppins, sans-serif; }
.flm-question legend span { display: inline-grid; width: 29px; height: 29px; place-items: center; margin-right: 10px; color: var(--flm-forest); background: var(--flm-mist); border-radius: 50%; font: 700 13px/1 Karla, sans-serif; vertical-align: 2px; }
.flm-question p { clear: both; margin: 0 0 16px 39px; color: #607168; font-size: 15px; line-height: 1.5; }
.flm-answer-options { display: grid; clear: both; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-left: 39px; }
.flm-question legend + .flm-answer-options { padding-top: 12px; }
.flm-answer-options b { flex: 0 0 22px; }
/* Stray <br>/<p> from wpautop must not take grid cells. */
.flm-answer-options > br, .flm-answer-options > p:empty { display: none; }
.flm-answer-options[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.flm-answer-options[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.flm-answer-options[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
.flm-answer-options label { display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 9px 11px; color: #385448; background: #fff; border: 1px solid #b9cdbd; border-radius: 8px; cursor: pointer; font: 600 13px/1.25 Karla, sans-serif; }
.flm-answer-options label:has(input:checked) { border-color: #548a60; box-shadow: 0 0 0 3px rgba(157, 204, 120, .28); }
.flm-answer-options input { flex: 0 0 auto; margin: 0; }
.flm-form .flm-answer-options label { margin-top: 0; }
.flm-diagnostic-result { padding: 23px; margin: 30px 0; color: var(--flm-forest); background: var(--flm-mist); border-radius: 14px; }
.flm-diagnostic-result span { display: block; color: #237b73; font: 700 12px/1.2 Poppins, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.flm-diagnostic-result strong { display: block; margin: 6px 0; font: 800 30px/1 Poppins, sans-serif; }
.flm-diagnostic-result p { margin: 0; color: #52675b; }
.flm-contact-card { max-width: 620px; margin: 0 auto; }
.flm-score-summary { display: grid; gap: 8px; margin: 24px auto; color: #52675b; }
.flm-score-summary strong { color: var(--flm-forest); font: 800 36px/1 Poppins, sans-serif; }
.flm-recommendations { max-width: 620px; margin: 0 auto 24px; padding-left: 20px; color: #52675b; text-align: left; line-height: 1.5; }
.flm-recommendations li + li { margin-top: 6px; }

@media (max-width: 1100px) {
  .flm-answer-options[data-count="4"], .flm-answer-options[data-count="5"] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .flm-landing { margin: 24px 15px; padding: 28px 22px; }
  .flm-hero { grid-template-columns: 1fr; gap: 35px; }
  .flm-steps { grid-template-columns: 1fr; gap: 22px; }
  .flm-answer-options, .flm-answer-options[data-count] { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .flm-copy-heading { grid-template-columns: 1fr; }
  .flm-resource-cover { max-width: 142px; }
  .flm-question { padding: 19px 0; }
  .flm-question p, .flm-answer-options { margin-left: 0; }
  .flm-scale, .flm-progress { align-items: flex-start; flex-direction: column; }
}
