/*
 * Blog, single post, pages and contact forms.
 * Loaded only where kriti_ai_has_own_header() is true. Matches the product
 * pages (product.css): indigo/violet gradient hero, white cards, Inter.
 */

.kb-hero,
.kb-main,
.kb-container {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Buttons (shared with product.css, which is not loaded here) ---------- */
.kp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.kp-btn--primary {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff;
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.25);
}
.kp-btn--primary:hover,
.kp-btn--primary:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(67, 56, 202, 0.32);
}

/* ---------- Hero ---------- */
.kb-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 20px 72px;
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 42%, #6d28d9 100%);
  color: #fff;
}
.kb-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(167, 139, 250, 0.45), transparent 70%),
    radial-gradient(520px 340px at 10% 110%, rgba(56, 189, 248, 0.25), transparent 70%);
  pointer-events: none;
}
.kb-hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.kb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kb-hero__eyebrow .material-symbols-outlined {
  font-size: 18px;
}
.kb-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.kb-hero__lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: #c7d2fe;
  font-size: 18px;
  line-height: 1.6;
}
.kb-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  color: #e0e7ff;
  font-size: 15px;
  list-style: none;
}
.kb-hero__meta li {
  position: relative;
}
.kb-hero__meta li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(224, 231, 255, 0.6);
  transform: translateY(-50%);
}
.kb-hero--post .kb-hero__title {
  font-size: clamp(30px, 4.4vw, 46px);
}
.kb-hero--post,
.kb-hero--page {
  padding-bottom: 104px;
}

/* ---------- Layout ---------- */
.kb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.kb-main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: -64px auto 0;
  padding: 0 20px 80px;
}

/* ---------- Blog listing ---------- */
.kb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}
.kb-chips a {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.kb-chips a:hover,
.kb-chips a:focus-visible {
  border-color: #a5b4fc;
  color: #3730a3;
}
.kb-chips a.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff;
}

.kb-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kb-card:hover {
  border-color: #c7d2fe;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(30, 27, 75, 0.1);
}
.kb-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2ff;
}
.kb-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.kb-card:hover .kb-card__media img {
  transform: scale(1.04);
}
.kb-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  color: #6d28d9;
}
.kb-card__placeholder .material-symbols-outlined {
  font-size: 48px;
}
.kb-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.kb-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 10px;
  color: #64748b;
  font-size: 13px;
}
.kb-card__cat {
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
}
.kb-card__title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.kb-card__title a {
  color: inherit;
  text-decoration: none;
}
.kb-card__title a:hover,
.kb-card__title a:focus-visible {
  color: #4338ca;
}
.kb-card__excerpt {
  margin: 0 0 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}
.kb-card__more {
  margin-top: auto;
  color: #4338ca;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.kb-card__more:hover,
.kb-card__more:focus-visible {
  color: #6d28d9;
}

.kb-card--featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin: 0 0 32px;
}
.kb-card--featured .kb-card__media {
  aspect-ratio: auto;
  min-height: 320px;
}
.kb-card--featured .kb-card__body {
  justify-content: center;
  padding: 36px 40px;
}
.kb-card--featured .kb-card__title {
  font-size: 30px;
  letter-spacing: -0.01em;
}
.kb-card--featured .kb-card__excerpt {
  font-size: 17px;
}
.kb-card--featured .kb-card__more {
  margin-top: 0;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.kb-pagination {
  margin-top: 48px;
}
.kb-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.kb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
}
.kb-pagination a.page-numbers:hover {
  border-color: #a5b4fc;
  color: #3730a3;
}
.kb-pagination .page-numbers.current {
  border-color: transparent;
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff;
}
.kb-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.kb-empty {
  max-width: 520px;
  margin: 40px auto;
  padding: 48px 32px;
  border: 1px dashed #c7d2fe;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}
.kb-empty .material-symbols-outlined {
  color: #6d28d9;
  font-size: 44px;
}
.kb-empty h2 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
}
.kb-empty p {
  margin: 0 0 22px;
  color: #475569;
}

