@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --h2o-green: #00524C;
  --h2o-green-light: #00AE8D;
  --white: #FFFFFF;
  --bg-primary: #EFECE8;
  --bg-warm: #F7F5F2;
  --text-primary: #1A1A2E;
  --text-secondary: #5A6070;
  --text-muted: #8E95A5;
  --border-light: #E8EAF0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --color-balance: #5CB85C;
  --color-blindagem: #7BA4CC;
  --color-brilho: #D46A9F;
  --color-coco: #3CBBB1;
  --color-ceramidas: #E88B8B;
  --color-revitalize: #F5A623;
  --color-cachos: #F5A623;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  text-wrap: pretty;
}

/* ═══════════════════════════════════
   LAYOUT
   ═══════════════════════════════════ */
.quiz-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════
   SCREENS (show/hide)
   ═══════════════════════════════════ */
.screen { display: none !important; flex: 1; flex-direction: column; }
.screen.active { display: flex !important; animation: screenIn 0.5s ease; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   HERO SCREEN (NEW LAYOUT)
   ═══════════════════════════════════ */
.hero.active {
  padding: 40px 0 80px;
  gap: 40px;
}

/* Hero Header: Logo & Headline */
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-logo img {
  height: 60px;
  width: auto;
}

.hero-headline {
  max-width: 75%;
}

.hero-headline h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--h2o-green);
  line-height: 1.1;
}

.hero-headline h1 span {
  display: block;
  font-weight: 400;
  font-size: 1.8rem;
  margin-top: 4px;
}

/* Hero Main: Image Grid */
.hero-main {
  width: 100%;
}

.hero-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hero-image-item {
  aspect-ratio: 1 / 1.1;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.hero-image-item:hover {
  /* transform: translateY(-8px); */
}

.hero-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Footer: Description & CTA */
.hero-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.hero-description p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-cta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-cta-box p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 440px;
}

.hero-cta-box .btn {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .hero-headline {
    max-width: 100%;
  }
  .hero-headline h1 {
    text-align: center;
    font-size: 1.8rem;
  }
  .hero-headline h1 span {
    font-size: 1.5rem;
  }
  .hero-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .hero-description p, .hero-cta-box p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-box {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .hero.active {
    padding: 30px 0 60px;
  }
  .quiz-container { padding: 0 20px; }
  .hero-image-grid {
    gap: 8px;
  }
  .hero-image-item {
    aspect-ratio: 1 / 1;
  }
  .hero-headline h1 {
    font-size: 1.6rem;
  }
}


/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 36px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--h2o-green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27,107,58,0.3);
}

.btn-primary:hover {
  background: var(--h2o-green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27,107,58,0.35);
}

/* Hero CTA estático — sem efeito de lift/sombra que sugira navegação.
   Mantém :focus-visible com outline acessível (WCAG 2.4.7). */
#btn-start,
#btn-start:hover,
#btn-start:active {
  transform: none;
  box-shadow: 0 4px 16px rgba(27,107,58,0.3);
  background: var(--h2o-green);
}

#btn-start:focus { outline: none; }

#btn-start:focus-visible {
  outline: 3px solid var(--h2o-green-light);
  outline-offset: 3px;
}

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--h2o-green);
  color: var(--h2o-green);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--h2o-green);
  border: 1.5px solid var(--h2o-green);
}

.btn-outline:hover {
  background: var(--h2o-green);
  color: var(--white);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ═══════════════════════════════════
   LEAD FORM SCREEN
   ═══════════════════════════════════ */
.lead-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.lead-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border-light);
}

.lead-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lead-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  background: var(--bg-primary);
}

.form-group input:focus {
  outline: none;
  border-color: var(--h2o-green);
  box-shadow: 0 0 0 3px rgba(27,107,58,0.1);
}

.form-group input::placeholder { color: var(--text-muted); }

.lead-card .btn { width: 100%; margin-top: 8px; }

.lead-privacy {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* ═══════════════════════════════════
   QUIZ SCREEN
   ═══════════════════════════════════ */
/* ═══════════════════════════════════
   QUIZ SCREEN
   ═══════════════════════════════════ */
.quiz-screen {
  padding: 20px 0 40px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--h2o-green), var(--h2o-green-light));
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 36px;
  text-align: right;
}

.question-area { flex: 1; }

