/* =========================================================
   GMB Form Pro — form.css
   16-step form design with Apple HIG
   ========================================================= */

/* ── Body override when form is active ─────────────────── */
body.form-mode {
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

/* ── Top progress bar ─────────────────────────────────── */
.pgbar-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(0,0,0,0.06);
  z-index: 100;
}

.pgbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff7043);
  transition: width 0.5s var(--ease-inout);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(244,82,30,0.45);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
}

.hero.is-exiting {
  animation: hero-exit 0.45s var(--ease-inout) forwards;
  pointer-events: none;
}

@keyframes hero-exit {
  to { opacity: 0; transform: translateY(-28px); }
}

/* ── Admin link (canto superior direito) ────────────────── */
.admin-link {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  color: var(--label-secondary);
  font-size: var(--text-footnote);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s var(--ease-inout);
  box-shadow: var(--glass-shadow);
}

.admin-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(244, 82, 30, 0.08);
}

.admin-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.hero-logo {
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-logo-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff7043);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(244,82,30,0.3);
  flex-shrink: 0;
}

.hero-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--label-primary);
  letter-spacing: -0.02em;
  font-family: 'Inter', var(--font);
}

.hero-logo-text span { color: var(--accent); }

.hero-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  color: var(--label-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 600px;
  font-family: 'Inter', var(--font);
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--label-secondary);
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 40px;
  font-family: 'Inter', var(--font);
}

/* ── Eleve branding chip ──────────────────────────────── */
.eleve-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.5s var(--ease-out) 0.1s forwards;
}

.eleve-chip-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
}

.eleve-chip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-family: 'Inter', var(--font);
}

.eleve-chip-sep {
  width: 1px;
  height: 12px;
  background: var(--separator);
  flex-shrink: 0;
}

.eleve-chip-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--label-secondary);
  font-family: 'Inter', var(--font);
  white-space: nowrap;
}

/* ── Google badge (replaces orange pin icon) ──────────── */
.hero-google-badge {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  flex-shrink: 0;
}

/* ── Hero CTA button ──────────────────────────────────── */
.btn-hero-start {
  height: 56px;
  border-radius: 28px;
  padding: 0 40px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #e8420e);
  border: none;
  box-shadow: 0 8px 24px rgba(244,82,30,0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: 'Inter', var(--font);
  letter-spacing: -0.01em;
}

.btn-hero-start:hover {
  box-shadow: 0 12px 32px rgba(244,82,30,0.45);
  transform: translateY(-1px);
}

.btn-hero-start:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}

.btn-hero-start::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
}

.btn-hero-start:hover::after {
  animation: shimmer 0.6s ease forwards;
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 160%; }
}

/* ── Time badge ───────────────────────────────────────── */
.time-badge {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--label-primary);
  font-family: 'Inter', var(--font);
}

.time-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sys-green);
  box-shadow: 0 0 6px rgba(52,199,89,0.5);
  flex-shrink: 0;
}

/* ── Hero badges ──────────────────────────────────────── */
.hero-badges {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Generic badges ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-family: 'Inter', var(--font);
}

.badge-accent   { background: rgba(244,82,30,0.1);  color: var(--accent); }
.badge-success  { background: rgba(52,199,89,0.1);  color: var(--sys-green); }
.badge-warning  { background: rgba(245,158,11,0.1); color: #F59E0B; }
.badge-error    { background: rgba(239,68,68,0.1);  color: var(--sys-red); }

/* ── Form wrap ────────────────────────────────────────── */
/* Garante que [hidden] não seja sobrescrito pela regra display:flex */
.form-wrap[hidden] { display: none !important; }

.form-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 64px 24px 80px;
  gap: 24px;
}

/* ── Form card ────────────────────────────────────────── */
.form-card {
  width: 100%;
  max-width: 560px;
  border-radius: 28px;
  padding: 40px;
  animation: cardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow-y: auto;
  max-height: calc(100dvh - 120px);
}

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

/* ── Step header ──────────────────────────────────────── */
.step-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: 'Inter', var(--font);
}

.step-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--label-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: 'Inter', var(--font);
}

.step-subheading {
  font-size: 14px;
  color: var(--label-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
  font-family: 'Inter', var(--font);
}

.step-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin-bottom: 28px;
}

/* ── Step content area ────────────────────────────────── */
.step-content {
  font-family: 'Inter', var(--font);
}

