/* =====================================================================
   Sinova Chat — Styles
   Self-contained. All classes prefixed sv-* to avoid collisions.
   ===================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500&display=swap');

/* ---------- Design tokens (scoped to widget root) ---------- */
.sv-chat {
  /* Palette aligned with .btn-whatsapp on sinovacare.com — chat-app feel */
  --sv-primary:       rgb(58, 155, 138);      /* site's "Ask on WhatsApp" green */
  --sv-primary-hover: rgb(45, 135, 120);
  --sv-primary-soft:  rgba(58, 155, 138, 0.12);
  --sv-on-primary:    #ffffff;
  --sv-ink:           #1a1a18;
  --sv-ink-soft:      #2d2925;
  --sv-muted:         #87867f;
  --sv-border:        #e8e6dc;
  --sv-border-strong: #d6d3c0;
  --sv-surface:       #ffffff;                 /* chat surface (header/input) */
  --sv-bg:            #efeae2;                 /* WhatsApp-style beige for messages */
  --sv-user-bubble:   #d9fdd3;                 /* WhatsApp outgoing-message green */
  --sv-user-ink:      #0b1f14;
  --sv-danger:        #dc2626;
  --sv-radius:        20px;
  --sv-shadow:        0 10px 40px rgba(26, 26, 24, 0.12), 0 2px 8px rgba(26, 26, 24, 0.04);
  font-family:        'Figtree', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ---------- Floating launcher ---------- */
.sv-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--sv-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(58, 155, 138, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sv-launcher:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(58, 155, 138, 0.5);
}
.sv-launcher svg { width: 26px; height: 26px; }
.sv-launcher-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--sv-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.sv-launcher.sv-hidden { display: none; }

/* ---------- Peek bubble (mobile auto-open mini preview) ---------- */
.sv-peek {
  position: fixed;
  right: 16px;
  bottom: 88px;
  left: 16px;
  margin-left: auto;
  z-index: 99998;
  max-width: 320px;
  padding: 14px 14px 12px;
  background: #fff;
  color: var(--sv-ink);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sv-peek.sv-peek-enter {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.sv-peek.sv-hidden { display: none; }
.sv-peek::after {
  content: '';
  position: absolute;
  right: 24px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.04);
}
.sv-peek-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--sv-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}
.sv-peek-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--sv-ink);
}
.sv-peek-greeting {
  padding: 8px 32px 8px 2px;
  color: var(--sv-ink);
  font-size: 13.5px;
  line-height: 1.45;
}
.sv-peek-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.sv-peek-btn {
  padding: 9px 10px;
  background: #fff;
  color: var(--sv-primary);
  border: 1.5px solid var(--sv-primary);
  border-radius: 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: normal;
}
.sv-peek-btn:hover,
.sv-peek-btn:active {
  background: var(--sv-primary);
  color: var(--sv-on-primary);
}
.sv-peek-btn-secondary {
  grid-column: 1 / -1;
  color: var(--sv-muted);
  border-color: var(--sv-border-strong);
  text-align: center;
}
.sv-peek-btn-secondary:hover,
.sv-peek-btn-secondary:active {
  background: var(--sv-primary-soft);
  color: var(--sv-ink);
  border-color: var(--sv-primary);
}

/* ---------- Chat window ---------- */
.sv-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 48px);
  background: var(--sv-surface);
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sv-window.sv-open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 520px) {
  .sv-window {
    bottom: 0; right: 0;
    width: 100%; max-width: 100%;
    height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .sv-launcher { bottom: 16px; right: 16px; }
}

/* ---------- Header (chat-app style green bar) ---------- */
.sv-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 12px;
  background: var(--sv-primary);
  color: var(--sv-on-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.sv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sv-primary);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  flex-shrink: 0;
}
.sv-avatar-status {
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid var(--sv-primary);
}
.sv-avatar.sv-avatar-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}
.sv-header-text { flex: 1; min-width: 0; }
.sv-header-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.sv-header-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sv-header-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}
.sv-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  transition: background 0.15s ease, color 0.15s ease;
}
.sv-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.sv-close svg { width: 18px; height: 18px; }