.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-grid.has-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 480px) {
  .options-grid.has-icons {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  height: 100%;
}

.has-icons .option-card {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}

.option-icon {
  width: 48px;
  height: 48px;
  color: var(--h2o-green);
  transition: var(--transition);
  margin-bottom: 8px;
}

.option-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.option-card:hover .option-icon,
.option-card.selected .option-icon {
  transform: scale(1.1);
}

.option-card:hover {
  border-color: var(--h2o-green);
  background: rgba(27,107,58,0.02);
  transform: translateX(4px);
}

.option-card.selected {
  border-color: var(--h2o-green);
  background: rgba(27,107,58,0.06);
}

.option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.option-card.selected .option-radio {
  border-color: var(--h2o-green);
  background: var(--h2o-green);
}

.option-card.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

.option-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 4px;
  transition: var(--transition);
}

.btn-back:hover { color: var(--text-primary); }
.btn-back.hidden { visibility: hidden; }

/* ═══════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════ */
.loading-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 3px solid var(--border-light);
  border-top-color: var(--h2o-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-screen h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.loading-screen p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════
   RESULT SCREEN
   ═══════════════════════════════════ */
.result-screen {
  padding: 20px 0 60px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.result-header {
  text-align: center;
  margin-bottom: 32px;
}

.result-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h2o-green);
  background: rgba(27,107,58,0.08);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.result-line-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
}

.result-image-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.result-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.result-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Trava de tamanho para emojis convertidos em <img> (wp-smiley / twemoji)
   e quaisquer ícones injetados — evita estouro principalmente em mobile. */
.result-card h3 img,
.result-card h3 svg,
.modal-header h3 img,
.modal-header h3 svg,
.btn img,
.btn svg,
img.wp-smiley,
img.emoji {
  width: 1.1em !important;
  height: 1.1em !important;
  max-width: 1.1em !important;
  max-height: 1.1em !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: -0.15em;
  display: inline-block;
  flex-shrink: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.result-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.benefits-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(27,107,58,0.1);
  color: var(--h2o-green);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.result-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.result-ctas .btn {
  width: 100%;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
}

/* ═══════════════════════════════════
   MODAL (refinado)
   ═══════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 32, 28, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  overscroll-behavior: contain;
}

/* Scroll lock no body enquanto modal aberto — evita o "scroll duplo" mobile
   onde a página por baixo também rolava. JS adiciona/remove a classe. */
body.h2o-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(15, 32, 28, 0.18), 0 2px 8px rgba(15, 32, 28, 0.08);
  animation: modalIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(15, 32, 28, 0.06);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary, #0f201c);
  margin: 0;
}

.modal-header .modal-subtitle {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted, #6b7670);
  margin-top: 4px;
  letter-spacing: 0;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted, #6b7670);
  transition: all 0.18s ease;
}

.modal-close:hover {
  background: rgba(15, 32, 28, 0.06);
  color: var(--text-primary, #0f201c);
}

.store-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.store-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid rgba(15, 32, 28, 0.08);
  border-radius: 14px;
  transition: all 0.18s ease;
}

.store-item:hover {
  border-color: var(--h2o-green, #1a5f4a);
  background: rgba(26, 95, 74, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 32, 28, 0.06);
}

.store-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 95, 74, 0.12), rgba(26, 95, 74, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--h2o-green, #1a5f4a);
}

.store-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-info {
  flex: 1;
  min-width: 0;
}

.store-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-primary, #0f201c);
  margin: 0 0 6px;
  line-height: 1.3;
  word-break: break-word;
}

.store-info .store-address {
  font-size: 0.82rem;
  color: var(--text-muted, #6b7670);
  margin: 0 0 4px;
  line-height: 1.45;
}

.store-info .store-locale {
  font-size: 0.72rem;
  color: var(--text-muted, #6b7670);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0 0 10px;
}

.store-info .store-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary, #3a4541);
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}

.store-info .store-phone::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>') no-repeat center / contain;
  flex-shrink: 0;
}

.store-item > a.store-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--h2o-green, #1a5f4a);
  text-decoration: none;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(26, 95, 74, 0.08);
  transition: all 0.18s ease;
  white-space: nowrap;
  align-self: center;
}

