/* ============================================================= */
/*  Smart Drifty — blocks.css                                     */
/*  Chatbot · Trusted/Testimonials · CTA · Footer · Modals/Forms  */
/* ============================================================= */

/* ---------------- CHATBOT ---------------- */
.chatbot { padding-block: var(--space-section); }
.chatbot-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: #faffe8;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 36px;
  padding: clamp(1.3rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}
.chatbot-copy .section-title { margin-bottom: 0.9rem; max-width: 18ch; }
.chatbot-lead { margin-bottom: 1.4rem; }
.checklist { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.6rem; }
.checklist li { display: flex; align-items: center; gap: 0.65rem; color: var(--text-heading); font-weight: 500; }
.checklist svg { width: 20px; height: 20px; color: var(--brand-blue); flex: none; }
.chat-note {
  position: relative;
  font-family: var(--font-hand);
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--brand-blue);
  padding-right: 5rem;
  max-width: 16rem;
}
.note-arrow {
  position: absolute;
  right: 0; bottom: -6px;
  width: 78px; height: 40px;
}

/* chat widget */
.chat-widget {
  background: var(--card-light);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 400px;
}
.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
  overflow-y: auto;
  max-height: 410px;
  scroll-behavior: smooth;
}
.msg { display: flex; gap: 0.55rem; max-width: 86%; align-items: flex-end; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-blue);
  border-radius: 50%;
}
.msg-avatar img { width: 24px; height: auto; }
.msg-content { display: flex; flex-direction: column; gap: 0.2rem; }
.bubble {
  padding: 0.7rem 0.95rem;
  font-size: 0.93rem;
  line-height: 1.45;
}
.msg.bot .bubble {
  background: var(--brand-blue);
  color: #fff;
  border-radius: 16px 16px 16px 5px;
}
.msg.user .bubble {
  background: #F1F1EF;
  color: var(--text-heading);
  border-radius: 16px 16px 5px 16px;
}
.msg-time {
  font-size: 0.66rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.25rem;
}
.msg.user .msg-time { justify-content: flex-end; }
.msg-time .ticks { color: var(--brand-blue); font-weight: 700; letter-spacing: -2px; }

.quick-replies { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.2rem 0 0.2rem 38px; align-self: flex-start; max-width: 100%; }
.qr-btn {
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue);
  background: var(--card-light);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.qr-btn:hover { background: var(--brand-blue); color: #fff; }

.typing .bubble { display: inline-flex; gap: 4px; align-items: center; padding: 0.9rem 1rem; }
.typing .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: blink 1.2s infinite ease-in-out both;
}
.typing .dot:nth-child(2) { animation-delay: 0.18s; }
.typing .dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-input {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem;
  border-top: 1px solid #ECECEA;
  background: var(--card-light);
}
.chat-input input {
  flex: 1;
  border: 1px solid #E2E2E0;
  background: #F7F7F5;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.1rem;
  font-size: 0.92rem;
}
.chat-input input:focus-visible { outline-offset: 0; border-color: var(--brand-blue); }
.chat-send {
  width: 46px; height: 46px; flex: none;
  border: none; border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.chat-send svg { width: 20px; height: 20px; }
.chat-send:hover { background: var(--brand-blue-dark); transform: scale(1.05); }

/* ---------------- TRUSTED / TESTIMONIALS ---------------- */
.trusted { padding-block: var(--space-section); }
.trusted-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.85fr 1.1fr;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: start;
}
.trusted-intro .section-title { margin-bottom: 0.6rem; }
.trusted-lead { color: var(--text-body); font-size: 0.94rem; }
.trusted-main { display: flex; flex-direction: column; gap: 1.4rem; }

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem 1.7rem; }
.logo-item { display: flex; align-items: center; gap: 0.5rem; color: #9c9c9a; }
.logo-item svg { width: 28px; height: 28px; flex: none; }
.logo-item > span {
  display: flex; flex-direction: column;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.72rem; line-height: 1.04; letter-spacing: 0.03em;
  text-transform: uppercase; color: #8f8f8d;
}
.logo-item > span strong { font-weight: 800; color: #828280; }
.logo-item--text .logo-word { font-family: var(--font-heading); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.01em; color: #8f8f8d; }
.logo-item--text .logo-word em { font-style: normal; font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.stat-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-card);
}
.stat-ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--brand-blue);
  margin-bottom: 0.3rem;
}
.stat-ic svg { width: 26px; height: 26px; }
.stat-num { font-family: var(--font-heading); font-weight: 700; font-size: 2.1rem; color: var(--text-heading); line-height: 1; }
.stat-label { font-size: 0.86rem; color: var(--text-body); }

