/* ==========================================================================
   BytePressTech Global CSS
   Design tokens → Reset → Base → Typography → Utilities → Accessibility
   ========================================================================== */

/* ── 0. Fallback font size-adjust (reduces CLS when DM Sans loads late) ─── */
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  ascent-override:  93%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust:      104%;
}

/* ── 1. Design Tokens (mirrors plugin CSS variables) ─────────────────────── */
:root {
  /* Backgrounds */
  --bpt-bg:          #0f1117;
  --bpt-surface:     #181c27;
  --bpt-surface-2:   #1e2333;
  --bpt-surface-3:   #252a3d;

  /* Borders */
  --bpt-border:      rgba(255, 255, 255, .07);
  --bpt-border-light:rgba(255, 255, 255, .12);

  /* Accent — Indigo */
  --bpt-accent:      #6366f1;
  --bpt-accent-h:    #818cf8;
  --bpt-accent-dim:  rgba(99, 102, 241, .15);
  --bpt-accent-glow: rgba(99, 102, 241, .25);

  /* Semantic colours */
  --bpt-success:     #10b981;
  --bpt-success-dim: rgba(16, 185, 129, .15);
  --bpt-warning:     #f59e0b;
  --bpt-warning-dim: rgba(245, 158, 11, .12);
  --bpt-danger:      #f43f5e;
  --bpt-danger-dim:  rgba(244, 63, 94, .12);
  --bpt-sky:         #38bdf8;

  /* Text */
  --bpt-text:        #e2e8f0;
  --bpt-text-2:      #94a3b8;
  --bpt-text-3:      #64748b;

  /* Typography */
  --bpt-font:        'DM Sans', 'DM Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bpt-mono:        'DM Mono', 'Courier New', Courier, monospace;

  /* Sizing */
  --bpt-radius:      10px;
  --bpt-radius-lg:   16px;
  --bpt-radius-sm:   6px;
  --bpt-radius-xl:   24px;

  /* Shadows */
  --bpt-shadow:      0 4px 24px rgba(0, 0, 0, .4);
  --bpt-shadow-sm:   0 2px 8px  rgba(0, 0, 0, .3);
  --bpt-shadow-lg:   0 8px 40px rgba(0, 0, 0, .5);

  /* Motion */
  --bpt-t:           .18s cubic-bezier(.4, 0, .2, 1);
  --bpt-t-slow:      .35s cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --bpt-max-width:   1200px;
  --bpt-content-width: 860px;
  --bpt-gap:         clamp(1rem, 3vw, 2rem);
  --bpt-header-h:    72px;
}

/* ── 2. Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size:        100%;
  scroll-behavior:  smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* NOTE: do NOT set overflow-x here — it breaks position:fixed on mobile */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family:      var(--bpt-font);
  font-size:        clamp(15px, 1vw + 12px, 17px);
  line-height:      1.7;
  color:            var(--bpt-text);
  background-color: var(--bpt-bg);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x:       hidden;
}

img, video, svg, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a {
  color: var(--bpt-accent-h);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--bpt-t), opacity var(--bpt-t);
}
a:hover { color: var(--bpt-text); }

button, [type="button"], [type="reset"], [type="submit"] {
  cursor: pointer;
  font-family: inherit;
}

ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select, button { font: inherit; }
fieldset { border: none; }
address { font-style: normal; }