/* ---------- Article and page cards ---------- */
.kb-article,
.kb-page {
  padding: 48px 56px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(30, 27, 75, 0.1);
}
.kb-article__image {
  margin: -16px -24px 36px;
  overflow: hidden;
  border-radius: 16px;
}
.kb-article__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Prose ---------- */
.kb-prose {
  color: #334155;
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.kb-prose > :first-child {
  margin-top: 0;
}
.kb-prose > :last-child {
  margin-bottom: 0;
}
.kb-prose h2 {
  margin: 44px 0 14px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.kb-prose h3 {
  margin: 32px 0 10px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
}
.kb-prose h4 {
  margin: 26px 0 8px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 650;
}
.kb-prose p {
  margin: 0 0 20px;
}
.kb-prose a {
  color: #4338ca;
  text-decoration: underline;
  text-decoration-color: #c7d2fe;
  text-underline-offset: 3px;
}
.kb-prose a:hover {
  color: #6d28d9;
  text-decoration-color: currentColor;
}
.kb-prose strong {
  color: #0f172a;
  font-weight: 650;
}
.kb-prose ul,
.kb-prose ol {
  margin: 0 0 22px;
  padding-left: 1.4em;
}
.kb-prose ul { list-style: disc; }
.kb-prose ol { list-style: decimal; }
.kb-prose li {
  margin: 0 0 8px;
  padding-left: 4px;
}
.kb-prose li::marker {
  color: #6d28d9;
}
.kb-prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid #6d28d9;
  border-radius: 0 14px 14px 0;
  background: #f5f3ff;
  color: #1e1b4b;
  font-size: 19px;
}
.kb-prose blockquote p:last-child {
  margin-bottom: 0;
}
.kb-prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}
.kb-prose pre {
  margin: 0 0 24px;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.6;
}
.kb-prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
.kb-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.kb-prose figure {
  margin: 28px 0;
}
.kb-prose figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}
.kb-prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}
.kb-prose table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 16px;
}
.kb-prose .wp-block-table {
  overflow-x: auto;
}
.kb-prose th,
.kb-prose td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.kb-prose th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 650;
}
.kb-pages {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
}

/* ---------- Post footer ---------- */
.kb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.kb-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.kb-tags a:hover {
  background: #eef2ff;
  color: #4338ca;
}
.kb-author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 36px 0 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}
.kb-author__avatar {
  flex: none;
  border-radius: 50%;
}
.kb-author__label {
  margin: 0;
  color: #6366f1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kb-author__name {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}
.kb-author__bio {
  margin: 6px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}
.kb-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 0;
}
.kb-postnav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: #0f172a;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kb-postnav__link span {
  color: #6366f1;
  font-size: 13px;
  font-weight: 600;
}
.kb-postnav__link strong {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}
.kb-postnav__link:hover,
.kb-postnav__link:focus-visible {
  border-color: #a5b4fc;
  box-shadow: 0 10px 24px rgba(30, 27, 75, 0.08);
}
.kb-postnav__link--next {
  grid-column: 2;
  text-align: right;
}
.kb-comments {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}
.kb-comments .comment-reply-title,
.kb-comments .comments-title {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
}
.kb-comments .comment-notes,
.kb-comments .logged-in-as {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}
.kb-comments .comment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.kb-comments .comment-form > p {
  grid-column: 1 / -1;
  margin: 0;
}
.kb-comments .comment-form > .comment-form-author,
.kb-comments .comment-form > .comment-form-email,
.kb-comments .comment-form > .comment-form-url {
  grid-column: auto;
}
.kb-comments label {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}
.kb-comments input[type="text"],
.kb-comments input[type="email"],
.kb-comments input[type="url"],
.kb-comments textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: 400 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
}
.kb-comments textarea {
  min-height: 140px;
  resize: vertical;
}
.kb-comments input:focus,
.kb-comments textarea:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
.kb-comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475569;
  font-size: 14px;
}
.kb-comments .comment-form-cookies-consent label {
  margin: 0;
  color: #475569;
  font-weight: 400;
}
.kb-comments .comment-form-cookies-consent input {
  margin-top: 3px;
  accent-color: #4338ca;
}
.kb-comments .form-submit input[type="submit"] {
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff;
  font: 600 15px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.25);
  cursor: pointer;
}
.kb-comments .comment-list {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.kb-comments .comment-body {
  margin: 0 0 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8fafc;
}
.kb-comments .comment-list .children {
  margin: 0 0 0 24px;
  padding: 0;
  list-style: none;
}
.kb-updated {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 14px;
}

/* ---------- Contact and support ---------- */
.kb-main:has(.kb-contact) {
  max-width: 1160px;
}
.kb-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px;
}
.kb-contact__form {
  padding: 40px 44px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(30, 27, 75, 0.1);
}
.kb-contact__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kb-help {
  display: block;
  padding: 22px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
}
.kb-help h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
}
.kb-help h2 .material-symbols-outlined {
  color: #6d28d9;
  font-size: 22px;
}
.kb-help p {
  margin: 0;
}
.kb-help ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}
.kb-help li {
  margin: 0 0 6px;
}
.kb-help li::marker {
  color: #6d28d9;
}
.kb-help a {
  color: #4338ca;
}
.kb-help--link {
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.kb-help--link:hover,
.kb-help--link:focus-visible {
  border-color: #a5b4fc;
  color: #475569;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 27, 75, 0.08);
}
.kb-help__more {
  display: inline-block;
  margin-top: 10px;
  color: #4338ca;
  font-weight: 600;
}
.kb-help--soft {
  border-color: transparent;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

/* Contact Form 7 */
.kb-contact__form .wpcf7 form > p,
.kb-contact__form .wpcf7 form label {
  margin: 0 0 18px;
}
.kb-contact__form .wpcf7 label {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}
.kb-contact__form .wpcf7 br {
  display: none;
}
.kb-contact__form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}
.kb-contact__form .kf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.kb-contact__form .kf-row > p {
  display: contents;
}
.kb-contact__form input[type="text"],
.kb-contact__form input[type="email"],
.kb-contact__form input[type="url"],
.kb-contact__form input[type="tel"],
.kb-contact__form select,
.kb-contact__form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: 400 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kb-contact__form select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.kb-contact__form textarea {
  min-height: 140px;
  resize: vertical;
}
.kb-contact__form input::placeholder,
.kb-contact__form textarea::placeholder {
  color: #94a3b8;
}
.kb-contact__form input:focus,
.kb-contact__form select:focus,
.kb-contact__form textarea:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
.kb-contact__form input[type="file"] {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px dashed #a5b4fc;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
}
.kb-contact__form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
  cursor: pointer;
}
.kb-contact__form .kf-hint {
  margin: -6px 0 18px;
  color: #64748b;
  font-size: 14px;
}
.kb-contact__form .wpcf7-acceptance {
  display: block;
  margin: 4px 0 22px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}