.store-item > a.store-maps:hover {
  background: var(--h2o-green, #1a5f4a);
  color: var(--white, #fff);
}

.store-item > a.store-maps::after {
  content: '→';
  transition: transform 0.18s ease;
}

.store-item > a.store-maps:hover::after {
  transform: translateX(3px);
}

.store-info .store-phone { margin-bottom: 0; }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 600px) {
  .quiz-container { padding: 0 20px; }
  .quiz-screen { padding: 16px 0 32px; }
  .question-text { margin-bottom: 24px; }
  .hero { padding: 24px 0 40px; }
  .lead-card { padding: 28px 20px; }
  .result-card { padding: 24px 20px; }
  .modal { padding: 24px 20px; margin: 16px; }
  .quiz-header img { height: 34px; }
}

/* ── H2O Quiz WP additions ── */
.form-group-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0; font-size: 14px; line-height: 1.4; }
.form-consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.form-consent a { color: var(--color-primary, #5CB85C); text-decoration: underline; }
.lead-error { color: #d04848; background: #fde6e6; padding: 10px 14px; border-radius: 8px; margin-top: 12px; font-size: 14px; }

.error-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 24px; }
.error-screen h3 { font-size: 22px; margin-bottom: 8px; }
.error-screen p { color: #666; margin-bottom: 24px; }
.error-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.modal-filter {
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(248, 250, 249, 1) 0%, rgba(248, 250, 249, 0.4) 100%);
  border-bottom: 1px solid rgba(15, 32, 28, 0.06);
}

.modal-filter-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted, #6b7670);
  margin-bottom: 10px;
}

.modal-filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-filter-input-wrap::before {
  content: '';
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  background: var(--text-muted, #6b7670);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat center / contain;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modal-filter-input-wrap:focus-within::before {
  background: var(--h2o-green, #1a5f4a);
}

.modal-filter input {
  width: 100%;
  padding: 12px 44px 12px 40px;
  border: 1.5px solid rgba(15, 32, 28, 0.1);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white, #fff);
  color: var(--text-primary, #0f201c);
  transition: all 0.18s ease;
}

.modal-filter input::placeholder { color: var(--text-muted, #6b7670); }

.modal-filter input:focus {
  outline: none;
  border-color: var(--h2o-green, #1a5f4a);
  box-shadow: 0 0 0 4px rgba(26, 95, 74, 0.08);
}

.modal-filter-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 32, 28, 0.06);
  color: var(--text-muted, #6b7670);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

.modal-filter-clear.visible { display: flex; }

.modal-filter-clear:hover {
  background: var(--h2o-green, #1a5f4a);
  color: var(--white, #fff);
}

.store-loading,
.store-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted, #6b7670);
  font-size: 0.9rem;
}

.store-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.store-empty::before {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 32, 28, 0.04);
  display: block;
  position: relative;
}

.store-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.store-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 95, 74, 0.2);
  border-top-color: var(--h2o-green, #1a5f4a);
  border-radius: 50%;
  animation: storeSpin 0.6s linear infinite;
}

@keyframes storeSpin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  /* Bottom-sheet ocupa altura dinâmica da viewport (resolve corte no iOS
     onde barra de URL muda 100vh em tempo de execução). Fallback p/ navegadores
     sem dvh. */
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal {
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    border-radius: 16px 16px 0 0;
    align-self: stretch;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal-header {
    padding: 18px 18px 12px;
    flex-shrink: 0;
    background: var(--white);
  }
  .modal-header h3 { font-size: 1.15rem; line-height: 1.25; }
  .modal-header .modal-subtitle { font-size: 0.75rem; }
  .modal-close { width: 36px; height: 36px; flex-shrink: 0; }
  .modal-filter {
    padding: 10px 18px 14px;
    flex-shrink: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(15, 32, 28, 0.06);
  }
  .modal-filter-label { display: none; }
  .modal-filter input { padding: 10px 36px 10px 36px; font-size: 0.9rem; }
  .store-list {
    padding: 12px 14px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1;
    min-height: 0;
  }
  .store-item {
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 8px;
    padding: 12px;
    border-radius: 12px;
  }
  .store-item > a.store-maps {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  .store-icon { width: 34px; height: 34px; border-radius: 10px; }
  .store-icon svg { width: 18px; height: 18px; }
  .store-info h4 { font-size: 0.88rem; margin-bottom: 3px; }
  .store-info .store-address { font-size: 0.78rem; margin-bottom: 2px; }
  .store-info .store-locale { font-size: 0.66rem; margin-bottom: 4px; }
  .store-info .store-phone { font-size: 0.74rem; margin-bottom: 4px; }
}