/* ── 3. Typography base ───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family:  var(--bpt-font);
  font-weight:  600;
  line-height:  1.25;
  color:        var(--bpt-text);
  letter-spacing: -.02em;
}

h1 { font-size: clamp(1.75rem, 4vw + .5rem, 3rem); }
h2 { font-size: clamp(1.4rem,  3vw + .4rem, 2.25rem); }
h3 { font-size: clamp(1.2rem,  2vw + .4rem, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.5vw + .3rem, 1.3rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { max-width: 100%; }

/* Prose (inside .bpt-single__content / .bpt-page__content) */
.bpt-prose h2, .bpt-prose h3, .bpt-prose h4 { margin-top: 2.5rem; margin-bottom: .75rem; }
.bpt-prose p, .bpt-prose ul, .bpt-prose ol, .bpt-prose blockquote,
.bpt-single__content p, .bpt-single__content ul, .bpt-single__content ol,
.bpt-single__content blockquote,
.bpt-page__content p, .bpt-page__content ul, .bpt-page__content ol {
  margin-bottom: 1.5rem;
}
.bpt-single__content ul,  .bpt-page__content ul  { list-style: disc;    padding-left: 1.5rem; }
.bpt-single__content ol,  .bpt-page__content ol  { list-style: decimal; padding-left: 1.5rem; }
.bpt-single__content li,  .bpt-page__content li  { margin-bottom: .4rem; }
.bpt-single__content a,   .bpt-page__content a   { text-decoration: underline; }
.bpt-single__content strong, .bpt-page__content strong { color: var(--bpt-text); font-weight: 600; }
.bpt-single__content em,     .bpt-page__content em     { font-style: italic; color: var(--bpt-text-2); }
.bpt-single__content code {
  font-family:    var(--bpt-mono);
  font-size:      .875em;
  background:     var(--bpt-surface-3);
  border:         1px solid var(--bpt-border-light);
  border-radius:  var(--bpt-radius-sm);
  padding:        .15em .4em;
  color:          var(--bpt-accent-h);
}
.bpt-single__content pre {
  background:     var(--bpt-surface);
  border:         1px solid var(--bpt-border);
  border-radius:  var(--bpt-radius);
  padding:        1.25rem;
  overflow-x:     auto;
  margin-bottom:  1.5rem;
}
.bpt-single__content pre code {
  background: none;
  border:     none;
  padding:    0;
  color:      var(--bpt-text);
  font-size:  .875rem;
}
.bpt-single__content blockquote, .bpt-page__content blockquote {
  border-left:  3px solid var(--bpt-accent);
  padding-left: 1.25rem;
  color:        var(--bpt-text-2);
  font-style:   italic;
  margin:       1.5rem 0;
}
.bpt-single__content hr, .bpt-page__content hr {
  border: none;
  border-top: 1px solid var(--bpt-border);
  margin: 2.5rem 0;
}
.bpt-single__content table, .bpt-page__content table {
  font-size: .9rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--bpt-border);
  border-radius: var(--bpt-radius);
  overflow: hidden;
}
.bpt-single__content th, .bpt-page__content th {
  background: var(--bpt-surface-2);
  color: var(--bpt-text-2);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .6rem 1rem;
  text-align: left;
}
.bpt-single__content td, .bpt-page__content td {
  padding: .6rem 1rem;
  border-top: 1px solid var(--bpt-border);
}

