.template-hero {
  position: relative;
  padding: 110px 0 86px;
  background-color: #0d2e63;
  background-image:
    linear-gradient(160deg, rgba(6, 18, 38, 0.86), rgba(13, 46, 99, 0.78) 45%, rgba(7, 28, 58, 0.9)),
    radial-gradient(circle at 20% 10%, rgba(18, 148, 209, 0.22), transparent 42%),
    var(--hero-image);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.template-hero-grid {
  display: flex;
  justify-content: center;
  text-align: center;
}

.template-hero-grid > div {
  max-width: 860px;
  width: 100%;
}

.template-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(243, 248, 255, 0.76);
  margin-bottom: 14px;
}

.template-hero .breadcrumb a {
  color: rgba(243, 248, 255, 0.94);
  text-decoration: none;
}

.template-hero .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #f3f8ff;
  border-color: rgba(255, 255, 255, 0.24);
}

.template-hero h1 {
  color: #f5f9ff;
  margin: 14px 0 10px;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.template-hero p {
  color: rgba(247, 251, 255, 0.96);
  margin: 0;
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

.template-section {
  padding: 26px 0;
}

.template-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-1);
  overflow-wrap: anywhere;
}

.template-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #1b3f6b;
}

.template-card p {
  color: #40566f;
}

.template-list {
  margin: 18px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 14px;
}

.template-list li > strong {
  color: #123f73;
}

.template-list ul,
.template-bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #4e6077;
}

.template-cta {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.template-cta h2 {
  margin-top: 0;
}

.template-cta p {
  margin-bottom: 16px;
}

.template-form {
  display: grid;
  gap: 14px;
}

.template-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.template-field {
  display: grid;
  gap: 8px;
}

.template-field label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #415264;
}

.template-field input,
.template-field textarea {
  width: 100%;
  border: 1px solid rgba(23, 35, 48, 0.12);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
}

.template-field textarea {
  min-height: 140px;
  resize: vertical;
}

.template-form-note,
.template-form-status {
  margin: 0;
  font-size: 14px;
  color: #52657f;
}

.template-form-status {
  display: none;
  font-weight: 700;
}

.template-form-status.is-error { color: var(--danger); display: block; }
.template-form-status.is-success { color: var(--success); display: block; }

@media (max-width: 980px) {
  .template-hero {
    padding: 102px 0 72px;
  }

  .template-hero h1 {
    max-width: 24ch;
  }
}

@media (max-width: 720px) {
  .template-hero {
    padding: 94px 0 58px;
  }

  .template-hero .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
  }

  .template-hero h1 {
    max-width: 18ch;
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .template-hero p {
    font-size: 0.96rem;
    max-width: 100%;
  }

  .template-section {
    padding: 18px 0;
  }

  .template-card,
  .template-cta {
    padding: 20px;
  }

  .template-field-grid {
    grid-template-columns: 1fr;
  }

  .template-list,
  .template-list ul,
  .template-bullets {
    padding-left: 18px;
  }

  .template-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .template-card,
  .template-cta {
    padding: 18px;
    border-radius: 12px;
  }
}