.testimonials {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.7rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.t-quote-mark { color: var(--brand-blue); opacity: 0.55; }
.t-quote-mark svg { width: 38px; height: 38px; }
.t-viewport { flex: 1; display: flex; flex-direction: column; }
.t-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-heading);
  font-weight: 500;
  margin: 0.4rem 0 1.2rem;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.t-person { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.t-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.t-meta { display: flex; flex-direction: column; }
.t-name { font-family: var(--font-heading); font-weight: 600; color: var(--text-heading); }
.t-role { font-size: 0.84rem; color: var(--text-muted); }
.t-text.swap { opacity: 0; transform: translateY(10px); }
.t-dots { display: flex; gap: 0.45rem; margin-top: 1.3rem; }
.t-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: none;
  background: rgba(108, 126, 155, 0.3);
  padding: 0;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.t-dot.active { background: var(--brand-blue); width: 22px; border-radius: 5px; }

/* ---------------- CTA BANNER ---------------- */
.cta { padding-block: clamp(1rem, 2vw, 2rem) var(--space-section); }
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #818BB0 0%, #5A6C89 100%);
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.6rem, 4vw, 3.6rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(108, 126, 155, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cta-mark {
  width: 84px; height: 84px; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.cta-mark img { width: 56%; height: auto; }
.cta-text h2 { color: #fff; font-size: clamp(1.5rem, 1rem + 2vw, 2.3rem); margin-bottom: 0.4rem; }
.cta-text p { color: rgba(255, 255, 255, 0.88); max-width: 32rem; }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--footer-bg); color: var(--text-on-dark-soft); padding-top: clamp(2.5rem, 4vw, 4rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.1fr 1.7fr;
  gap: clamp(1.4rem, 3vw, 2.5rem);
  padding-bottom: 2.5rem;
}
.footer-brand .brand { margin-bottom: 0.7rem; }
.footer-brand .brand-logo { height: 40px; }
.footer-tag { font-size: 0.74rem; letter-spacing: 0.12em; color: var(--text-on-dark-soft); margin-bottom: 1.1rem; }
.socials { display: flex; gap: 0.6rem; }
.social {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social svg { width: 19px; height: 19px; }
.social:hover { background: var(--brand-blue); transform: translateY(-2px); }

.footer-col-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: none; border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-on-dark);
  padding: 0;
  margin-bottom: 1rem;
  cursor: default;
}
.footer-col-head .chev { width: 18px; height: 18px; display: none; }
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a, .footer-links span { font-size: 0.92rem; color: var(--text-on-dark-soft); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--cream); }

.footer-news h3 { color: var(--text-on-dark); font-size: 1.02rem; margin-bottom: 0.5rem; }
.footer-news p { font-size: 0.9rem; margin-bottom: 0.9rem; }
.news-form { display: flex; gap: 0.5rem; }
.news-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.1rem;
  color: #fff;
  font-size: 0.9rem;
}
.news-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.news-send {
  width: 46px; height: 46px; flex: none;
  border: none; border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.news-send svg { width: 19px; height: 19px; }
.news-send:hover { background: var(--brand-blue-dark); transform: scale(1.05); }
.news-msg { font-size: 0.82rem; color: var(--cream); margin-top: 0.6rem; min-height: 1rem; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.4rem;
  font-size: 0.84rem;
}
.footer-legal a:hover { color: var(--cream); }
.footer-bottom .dot { color: rgba(255, 255, 255, 0.4); margin-inline: 0.3rem; }

/* ---------------- MODALS ---------------- */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(35, 35, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.modal-overlay.open { opacity: 1; }
.modal {
  position: relative;
  width: 100%;
  background: var(--card-light);
  border-radius: 30px;
  box-shadow: var(--shadow-pop);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.modal-overlay.open .modal { transform: scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 42px; height: 42px;
  border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-heading);
  display: grid; place-items: center;
  z-index: 5;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.modal-close svg { width: 22px; height: 22px; }
.modal-close:hover { background: rgba(0, 0, 0, 0.12); transform: rotate(90deg); }

/* ---------------- SERVICE MODAL (redesigned) ----------------
   Two-column layout: left = description + "Jak to działa" stepper,
   right = "Dlaczego my?" card + testimonial + CTA.
   Per-card colours are driven by theme classes (.t-01..t-04) that
   override the --m-* custom properties below.                       */
.service-modal-box {
  /* neutral surface tokens (shared) */
  --m-lowest: #ffffff;
  --m-surface: #f9f9f9;
  --m-low: #f3f3f3;
  --m-on: #1a1c1c;
  --m-on-variant: #46474b;
  --m-line: rgba(198, 199, 203, 0.45);
  /* per-theme accent + header (defaults; overridden per .t-0x) */
  --m-primary: #4d4d4e;
  --m-on-primary: #ffffff;
  --m-header-bg: #e2e2e2;
  --m-header-text: #1a1c1c;
  --m-badge-text: #4d4d4e;

  max-width: 1180px;
  /* per-theme decorative background photo (B_*.png) with a light tint fallback */
  background-color: var(--m-canvas, var(--m-lowest));
  background-image: var(--m-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  display: flex;          /* two panes side by side */
  position: relative;     /* anchor the floating close button */
  overflow: hidden;
}

/* per-card themes — background photo + accent that matches each tile.
   Header text is dark on all four because the photos are light/pastel. */
.service-modal-box.t-01 { --m-primary: #444446; --m-header-text: #2E2E34; --m-badge-text: #4A4A4A; --m-bg: url("../assets/B_automat.png"); --m-canvas: #ECECEE; }
.service-modal-box.t-02 { --m-primary: #6F69A6; --m-header-text: #2E2E34; --m-badge-text: #6F69A6; --m-bg: url("../assets/B_strony.png"); --m-canvas: #EFEDF7; }
.service-modal-box.t-03 { --m-primary: #4A4A4A; --m-header-text: #2E2E34; --m-badge-text: #4A4A4A; --m-bg: url("../assets/B_support.png"); --m-canvas: #FBF6DD; }
.service-modal-box.t-04 { --m-primary: #5A6C89; --m-header-text: #2E2E34; --m-badge-text: #5A6C89; --m-bg: url("../assets/B_reklama.png"); --m-canvas: #ECECEE; }

/* head (badge + title) at the top of the left pane, over the photo */
.sm-head {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
  margin-bottom: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
}
.sm-badge {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%;
  background: var(--m-lowest);
  display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.sm-num { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--m-badge-text); }
.sm-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  line-height: 1.15;
  color: var(--m-header-text);
  margin: 0;
}
/* close floats over the whole modal, top-right, on every theme */
.sm-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #3C3C42;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sm-close svg { width: 24px; height: 24px; }
.sm-close:hover { background: #ffffff; transform: rotate(90deg); }

/* two panes: photo side (left) + white content panel (right) */
.sm-pane { min-width: 0; min-height: 0; overflow-y: auto; }
.sm-pane-left {
  flex: 1.22 1 0;
  padding: clamp(1.9rem, 1rem + 3vw, 3rem);
}
.sm-pane-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: clamp(1.9rem, 1rem + 3vw, 2.8rem);
  box-shadow: -20px 0 44px rgba(40, 40, 50, 0.07);
}

/* left column */
.sm-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.5rem);
  line-height: 1.3;
  color: var(--m-on);
  margin-bottom: 0.9rem;
}
.sm-desc { font-size: 1rem; line-height: 1.6; color: var(--m-on-variant); margin-bottom: 2rem; }
.sm-how-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--m-on);
  margin-bottom: 1.5rem;
}

/* stepper */
.sm-steps { position: relative; display: flex; flex-direction: column; gap: 1.5rem; }
.sm-steps-line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--m-line); }
.sm-step { position: relative; z-index: 1; display: flex; gap: 1rem; }
.sm-step-num {
  flex: none;
  width: 40px; height: 40px; margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(198, 199, 203, 0.6);
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--m-on);
}
.sm-step-num.is-active { background: var(--m-primary); border-color: var(--m-primary); color: var(--m-on-primary); }
.sm-step-text h5 { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--m-on); margin-bottom: 0.25rem; }
.sm-step-text p { font-size: 0.9rem; line-height: 1.55; color: var(--m-on-variant); }