/* ── 4. Layout containers ─────────────────────────────────────────────────── */
.bpt-container {
  width: 100%;
  max-width: var(--bpt-max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.bpt-container--narrow {
  max-width: var(--bpt-content-width);
}

.bpt-site {
  display:    flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
}
.bpt-main { flex: 1; padding-block: clamp(2rem, 6vw, 4rem); }

/* ── 5. Utilities ─────────────────────────────────────────────────────────── */

/* Screen-reader only (also used by WP) */
.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.screen-reader-text:focus {
  background: var(--bpt-surface);
  clip: auto !important;
  clip-path: none !important;
  color: var(--bpt-accent-h);
  display: block;
  font-size: .875rem;
  font-weight: 700;
  height: auto !important;
  left: 6px;
  line-height: normal;
  padding: 1rem 2rem;
  text-decoration: none;
  top: 6px;
  width: auto !important;
  z-index: 100000;
  border-radius: var(--bpt-radius-sm);
  box-shadow: var(--bpt-shadow);
}

/* Skip links */
.bpt-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--bpt-accent);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: var(--bpt-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.bpt-skip-link:focus { top: 1rem; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--bpt-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── 6. Shared components ────────────────────────────────────────────────── */

/* Buttons */
.bpt-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--bpt-radius);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: all var(--bpt-t);
  text-decoration: none;
  white-space: nowrap;
}
.bpt-btn--primary {
  background: linear-gradient(135deg, var(--bpt-accent), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px var(--bpt-accent-glow);
}
.bpt-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--bpt-accent-glow); color: #fff; }
.bpt-btn--primary:active { transform: translateY(0); }
.bpt-btn--secondary {
  background: var(--bpt-surface-2);
  border: 1px solid var(--bpt-border-light);
  color: var(--bpt-text-2);
}
.bpt-btn--secondary:hover { background: var(--bpt-surface-3); color: var(--bpt-text); }

/* Badges */
.bpt-badge {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--bpt-t);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bpt-badge--cat {
  background: var(--bpt-accent-dim);
  color: var(--bpt-accent-h);
  border: 1px solid rgba(99, 102, 241, .25);
}
.bpt-badge--cat:hover { background: var(--bpt-accent); color: #fff; }
.bpt-badge--tag {
  background: var(--bpt-surface-2);
  color: var(--bpt-text-2);
  border: 1px solid var(--bpt-border);
}
.bpt-badge--tag:hover { border-color: var(--bpt-accent); color: var(--bpt-accent-h); }

/* Pagination */
.bpt-pagination { margin-top: 3rem; }
.bpt-pagination .nav-links { display: flex; align-items: center; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.bpt-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem;
  border-radius: var(--bpt-radius-sm);
  background: var(--bpt-surface-2);
  border: 1px solid var(--bpt-border);
  color: var(--bpt-text-2);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--bpt-t);
}
.bpt-pagination .page-numbers:hover { border-color: var(--bpt-accent); color: var(--bpt-accent-h); }
.bpt-pagination .page-numbers.current { background: var(--bpt-accent); border-color: var(--bpt-accent); color: #fff; }
.bpt-pagination .page-numbers.dots { background: transparent; border-color: transparent; color: var(--bpt-text-3); }
.bpt-pagination .prev, .bpt-pagination .next { gap: .35rem; }

/* Search form */
.search-form { display: flex; gap: .5rem; }
.search-field {
  flex: 1; padding: .75rem 1rem;
  background: var(--bpt-surface-2);
  border: 1px solid var(--bpt-border-light);
  border-radius: var(--bpt-radius);
  color: var(--bpt-text);
  font-size: .9rem;
  transition: border-color var(--bpt-t), box-shadow var(--bpt-t);
}
.search-field::placeholder { color: var(--bpt-text-3); }
.search-field:focus { outline: none; border-color: var(--bpt-accent); box-shadow: 0 0 0 3px var(--bpt-accent-dim); }
.search-submit {
  padding: .75rem 1.25rem;
  background: var(--bpt-accent);
  color: #fff;
  border: none;
  border-radius: var(--bpt-radius);
  font-weight: 600;
  font-size: .875rem;
  transition: all var(--bpt-t);
}
.search-submit:hover { background: var(--bpt-accent-h); }

/* Breadcrumbs */
.bpt-breadcrumbs { margin-bottom: 2rem; }
.bpt-breadcrumb__list { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem; list-style: none; padding: 0; }
.bpt-breadcrumb__item a { font-size: .8rem; color: var(--bpt-text-2); text-decoration: none; transition: color var(--bpt-t); }
.bpt-breadcrumb__item a:hover { color: var(--bpt-accent-h); }
.bpt-breadcrumb__item--current span { font-size: .8rem; color: var(--bpt-text-2); }
.bpt-breadcrumb__sep span {
  font-size:     .8rem;
  color:         var(--bpt-accent);
  opacity:       .55;
  padding-inline: .2rem;
  font-weight:   300;
  user-select:   none;
}
.bpt-breadcrumb__sep { display: flex; align-items: center; color: var(--bpt-text-3); }

/* No results */
.bpt-no-results { text-align: center; padding: 4rem 1rem; max-width: 480px; margin: 0 auto; }
.bpt-no-results__title { font-size: 1.5rem; margin-bottom: .75rem; }
.bpt-no-results__desc { color: var(--bpt-text-2); margin-bottom: 2rem; }

/* Back-to-top */
.bpt-back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 9998;
  width: 44px; height: 44px;
  background: var(--bpt-surface-2);
  border: 1px solid var(--bpt-border-light);
  border-radius: var(--bpt-radius);
  color: var(--bpt-text-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--bpt-shadow);
  transition: all var(--bpt-t);
  opacity: 0; pointer-events: none;
}
.bpt-back-to-top:not([hidden]) { opacity: 1; pointer-events: auto; }
.bpt-back-to-top:hover { background: var(--bpt-accent); border-color: var(--bpt-accent); color: #fff; transform: translateY(-2px); }
@media (max-width: 768px) { .bpt-back-to-top { bottom: 1.25rem; right: 1.25rem; } }

/* ── 7. Dark-theme forms ─────────────────────────────────────────────────── */

/* Base inputs, textarea, select */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  width:         100%;
  padding:       .7rem 1rem;
  background:    var(--bpt-surface-2);
  border:        1px solid var(--bpt-border-light);
  border-radius: var(--bpt-radius);
  color:         var(--bpt-text);
  font:          inherit;
  font-size:     .9rem;
  line-height:   1.5;
  transition:    border-color var(--bpt-t), box-shadow var(--bpt-t);
  -webkit-appearance: none;
  appearance:    none;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--bpt-text-3);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline:      none;
  border-color: var(--bpt-accent);
  box-shadow:   0 0 0 3px var(--bpt-accent-dim);
}
textarea {
  resize:     vertical;
  min-height: 130px;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right .85rem center;
  padding-right:       2.5rem;
}

