/* Floating WhatsApp + brief form. Each site sets the --b-* tokens in styles.css. */
.b-modal[hidden], .b-modal [hidden], .wa-fab [hidden] { display: none !important; }

/* ───────── Floating WhatsApp ───────── */
.wa-fab {
  position: fixed; z-index: 150;
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  font-family: var(--b-body, system-ui, sans-serif);
}
.wa-btn { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.wa-label {
  background: #fff; color: #0b2e1a; font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); white-space: nowrap; transition: transform .2s;
}
.wa-circle {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 4px 10px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-circle svg { width: 34px; height: 34px; }
.wa-circle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.2s ease-out infinite; }
@keyframes waRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-btn:hover .wa-circle { transform: scale(1.08); }
.wa-btn:hover .wa-label { transform: translateX(-3px); }
.wa-btn:focus-visible { outline: none; }
.wa-btn:focus-visible .wa-circle { outline: 3px solid #fff; outline-offset: 3px; }
.wa-bubble {
  position: relative; max-width: 270px; background: #fff; color: #1a1a1a; padding: 14px 34px 14px 16px; border-radius: 18px 18px 4px 18px;
  font-size: 14px; line-height: 1.45; box-shadow: 0 16px 40px rgba(0,0,0,.3); animation: bubbleIn .35s ease;
}
.wa-bubble strong { display: block; margin-bottom: 3px; }
.wa-bubble-x { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border: 0; background: none; color: #777; cursor: pointer; font-size: 13px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* ───────── Brief modal ───────── */
.b-modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: 24px max(16px, env(safe-area-inset-left, 0px)); background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.b-panel {
  width: min(100%, 640px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--b-bg); color: var(--b-fg); font-family: var(--b-body); border: var(--b-border); border-radius: var(--b-radius);
  box-shadow: var(--b-shadow); padding: clamp(20px, 4vw, 34px);
}
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.b-step { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--b-accent); }
.b-x { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--b-line); background: none; color: inherit; cursor: pointer; font-size: 14px; }
.b-x:hover { border-color: var(--b-accent); color: var(--b-accent); }
.b-progress { height: 4px; background: var(--b-line); margin: 14px 0 22px; border-radius: 4px; overflow: hidden; }
.b-progress i { display: block; height: 100%; width: 33%; background: var(--b-accent); transition: width .3s; }
.b-title { font-family: var(--b-display); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: .95; letter-spacing: -.005em; }
.b-sub { color: var(--b-mute); margin-top: 8px; font-size: 15px; }
.b-page { border: 0; margin-top: 22px; display: grid; gap: 16px; min-width: 0; }
.b-legend { font-family: var(--b-display); font-size: 26px; line-height: 1; margin-bottom: 4px; padding: 0; }
.b-field { display: grid; gap: 6px; min-width: 0; }
.b-field > span, .b-q { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.b-field input, .b-field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--b-fg); background: var(--b-field);
  border: 1.5px solid var(--b-line); border-radius: var(--b-radius-sm); padding: 12px 14px; resize: vertical;
}
.b-field input:focus, .b-field textarea:focus { outline: none; border-color: var(--b-accent); box-shadow: 0 0 0 3px var(--b-ring); }
.b-field input::placeholder, .b-field textarea::placeholder { color: var(--b-mute); opacity: .8; }
.b-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b-group { display: grid; gap: 8px; }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b-chip { position: relative; cursor: pointer; }
.b-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b-chip span { display: inline-block; padding: 9px 14px; border-radius: var(--b-chip-radius); border: 1.5px solid var(--b-line); font-size: 14px; font-weight: 700; transition: all .15s; user-select: none; }
.b-chip:hover span { border-color: var(--b-fg); }
.b-chip input:checked + span { background: var(--b-accent); border-color: var(--b-accent); color: var(--b-accent-fg); }
.b-chip input:focus-visible + span { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.b-error { margin-top: 16px; padding: 10px 14px; border-radius: var(--b-radius-sm); background: var(--b-ring); color: var(--b-fg); font-weight: 700; font-size: 14px; }
.b-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.b-foot #b-next, .b-foot #b-send { margin-left: auto; }
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 800; font-size: 15px; padding: 14px 22px; border-radius: var(--b-btn-radius); cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: transform .15s, filter .15s; }
.b-btn svg { width: 20px; height: 20px; }
.b-btn-main { background: var(--b-accent); color: var(--b-accent-fg); box-shadow: var(--b-btn-shadow); }
.b-btn-main:hover { transform: translateY(-2px); filter: brightness(1.05); }
.b-btn-main:disabled { opacity: .6; cursor: wait; }
.b-btn-ghost { background: none; color: var(--b-fg); border-color: var(--b-line); }
.b-btn-ghost:hover { border-color: var(--b-fg); }
.b-done { text-align: center; padding: 12px 0 6px; }
.b-check { width: 72px; height: 72px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 800; background: var(--b-accent); color: var(--b-accent-fg); }
.b-done h3 { font-family: var(--b-display); font-weight: 400; font-size: clamp(36px, 5vw, 50px); line-height: 1; }
.b-done p { color: var(--b-mute); margin: 10px auto 22px; max-width: 42ch; }
.b-done .b-btn { background: #25d366; color: #fff; box-shadow: none; }

/* Start-a-website call to action used inside the sites */
.brief-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 30px); }

@media (max-width: 760px) {
  .wa-label { display: none; }
  .wa-bubble { max-width: 230px; font-size: 13px; padding: 12px 30px 12px 14px; }
  .wa-circle { width: 58px; height: 58px; }
  .b-modal { padding: 0; place-items: end stretch; }
  .b-panel { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--b-radius) var(--b-radius) 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
  .b-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-circle::before { animation: none; }
}