/* right pane content ("Dlaczego my?") */
.sm-why-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--m-on); margin-bottom: 1.4rem; }
.sm-feature { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.sm-feature-ic { flex: none; color: var(--m-primary); }
.sm-feature-ic svg { width: 32px; height: 32px; }
.sm-feature-text h5 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--m-on); margin-bottom: 0.25rem; }
.sm-feature-text p { font-size: 0.9rem; line-height: 1.55; color: var(--m-on-variant); }

.sm-quote-box {
  margin-top: 1.6rem;
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
}
.sm-quote { font-size: 1.02rem; font-style: italic; line-height: 1.5; color: var(--m-on-variant); margin-bottom: 0.9rem; }
.sm-quote-author {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--m-on);
}

/* CTA */
.sm-cta-row { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--m-line); }
.sm-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--m-primary);
  color: var(--m-on-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sm-cta svg { width: 22px; height: 22px; transition: transform var(--dur) var(--ease); }
.sm-cta:hover { background: var(--m-on-variant); }
.sm-cta:hover svg { transform: translateX(4px); }

/* ---------------- CONTACT MODAL (matches service modal style) ----------------
   Same design language as the service modal: light header bar with a round
   badge, white scrollable body, soft surfaces and a brand-blue accent.        */
.contact-modal-box {
  /* same look as the thank-you e-mail: cream surface + lavender accent */
  --m-lowest: #ffffff;
  --m-surface: #fffdf6;
  --m-low: #f1e9d3;
  --m-on: #2e2e34;
  --m-on-variant: #57534a;
  --m-line: rgba(180, 168, 138, 0.5);
  --m-primary: #8983B8;
  --m-on-primary: #ffffff;
  --m-header-bg: #F6EFDA;
  --m-header-text: #2E2E34;

  max-width: 900px;
  background-color: #FBF3DE;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  display: flex;          /* form (left) + chat scene (right) */
  overflow: hidden;
}
/* left side: header + scrolling form */
.cm-main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
/* right side: the whole chat scene, filling the panel edge to edge */
.cm-scene {
  flex: none;
  width: clamp(280px, 38%, 380px);
  background: #FBF3DE url("../assets/background_mail.png") center center / cover no-repeat;
}

/* header */
.cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  padding: clamp(1.05rem, 0.8rem + 1vw, 1.45rem) clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  background: var(--m-header-bg);
}
.cm-head-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.cm-badge {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: var(--m-lowest);
  display: grid; place-items: center;
  color: var(--m-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.cm-badge svg { width: 24px; height: 24px; }
.cm-head-text { min-width: 0; }
.cm-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
  line-height: 1.15;
  color: var(--m-header-text);
  margin: 0;
}
.cm-sub { font-size: 0.9rem; line-height: 1.45; color: var(--m-on-variant); margin: 0.25rem 0 0; }

/* body (scrolls inside the modal) */
.cm-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: clamp(1.05rem, 0.8rem + 1.2vw, 1.55rem); }