/* ── Form inputs (design style) ───────────────────────── */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--label-primary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  font-family: 'Inter', var(--font);
}

/* Override main.css field-input for form card */
.form-card .field-input,
.step-content .field-input {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
  padding: 0 16px;
  font-size: 14px;
  font-family: 'Inter', var(--font);
  color: var(--label-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}

.form-card .field-input:focus,
.step-content .field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244,82,30,0.1);
  background: rgba(255,255,255,0.9);
}

.form-card .field-input::placeholder,
.step-content .field-input::placeholder {
  color: var(--label-tertiary);
}

.field-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Inter', var(--font);
  color: var(--label-primary);
  outline: none;
  resize: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  line-height: 1.5;
}

.field-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244,82,30,0.1);
  background: rgba(255,255,255,0.9);
}

.field-select {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
  padding: 0 16px;
  font-size: 14px;
  font-family: 'Inter', var(--font);
  color: var(--label-primary);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A9BB0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244,82,30,0.1);
}

.field-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.char-count {
  font-size: 11px;
  color: var(--label-tertiary);
  text-align: right;
  margin-top: 4px;
  font-family: 'Inter', var(--font);
  font-variant-numeric: tabular-nums;
}

/* ── Field validation ─────────────────────────────────── */
.field-input.error,
.field-textarea.error,
.field-select.error {
  border-color: var(--error) !important;
  background-color: rgba(239, 68, 68, 0.05);
}

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  min-height: 16px;
  font-weight: 500;
}

/* ── Card footer buttons ──────────────────────────────── */
.card-footer {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}

.btn-back {
  height: 48px;
  border-radius: 24px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--label-primary);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  font-family: 'Inter', var(--font);
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-back:hover {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.15);
}

.btn-continue {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  box-shadow: 0 4px 16px rgba(244,82,30,0.3);
  transition: box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', var(--font);
}

.btn-continue:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(244,82,30,0.4);
  transform: translateY(-1px);
}

.btn-continue:active:not(:disabled) { transform: scale(0.98); }

.btn-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-continue::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
}

.btn-continue:hover:not(:disabled)::after {
  animation: shimmer 0.5s ease forwards;
}

/* ── Option list (radio + checkbox rows) ──────────────── */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
}

.option-item:hover {
  background: rgba(255,255,255,0.7);
  border-color: rgba(244,82,30,0.2);
}

.option-item.selected {
  background: rgba(244,82,30,0.05);
  border-color: rgba(244,82,30,0.3);
}

.option-label {
  font-size: 14px;
  color: var(--label-primary);
  flex: 1;
  line-height: 1.4;
  font-family: 'Inter', var(--font);
}

.option-sublabel {
  font-size: 12px;
  color: var(--label-secondary);
  margin-top: 1px;
  font-family: 'Inter', var(--font);
}

/* ── Custom radio ─────────────────────────────────────── */
.custom-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-item:hover .custom-radio {
  box-shadow: 0 0 0 3px rgba(244,82,30,0.1);
}

.custom-radio.checked { border-color: var(--accent); }

.radio-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-radio.checked .radio-dot { transform: scale(1); }

/* ── Custom checkbox ──────────────────────────────────── */
.custom-checkbox {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-item:hover .custom-checkbox {
  box-shadow: 0 0 0 3px rgba(244,82,30,0.1);
}

.custom-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.check-path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.2s ease-out;
}

.custom-checkbox.checked .check-path { stroke-dashoffset: 0; }

/* ── Stepper ──────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
}

.stepper-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: var(--label-primary);
  font-weight: 500;
  user-select: none;
  line-height: 1;
  font-family: 'Inter', var(--font);
}

.stepper-btn:hover {
  background: rgba(244,82,30,0.08);
  border-color: rgba(244,82,30,0.3);
}

.stepper-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--label-primary);
  min-width: 48px;
  text-align: center;
  font-family: 'Inter', var(--font);
  font-variant-numeric: tabular-nums;
}

/* ── Hours list ───────────────────────────────────────── */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.hours-day-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  width: 80px;
}

.hours-day-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--label-primary);
  font-family: 'Inter', var(--font);
}

.hours-times {
  display: flex;
  gap: 8px;
  flex: 1;
  align-items: center;
}

.hours-sep {
  font-size: 12px;
  color: var(--label-secondary);
  flex-shrink: 0;
  font-family: 'Inter', var(--font);
}