.kb-contact__form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.kb-contact__form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #475569;
  font-weight: 400;
}
.kb-contact__form .wpcf7-acceptance input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #4338ca;
}
.kb-contact__form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff;
  font: 600 16px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 10px 24px rgba(67, 56, 202, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.kb-contact__form .wpcf7-submit:hover,
.kb-contact__form .wpcf7-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(67, 56, 202, 0.35);
}
.kb-contact__form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.kb-contact__form .wpcf7-spinner {
  vertical-align: middle;
}
.kb-contact__form .wpcf7-not-valid {
  border-color: #f87171 !important;
}
.kb-contact__form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
}
.kb-contact__form .wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
}
.kb-contact__form .wpcf7 form.sent .wpcf7-response-output {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.kb-contact__form .wpcf7 form.invalid .wpcf7-response-output,
.kb-contact__form .wpcf7 form.unaccepted .wpcf7-response-output,
.kb-contact__form .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.kb-contact__form .wpcf7 form.failed .wpcf7-response-output,
.kb-contact__form .wpcf7 form.aborted .wpcf7-response-output,
.kb-contact__form .wpcf7 form.spam .wpcf7-response-output {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kb-contact {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 782px) {
  .kb-hero {
    padding: 44px 16px 52px;
  }
  .kb-hero--post,
  .kb-hero--page {
    padding-bottom: 84px;
  }
  .kb-hero__lead {
    font-size: 16px;
  }
  .kb-container {
    padding: 28px 16px 56px;
  }
  .kb-main {
    margin-top: -52px;
    padding: 0 12px 56px;
  }
  .kb-card--featured {
    grid-template-columns: 1fr;
  }
  .kb-card--featured .kb-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .kb-card--featured .kb-card__body {
    padding: 22px 24px 24px;
  }
  .kb-card--featured .kb-card__title {
    font-size: 24px;
  }
  .kb-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .kb-article,
  .kb-page,
  .kb-contact__form {
    padding: 28px 20px;
    border-radius: 18px;
  }
  .kb-article__image {
    margin: -8px -8px 24px;
  }
  .kb-prose {
    font-size: 17px;
  }
  .kb-prose h2 {
    font-size: 24px;
  }
  .kb-postnav {
    grid-template-columns: 1fr;
  }
  .kb-comments .comment-form {
    grid-template-columns: 1fr;
  }
  .kb-postnav__link--next {
    grid-column: auto;
  }
  .kb-contact__form .kf-row {
    grid-template-columns: 1fr;
  }
}
