/* Form template previews and free calculators */
.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.form-preview {
  background: #fff;
  border: 1px solid #e0e2ee;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 28px 24px;
}

  .form-preview header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .form-preview header p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
  }

.form-preview-meta {
  display: inline-block;
  font-size: 0.85rem;
  color: #666;
  background: #f4f4fb;
  border-radius: 999px;
  padding: 3px 12px;
}

  .form-preview-meta i {
    margin-right: 4px;
  }

.form-questions {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.form-question {
  padding: 16px 0;
  border-top: 1px solid #eee;
}

  .form-question.is-conditional {
    margin-left: 18px;
    padding-left: 14px;
    border-left: 3px solid #cfd2fb;
  }

  .form-question.is-accept {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
  }

.fake-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #9aa0b5;
  border-radius: 4px;
}

.form-question-label {
  display: flex;
  gap: 8px;
  font-weight: 700;
  line-height: 1.5;
}

.form-question-number {
  color: #888;
  min-width: 22px;
}

.form-question abbr {
  color: #c0392b;
  text-decoration: none;
}

.form-question-condition,
.form-question-help {
  font-size: 0.88rem;
  color: #666;
  margin: 4px 0 0 30px;
}

.form-question-condition i {
  color: var(--primary-color);
  margin-right: 4px;
}

.form-options {
  list-style: none;
  margin: 10px 0 0 30px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

  .form-options li {
    border: 1px solid #c9cde0;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.92rem;
    color: #444;
    background: #fafbff;
  }

  .form-options.is-many li {
    border-radius: 6px;
  }

.fake-field {
  margin: 10px 0 0 30px;
  border: 1px solid #c9cde0;
  border-radius: 6px;
  background: #fafbff;
  color: #8a90a8;
  font-size: 0.9rem;
  padding: 10px 12px;
}

.fake-long {
  height: 70px;
}

.fake-signature {
  height: 64px;
  font-style: italic;
}

.form-preview-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #666;
}

  .form-preview-note abbr {
    color: #c0392b;
    text-decoration: none;
  }

.template-disclaimer {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  background: #fff8e6;
  border: 1px solid #f0dca0;
  border-radius: 10px;
  padding: 14px 16px;
  color: #5c4b12;
  line-height: 1.55;
}

  .template-disclaimer i {
    margin-top: 4px;
  }

/* Hub filters */
.template-group {
  margin-bottom: 36px;
}

  .template-group h3.group-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

/* Calculators */
.calc {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}

.calc-inputs,
.calc-results {
  background: #fff;
  border: 1px solid #e0e2ee;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

  .calc-inputs h2,
  .calc-results h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

.calc-field {
  margin-bottom: 16px;
}

  .calc-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .calc-field small {
    display: block;
    color: #777;
    margin-top: 3px;
    line-height: 1.4;
  }

  .calc-field input {
    width: 100%;
    max-width: 260px;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #c9cde0;
    border-radius: 8px;
  }

    .calc-field input:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 1px;
    }

.calc-hero-result {
  background: #f1f2ff;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  margin-bottom: 18px;
}

  .calc-hero-result .calc-big {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.2;
  }

  .calc-hero-result span.calc-label {
    color: #555;
  }

.calc-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

  .calc-rows li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.4;
  }

    .calc-rows li strong {
      white-space: nowrap;
    }

.calc-note {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin-top: 14px;
}

.calc-error {
  color: #c0392b;
  font-weight: 700;
}

@media (min-width: 860px) {
  .calc {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Printing a template: just the form */
@media print {
  .header-section,
  .footer,
  .template-hero,
  .template-hero ~ .industry-section ~ .industry-section,
  .industry-seo-text,
  #nav-overlay,
  .skip-link {
    display: none !important;
  }

  .form-preview {
    box-shadow: none;
    border: none;
  }

  .industry-section {
    padding: 0;
  }
}

.calc-second {
  margin-top: 18px;
  margin-bottom: 0;
}

/* What's new */
.changelog-month {
  font-size: 1.4rem;
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e4e6ef;
}

  .changelog-month:first-child {
    margin-top: 0;
  }

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.changelog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #777;
  font-size: 0.92rem;
}

.changelog-kind {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 10px;
  background: #e5f6ea;
  color: #1c7a3a;
}

.changelog-kind-improved {
  background: #eceefe;
  color: var(--primary-color);
}

.changelog-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.changelog-body p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}

.changelog-body a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

  .changelog-body a:hover {
    text-decoration: underline;
  }

@media (min-width: 700px) {
  .changelog-entry {
    grid-template-columns: 150px 1fr;
    gap: 20px;
  }

  .changelog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