.hours-closed {
  font-size: 13px;
  color: var(--label-tertiary);
  font-style: italic;
  font-family: 'Inter', var(--font);
}

/* ── Photo grid ───────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.photo-tile {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1.5px dashed rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 11px;
  color: var(--label-secondary);
  text-align: center;
  padding: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  user-select: none;
  font-family: 'Inter', var(--font);
}

.photo-tile:hover {
  border-color: rgba(244,82,30,0.3);
  background: rgba(244,82,30,0.03);
}

.photo-tile.uploaded {
  border-style: solid;
  border-color: rgba(244,82,30,0.3);
  background: rgba(244,82,30,0.05);
}

.photo-tile-icon {
  font-size: 20px;
  opacity: 0.5;
}

/* ── FAQ / Service cards ──────────────────────────────── */
.faq-card,
.srv-card {
  background: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-card-header,
.srv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-card-num,
.srv-card-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-family: 'Inter', var(--font);
}

.btn-remove {
  height: 28px;
  border-radius: 14px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sys-red);
  background: rgba(255,59,48,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: 'Inter', var(--font);
}

.btn-remove:hover { background: rgba(255,59,48,0.15); }

.btn-add-item {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  border: 1.5px dashed rgba(0,0,0,0.15);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--label-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  font-family: 'Inter', var(--font);
}

.btn-add-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(244,82,30,0.03);
}

/* ── File upload button ───────────────────────────────── */
.file-upload-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border-radius: 16px;
  border: 1.5px dashed rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: 'Inter', var(--font);
  color: var(--label-secondary);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.file-upload-label:hover {
  border-color: rgba(244,82,30,0.4);
  background: rgba(244,82,30,0.03);
  color: var(--accent);
}

.file-upload-label.has-file {
  border-color: var(--sys-green);
  border-style: solid;
  background: rgba(52,199,89,0.05);
  color: var(--sys-green);
}

.file-name-badge {
  font-size: 11px;
  color: var(--label-tertiary);
  margin-top: 4px;
  font-family: 'Inter', var(--font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Info notice (info boxes in steps) ────────────────── */
.info-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(244,82,30,0.05);
  border: 1px solid rgba(244,82,30,0.12);
  font-size: 13px;
  color: var(--label-secondary);
  line-height: 1.5;
  font-family: 'Inter', var(--font);
}

/* ── Score gauge ──────────────────────────────────────── */
.score-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 8px;
}

.score-arc {
  transition: stroke-dashoffset 1.5s ease-out, stroke 0.4s ease;
}

/* ── Review rows ──────────────────────────────────────── */
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.review-key {
  font-size: 12px;
  font-weight: 600;
  color: var(--label-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 100px;
  font-family: 'Inter', var(--font);
}

.review-val {
  font-size: 14px;
  color: var(--label-primary);
  text-align: right;
  flex: 1;
  font-family: 'Inter', var(--font);
}

/* ── Side tip ─────────────────────────────────────────── */
.side-tip {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 200px;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--label-primary);
  line-height: 1.5;
  z-index: 50;
  opacity: 0;
  animation: tipIn 0.4s ease 1s forwards;
  font-family: 'Inter', var(--font);
}

.side-tip-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: 'Inter', var(--font);
}

@keyframes tipIn {
  to { opacity: 1; }
}

@media (max-width: 900px) { .side-tip { display: none; } }

/* ── Step dots ────────────────────────────────────────── */
.step-dots {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 50;
}

.step-dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(15,30,45,0.15);
  transition: all 0.3s ease;
}

.step-dot.active {
  width: 20px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(244,82,30,0.4);
}

.step-dot.done { background: rgba(244,82,30,0.4); }

/* ── Modal overlay ────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,30,45,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
  animation: overlayIn 0.3s ease forwards;
}

.modal-overlay[hidden] { display: none; }

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  max-width: 420px;
  width: 100%;
  border-radius: 28px;
  padding: 48px;
  text-align: center;
  animation: modalCardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalCardIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-check-wrap {
  margin-bottom: 8px;
  display: inline-block;
}

.modal-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--label-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  margin-top: 16px;
  font-family: 'Inter', var(--font);
}

.modal-body-text {
  font-size: 14px;
  color: var(--label-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  font-family: 'Inter', var(--font);
}

.modal-id {
  background: rgba(244,82,30,0.06);
  border-radius: 12px;
  padding: 12px 20px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 24px;
  letter-spacing: 0.05em;
  word-break: break-all;
}

/* ── Countdown ring ───────────────────────────────────── */
.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.countdown-ring-box {
  position: relative;
  width: 44px; height: 44px;
}