/* Labels */
label {
  display:     block;
  font-size:   .875rem;
  font-weight: 500;
  color:       var(--bpt-text-2);
  margin-bottom: .4rem;
}

/* Submit buttons (generic form submit) */
input[type="submit"],
button[type="submit"] {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  padding:       .75rem 1.75rem;
  background:    linear-gradient(135deg, var(--bpt-accent), #7c3aed);
  color:         #fff;
  border:        none;
  border-radius: var(--bpt-radius);
  font-size:     .9rem;
  font-weight:   600;
  cursor:        pointer;
  transition:    all var(--bpt-t);
  box-shadow:    0 4px 14px var(--bpt-accent-glow);
  width:         auto;
}
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform:  translateY(-1px);
  box-shadow: 0 6px 20px var(--bpt-accent-glow);
}
input[type="submit"]:active,
button[type="submit"]:active {
  transform: translateY(0);
}

/* WordPress comment form -------------------------------------------------- */
.comment-respond {
  margin-top:    3rem;
  padding-top:   2.5rem;
  border-top:    1px solid var(--bpt-border);
}

#reply-title {
  font-size:     1.25rem;
  margin-bottom: 1.5rem;
  color:         var(--bpt-text);
}
#reply-title .small { font-size: .8rem; font-weight: 400; }
#reply-title .small a {
  color:           var(--bpt-accent-h);
  text-decoration: none;
  margin-left:     .5rem;
  font-size:       .8rem;
}

#commentform {
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  display: flex;
  flex-direction: column;
}

/* Inline author + email + url on wider screens */
@media (min-width: 640px) {
  .comment-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.comment-form-comment textarea#comment {
  min-height: 150px;
}

/* Cookie consent checkbox row */
.comment-form-cookies-consent {
  display:     flex;
  align-items: flex-start;
  gap:         .6rem;
  font-size:   .85rem;
  color:       var(--bpt-text-3);
}
.comment-form-cookies-consent input[type="checkbox"] {
  width:         16px;
  height:        16px;
  min-width:     16px;
  margin-top:    2px;
  padding:       0;
  accent-color:  var(--bpt-accent);
  cursor:        pointer;
  border-radius: 3px;
}

.form-submit { margin: 0; }
.form-submit #submit {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  padding:       .75rem 1.75rem;
  background:    linear-gradient(135deg, var(--bpt-accent), #7c3aed);
  color:         #fff;
  border:        none;
  border-radius: var(--bpt-radius);
  font-size:     .9rem;
  font-weight:   600;
  cursor:        pointer;
  transition:    all var(--bpt-t);
  box-shadow:    0 4px 14px var(--bpt-accent-glow);
  width:         auto;
}
.form-submit #submit:hover {
  transform:  translateY(-1px);
  box-shadow: 0 6px 20px var(--bpt-accent-glow);
}