/* fields */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 0.7rem; display: flex; flex-direction: column; gap: 0.3rem; }
.field label, .field-label { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; color: var(--m-on); }
.field input, .field textarea {
  border: 1.5px solid var(--m-line);
  background: var(--m-surface);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  color: var(--m-on);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 58px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--m-primary); background: var(--m-lowest); }
.field.invalid input, .field.invalid textarea { border-color: #D2645B; background: #FCF3F2; }
.field-error { font-size: 0.8rem; color: #C9554B; min-height: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid var(--m-line);
  background: var(--m-surface);
  border-radius: var(--radius-pill);
  padding: 0.42rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--m-on-variant);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip svg { width: 17px; height: 17px; }
.chip:hover { border-color: var(--m-primary); color: var(--m-primary); }
.chip.active { background: var(--m-primary); border-color: var(--m-primary); color: #fff; }
.chip.active svg { color: #fff; }

/* submit + success close use the shared .sm-cta pill */
.cm-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.sm-cta:disabled { opacity: 0.65; cursor: default; }

.cm-success-view { text-align: center; padding: 1.5rem 0.5rem; }
.cm-success-ic {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  margin: 0 auto 1.3rem;
  background: var(--m-low);
  border-radius: 50%;
  color: var(--m-primary);
}
.cm-success-ic svg { width: 40px; height: 40px; }
.cm-success-view h2 { font-family: var(--font-heading); font-size: 1.7rem; color: var(--m-on); margin-bottom: 0.6rem; }
.cm-success-view p { color: var(--m-on-variant); margin-bottom: 1.6rem; max-width: 30rem; margin-inline: auto; }