.countdown-svg {
  transform: rotate(-90deg);
  position: absolute;
  top: 0; left: 0;
}

.cdtrack {
  fill: none;
  stroke: rgba(0,0,0,0.06);
}

.cdfill {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.countdown-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--label-primary);
  font-family: 'Inter', var(--font);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 11px;
  color: var(--label-secondary);
  font-family: 'Inter', var(--font);
}

.btn-ghost-full {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--label-primary);
  font-family: 'Inter', var(--font);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-ghost-full:hover { background: rgba(0,0,0,0.03); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVIDADE MOBILE — arquitetura bottom-sheet correta
   ══════════════════════════════════════════════════════════ */

/* Animação de entrada do bottom sheet */
@keyframes sheetIn {
  from { transform: translateY(56px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 640px) {

  /* ── Hero ──────────────────────────────────────────────── */
  .hero {
    padding: 48px 20px 36px;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
  }

  .eleve-chip        { margin-bottom: 20px; }
  .hero-logo         { margin-bottom: 24px; }
  .hero-title        { font-size: clamp(26px, 7.5vw, 32px); }
  .hero-subtitle     { font-size: 15px; margin-bottom: 28px; }

  .btn-hero-start {
    width: 100%;
    max-width: 340px;
    height: 52px;
    font-size: 15px;
  }

  .time-badge        { margin-top: 16px; }
  .hero-badges       { margin-top: 28px; gap: 8px; }
  .badge             { font-size: 11px; padding: 4px 10px; }

  /* ── Form wrap: overlay fixo cobrindo a tela toda ──────── */
  .form-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
    min-height: unset;
    z-index: 10;
  }

  /* ── Form card: bottom sheet com altura fixa ───────────── */
  /*   overflow: hidden no card + overflow-y: auto no         */
  /*   step-content é o segredo para o scroll funcionar.      */
  .form-card {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;

    /* Altura fixa — indispensável para o scroll interno */
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    max-height: none;

    border-bottom: none;
    padding: 24px 20px 0;
    display: flex;
    flex-direction: column;

    /* O card não rola — só o step-content rola */
    overflow: hidden;
  }

  /* ── Cabeçalho do step: estático (não rola) ────────────── */
  .step-eyebrow    { font-size: 10px; margin-bottom: 6px; }
  .step-heading    { font-size: clamp(20px, 5.5vw, 24px); margin-bottom: 4px; }
  .step-subheading { font-size: 13px; margin-bottom: 16px; }
  .step-divider    { margin-bottom: 16px; }

  /* ── Área de conteúdo: a ÚNICA zona que rola ───────────── */
  /*   min-height: 0 é crítico em flex — sem ele o filho      */
  /*   nunca ativa overflow-y: auto.                          */
  .step-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    overscroll-behavior: contain;
  }

  /* ── Footer: sempre visível no fundo do card ───────────── */
  .card-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 12px 0;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 16px);
    border-top: 0.5px solid rgba(0,0,0,0.07);
    background: var(--material-chrome);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }

  .btn-back {
    height: 48px;
    padding: 0 20px;
    flex-shrink: 0;
    width: auto;
    font-size: 14px;
  }

  .btn-continue {
    flex: 1;
    height: 48px;
    font-size: 14px;
  }

  /* ── Step dots: flutua acima do footer ─────────────────── */
  .step-dots {
    bottom: calc(max(env(safe-area-inset-bottom, 0px), 16px) + 68px);
  }

  /* ── Grids ─────────────────────────────────────────────── */
  .field-row-grid { grid-template-columns: 1fr; }
  .photo-grid     { grid-template-columns: repeat(2, 1fr); }

  /* ── Modal ─────────────────────────────────────────────── */
  .modal-card {
    border-radius: 24px 24px 0 0;
    padding: 36px 24px;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 24px);
  }
}

/* ── Telas muito pequenas ≤ 390px (iPhone SE / mini) ────── */
@media (max-width: 390px) {
  .hero-title    { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }

  /* No chip: esconde label e separador, mantém só logo + nome */
  .eleve-chip-label,
  .eleve-chip-sep { display: none; }

  .form-card { padding: 20px 16px 0; }
}