/* ── 8. WP Alignment helpers ─────────────────────────────────────────────── */
.alignleft  { float: left; margin-right: 2rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 2rem; margin-bottom: 1rem; }
.aligncenter { margin-inline: auto; text-align: center; display: block; }
.alignwide  { max-width: calc(var(--bpt-max-width) + 8rem); margin-inline: auto; }
.alignfull  { max-width: none; margin-inline: calc(-1 * clamp(1rem, 5vw, 2rem)); }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin-inline: 0; } }

/* ── 9. WordPress core classes ───────────────────────────────────────────── */
.sticky .bpt-card-post__title::before {
  content: '📌 ';
  font-size: .875em;
}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--bpt-text-3); text-align: center; margin-top: .4rem; }
.gallery { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--bpt-radius-sm); }

/* ── 10. Shared pattern backgrounds ─────────────────────────────────────── */

/* Dot-grid overlay — add to a section's ::before pseudo-element or directly */
.bpt-pattern-dots {
  position: relative;
  isolation: isolate;
}
.bpt-pattern-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(99,102,241,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Cross-hatch line grid overlay */
.bpt-pattern-grid {
  position: relative;
  isolation: isolate;
}
.bpt-pattern-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Diagonal lines */
.bpt-pattern-lines {
  position: relative;
  isolation: isolate;
}
.bpt-pattern-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(99,102,241,.06) 18px,
    rgba(99,102,241,.06) 19px
  );
  pointer-events: none;
}

/* Subtle surface tint for non-hero sections */
.bpt-surface-accent {
  background: linear-gradient(
    160deg,
    rgba(99,102,241,.04) 0%,
    transparent 60%
  );
}

/* ── 11. CF7 submit — disabled/submitting state ──────────────────────────── */
input[type="submit"]:disabled,
.wpcf7-submit:disabled {
  opacity:        .7;
  cursor:         not-allowed;
  pointer-events: none;
}

/* ── 12. CF7 response message styles ─────────────────────────────────────── */

/* Shared output box */
.wpcf7-response-output {
  margin-top:    1.25rem !important;
  margin-bottom: 0 !important;
  padding:       .85rem 1.1rem !important;
  border-radius: var(--bpt-radius) !important;
  font-size:     .875rem !important;
  font-weight:   500 !important;
  border:        none !important;
  display:       flex !important;
  align-items:   flex-start !important;
  gap:           .6rem !important;
  line-height:   1.5 !important;
}

/* Success */
.wpcf7-form.sent .wpcf7-response-output {
  background:   rgba(16,185,129,.12) !important;
  color:        #6ee7b7 !important;
  border-left:  3px solid #10b981 !important;
  border-radius: var(--bpt-radius) !important;
}
.wpcf7-form.sent .wpcf7-response-output::before {
  content: '✓';
  font-weight: 700;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Error / failed */
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  background:  rgba(239,68,68,.12) !important;
  color:       #fca5a5 !important;
  border-left: 3px solid #ef4444 !important;
}
.wpcf7-form.failed .wpcf7-response-output::before,
.wpcf7-form.aborted .wpcf7-response-output::before {
  content: '✕';
  font-weight: 700;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Spam / invalid */
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
  background:  rgba(245,158,11,.12) !important;
  color:       #fcd34d !important;
  border-left: 3px solid #f59e0b !important;
}
.wpcf7-form.spam .wpcf7-response-output::before,
.wpcf7-form.invalid .wpcf7-response-output::before,
.wpcf7-form.unaccepted .wpcf7-response-output::before {
  content: '⚠';
  font-weight: 700;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Inline field validation errors */
.wpcf7-not-valid-tip {
  display:    block;
  margin-top: .3rem;
  font-size:  .78rem;
  color:      #f87171;
  font-weight: 500;
}

/* Mark invalid fields */
.wpcf7-not-valid input,
.wpcf7-not-valid textarea,
.wpcf7-not-valid select {
  border-color: #ef4444 !important;
  box-shadow:   0 0 0 3px rgba(239,68,68,.15) !important;
}