/* ---------- Messages area ---------- */
.sv-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 12px;
  background: var(--sv-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.sv-messages::-webkit-scrollbar { width: 6px; }
.sv-messages::-webkit-scrollbar-thumb { background: var(--sv-border-strong); border-radius: 3px; }

/* ---------- Message bubbles ---------- */
.sv-msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 85%;
  animation: sv-fadeInUp 0.3s ease-out;
  position: relative;
}
@keyframes sv-fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sv-msg-bot  { align-self: flex-start; }
.sv-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.sv-bubble {
  padding: 11px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  word-wrap: break-word;
}
.sv-msg-bot .sv-bubble {
  background: #fff;
  color: var(--sv-ink);
  border: 1px solid var(--sv-border);
  border-bottom-left-radius: 6px;
}
.sv-msg-user .sv-bubble {
  background: var(--sv-user-bubble);
  color: var(--sv-user-ink);
  border-bottom-right-radius: 6px;
}
.sv-bubble strong { font-weight: 600; }
.sv-bubble em { font-style: italic; color: var(--sv-primary); }
.sv-msg-user .sv-bubble em { color: var(--sv-primary-hover); text-decoration: underline; }

/* ---------- Bot media card (idle brochure offer) ---------- */
.sv-msg-card { max-width: 82%; }
.sv-msg-card .sv-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--sv-border);
  border-radius: 14px;
  border-bottom-left-radius: 6px;
}
.sv-card-cover {
  flex: 0 0 auto;
  width: 64px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  background: #ece3d0;
  box-shadow: 0 4px 10px rgba(45, 30, 10, 0.18),
              0 1px 3px rgba(45, 30, 10, 0.12);
}
.sv-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.sv-card-kicker {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sv-ink);
  line-height: 1.25;
}
.sv-card-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sv-muted);
}

/* Hero variant — used for the idle-offer takeover. Full-width cover. */
.sv-msg-card-hero {
  align-self: stretch;
  max-width: 100%;
  width: 100%;
}
.sv-msg-card-hero .sv-card {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 12px;
  padding: 0 0 14px;
  background: #faf5e8;
  border-radius: 10px;
  overflow: hidden;
}
.sv-msg-card-hero .sv-card-cover {
  width: 100%;
  height: auto;
  max-height: 320px;
  border-radius: 0;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 10px 20px rgba(45, 30, 10, 0.18);
}
.sv-msg-card-hero .sv-card-text {
  gap: 4px;
  align-items: center;
  padding: 0 16px;
}
.sv-msg-card-hero .sv-card-kicker { font-size: 15px; }
.sv-msg-card-hero .sv-card-meta   { font-size: 10.5px; letter-spacing: 0.24em; }

/* Takeover: hide everything else in the chat so the brochure sits alone. */
.sv-hidden-by-offer { display: none !important; }

/* ---------- Editable user bubble ---------- */
.sv-msg-user.sv-editable {
  cursor: pointer;
}
.sv-msg-user.sv-editable .sv-bubble {
  transition: background 0.15s ease, transform 0.15s ease;
}
.sv-msg-user.sv-editable:hover .sv-bubble {
  background: #c9f5c2;
  transform: translateX(-2px);
}
.sv-edit-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--sv-border);
  color: var(--sv-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}
.sv-edit-icon svg { width: 12px; height: 12px; }
.sv-msg-user.sv-editable:hover .sv-edit-icon {
  opacity: 1;
  background: var(--sv-primary-soft);
  color: var(--sv-primary);
}

/* Show edit icon always on touch devices (no hover) */
@media (hover: none) {
  .sv-msg-user.sv-editable .sv-edit-icon { opacity: 0.7; }
}

/* ---------- Typing indicator ---------- */
.sv-typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--sv-border);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  max-width: 85%;
  animation: sv-fadeInUp 0.2s ease-out;
}
.sv-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sv-muted);
  animation: sv-bounce 1.2s infinite ease-in-out;
}
.sv-typing span:nth-child(2) { animation-delay: 0.15s; }
.sv-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes sv-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* ---------- Input area ---------- */
.sv-input-area {
  padding: 14px 16px;
  background: var(--sv-surface);
  border-top: 1px solid var(--sv-border);
  flex-shrink: 0;
}
/* Collapse entirely on steps that have no text input (button-only steps render
   their buttons inside the messages column, leaving this container empty). */
.sv-input-area:empty { display: none; }
.sv-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: sv-fadeInUp 0.3s ease-out;
}
.sv-buttons-inline {
  align-self: stretch;             /* fill bubble column so 2 cols breathe */
  margin-top: -4px;                /* tighten gap to the bot message above */
  padding-left: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sv-buttons-inline .sv-btn {
  white-space: normal;             /* allow long labels to wrap instead of overflow */
  padding: 10px 14px;
}
.sv-buttons-inline .sv-btn-span {
  grid-column: 1 / -1;             /* own row */
  justify-self: center;            /* centered on the row */
  width: calc(50% - 3px);          /* match a single grid cell (2 cols, 6px gap) */
}
.sv-buttons-footer {
  grid-column: 1 / -1;             /* span full grid width */
  justify-self: start;
  margin-top: 2px;
  padding: 6px 2px;
  font-size: 12.5px;
  color: var(--sv-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sv-buttons-footer:hover,
.sv-buttons-footer:focus {
  color: var(--sv-primary);
  text-decoration: underline;
}
.sv-btn {
  padding: 10px 16px;
  background: #fff;
  color: var(--sv-primary);
  border: 1.5px solid var(--sv-primary);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.sv-btn:hover {
  background: var(--sv-primary);
  color: #fff;
  transform: translateY(-1px);
}
.sv-btn.sv-btn-secondary {
  border-color: var(--sv-border-strong);
  color: var(--sv-muted);
}
.sv-btn.sv-btn-secondary:hover {
  background: var(--sv-bg);
  color: var(--sv-ink);
  border-color: var(--sv-muted);
}
.sv-btn.sv-btn-primary {
  background: var(--sv-primary);
  color: #fff;
}
.sv-btn.sv-btn-primary:hover {
  background: var(--sv-primary-hover);
}
.sv-btn.sv-btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Bot download-link bubble (post brochure capture) ---------- */
.sv-msg-download { align-self: flex-start; max-width: 82%; }
.sv-download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--sv-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(45, 30, 10, 0.16);
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.sv-download-link:hover,
.sv-download-link:focus {
  background: var(--sv-primary-hover, var(--sv-primary));
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.sv-download-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.sv-download-icon svg {
  width: 100%;
  height: 100%;
}
.sv-download-label { white-space: nowrap; }

/* ---------- Inline brochure offer (idle nudge email form) ---------- */
.sv-brochure-email-form {
  align-self: stretch;
  margin-top: 6px;
  padding-left: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: sv-fadeInUp 0.3s ease-out;
}
.sv-brochure-email-input {
  padding: 12px 16px;
  border: 1.5px solid var(--sv-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--sv-ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}
.sv-brochure-email-input:focus { border-color: var(--sv-primary); }
.sv-brochure-email-input::placeholder { color: var(--sv-muted); }
.sv-brochure-email-input.sv-input-invalid {
  border-color: var(--sv-danger);
  animation: sv-shake 0.3s ease-out;
}
.sv-brochure-email-error {
  min-height: 1em;
  font-size: 12.5px;
  color: var(--sv-danger);
  padding-left: 14px;
}
.sv-brochure-email-error:empty { display: none; }

.sv-brochure-skip-btn {
  align-self: center;
  margin-top: 2px;
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: var(--sv-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.sv-brochure-skip-btn:hover,
.sv-brochure-skip-btn:focus-visible {
  color: var(--sv-ink);
  background: rgba(0,0,0,0.04);
  outline: none;
}
.sv-brochure-skip-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---------- Text input ---------- */
.sv-form {
  display: flex;
  gap: 8px;
  animation: sv-fadeInUp 0.3s ease-out;
}
.sv-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--sv-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--sv-ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}
.sv-form input:focus { border-color: var(--sv-primary); }
.sv-form input::placeholder { color: var(--sv-muted); }
.sv-form input.sv-input-invalid {
  border-color: var(--sv-danger);
  animation: sv-shake 0.3s ease-out;
}
@keyframes sv-shake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-3px); }
  75%     { transform: translateX(3px); }
}

/* ---------- Phone input with country picker ---------- */
.sv-form-phone {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid var(--sv-border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.sv-form-phone:focus-within {
  border-color: var(--sv-primary);
}
.sv-form-with-country .sv-form-phone input {
  border: 0;
  border-radius: 0;
  padding: 12px 14px 12px 10px;
  flex: 1;
  min-width: 0;
  background: transparent;
}
.sv-form-with-country .sv-form-phone input:focus { border: 0; }
.sv-form-country {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 14px;
  border: 0;
  border-right: 1px solid var(--sv-border);
  background: transparent;
  color: var(--sv-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease;
}
.sv-form-country:hover { background: rgba(0, 0, 0, 0.03); }
.sv-form-country:active { background: rgba(0, 0, 0, 0.06); }
.sv-form-country-display { line-height: 1; }
.sv-form-country-caret {
  width: 10px;
  height: 7px;
  color: var(--sv-muted);
  flex-shrink: 0;
}
.sv-form-submit {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: none;
  background: var(--sv-primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sv-form-submit:hover { background: var(--sv-primary-hover); transform: scale(1.05); }
.sv-form-submit svg {
  width: 18px;
  height: 18px;
  /* The paper-airplane glyph has its visual mass in the upper-right; nudge
     down-left so it optically centres inside the round button. */
  transform: translate(-1px, 1px);
}
.sv-form-submit[disabled],
.sv-form-submit.sv-is-loading {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.sv-form-submit[disabled]:hover { background: var(--sv-primary); transform: none; }
.sv-form input:disabled { background: var(--sv-bg); color: var(--sv-muted); cursor: not-allowed; }

/* Submit button spinner — only visible while loading */
.sv-form-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: sv-spin 0.8s linear infinite;
}
.sv-form-submit.sv-is-loading .sv-form-submit-icon { display: none; }
.sv-form-submit.sv-is-loading .sv-form-spinner    { display: block; }
@keyframes sv-spin { to { transform: rotate(360deg); } }

.sv-form-verifying {
  color: var(--sv-muted);
  font-size: 12px;
  margin-top: 8px;
  padding: 0 8px;
  line-height: 1.3;
  min-height: 0;
}
.sv-form-verifying:empty { display: none; }

.sv-form-error {
  color: var(--sv-danger);
  font-size: 12px;
  margin-top: 8px;
  padding: 0 8px;
  min-height: 16px;
  line-height: 1.3;
}
.sv-form-error:empty { display: none; margin-top: 0; min-height: 0; }

/* ---------- Completion ---------- */
.sv-complete {
  text-align: center;
  padding: 20px 12px 8px;
  animation: sv-fadeInUp 0.3s ease-out;
}
.sv-complete-check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sv-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sv-primary);
  animation: sv-pop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes sv-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.sv-complete-check svg { width: 28px; height: 28px; }
.sv-complete h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--sv-ink);
  letter-spacing: -0.01em;
}
.sv-complete p {
  font-size: 14px;
  color: var(--sv-ink-soft);
  line-height: 1.55;
  margin: 0 0 20px;
}
.sv-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Completion brochure CTA (end of flow) ---------- */
.sv-brochure-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 16px;
  background: linear-gradient(180deg, rgba(58,155,138,0.05), rgba(58,155,138,0)), #fbfaf5;
  border: 1px solid var(--sv-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(30,28,21,.04), 0 4px 12px rgba(30,28,21,.05);
}
.sv-brochure-cover {
  width: 76px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  background: #ede6d6;
  transform: rotate(-2deg);
  box-shadow: 0 8px 22px rgba(30,28,21,.12), 0 1px 2px rgba(30,28,21,.1);
  transition: transform 0.25s ease;
}
.sv-brochure-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-brochure-card:hover .sv-brochure-cover { transform: rotate(-2deg) translateY(-2px); }
.sv-brochure-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sv-brochure-kicker {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sv-primary);
  font-weight: 600;
}
.sv-brochure-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  line-height: 1.25;
  color: var(--sv-ink);
  font-weight: 500;
}
.sv-brochure-sub {
  font-size: 12.5px;
  color: var(--sv-ink-soft);
  line-height: 1.45;
}
.sv-brochure-dl {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--sv-primary);
  color: var(--sv-on-primary);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.sv-brochure-dl:hover {
  background: var(--sv-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(58,155,138,0.28);
}
.sv-brochure-dl svg { width: 14px; height: 14px; flex-shrink: 0; }
.sv-brochure-followup {
  margin: 4px 0 6px;
  padding: 0;
  font-size: 12.5px;
  color: var(--sv-muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Country picker sheet (bottom-sheet with search) ---------- */
.sv-country-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.sv-country-sheet.sv-hidden { display: none; }
.sv-country-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0);
  transition: background 0.25s ease;
  pointer-events: auto;
}
.sv-country-sheet.sv-country-sheet-open .sv-country-sheet-backdrop {
  background: rgba(17, 17, 17, 0.42);
}
.sv-country-sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  background: var(--sv-surface);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
}
.sv-country-sheet.sv-country-sheet-open .sv-country-sheet-panel {
  transform: translateY(0);
}
.sv-country-sheet-grabber {
  width: 36px;
  height: 4px;
  background: var(--sv-border-strong);
  border-radius: 2px;
  margin: 8px auto 4px;
  flex-shrink: 0;
}
.sv-country-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 10px;
  flex-shrink: 0;
}
.sv-country-sheet-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--sv-ink);
}
.sv-country-sheet-close {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-right: -6px;
  color: var(--sv-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.sv-country-sheet-close:hover { background: var(--sv-bg); color: var(--sv-ink); }
.sv-country-sheet-close svg { width: 18px; height: 18px; }
.sv-country-sheet-search {
  position: relative;
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.sv-country-sheet-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1.5px solid var(--sv-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  color: var(--sv-ink);
  background: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}
.sv-country-sheet-search input:focus { border-color: var(--sv-primary); }
.sv-country-sheet-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sv-country-sheet-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--sv-muted);
  pointer-events: none;
}
.sv-country-list {
  list-style: none;
  margin: 0;
  padding: 4px 8px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.sv-country-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--sv-ink);
  font-size: 14.5px;
  line-height: 1.2;
  transition: background 0.12s ease;
}
.sv-country-row:hover { background: var(--sv-bg); }
.sv-country-row-active {
  background: var(--sv-primary-soft);
  color: var(--sv-ink);
  font-weight: 600;
}
.sv-country-row-active:hover { background: var(--sv-primary-soft); }
.sv-country-row-flag {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.sv-country-row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sv-country-row-dial {
  color: var(--sv-muted);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  flex-shrink: 0;
}
.sv-country-row-active .sv-country-row-dial { color: var(--sv-primary); }
.sv-country-empty {
  padding: 24px 16px 32px;
  text-align: center;
  color: var(--sv-muted);
  font-size: 14px;
}
.sv-country-empty.sv-hidden { display: none; }
