:root {
  --color-primary: #2f7d6b;
  --color-primary-dark: #205a4d;
  --color-secondary: #3a6ea5;
  --color-accent: #e3a857;
  --color-bg: #f4f7f6;
  --color-card: #ffffff;
  --color-text: #223330;
  --color-text-light: #5c6d68;
  --color-border: #dde6e3;
  --color-disabled: #eceeee;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #075e54;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(32, 90, 77, 0.08);
  --max-width: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 0.4em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 2rem 0 1.6rem;
  text-align: center;
}
.page-header h1 { font-size: 1.5rem; }
.page-subtitle { color: rgba(255,255,255,0.9); font-size: 0.9rem; max-width: 46ch; margin: 0.5rem auto 0; }

main { padding: 1.5rem 0 3rem; }

/* Progress bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0 1.75rem;
  gap: 0.4rem;
}
.progress-step {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-light);
  position: relative;
  padding-top: 1.9rem;
}
.progress-step::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-disabled);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.progress-step.active { color: var(--color-primary-dark); }
.progress-step.active::before { background: var(--color-primary); color: white; }
.progress-step.done::before { background: var(--color-secondary); color: white; content: "✓"; }

/* Cards */
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.option-card {
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.option-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.option-card.selected { border-color: var(--color-primary); background: #eef7f4; }
.option-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.option-card p { margin: 0; font-size: 0.82rem; color: var(--color-text-light); }

.avatar-circle {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.6rem;
}

/* Day pills */
.day-pills { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 1rem; }
.day-pill {
  flex: 0 0 auto;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: white;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.2;
}
.day-pill .day-num { display: block; font-size: 1rem; }
.day-pill.selected { border-color: var(--color-primary); background: var(--color-primary); color: white; }

/* Time slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.6rem;
}
.slot-btn {
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  background: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--color-text);
}
.slot-btn:hover:not(:disabled) { border-color: var(--color-primary); }
.slot-btn.selected { border-color: var(--color-primary); background: var(--color-primary); color: white; }
.slot-btn:disabled { background: var(--color-disabled); color: #a9b3b0; cursor: not-allowed; border-color: var(--color-disabled); text-decoration: line-through; }

/* Form */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.35rem; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  font-size: 0.9rem;
  font-family: inherit;
  background: white;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--color-primary); }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:disabled { background: var(--color-disabled); color: #a9b3b0; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--color-text-light); }
.btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; }

/* Confirmation */
.confirm-summary { border-left: 4px solid var(--color-primary); padding-left: 1rem; margin-bottom: 1.2rem; }
.confirm-summary p { margin: 0.2rem 0; font-size: 0.92rem; }
.confirm-summary strong { color: var(--color-primary-dark); }

.wa-preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 1.2rem 0 0.5rem;
}
.wa-bubble {
  background: #dcf8c6;
  border-radius: 10px;
  border-top-right-radius: 2px;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 420px;
  white-space: pre-line;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.wa-bubble-time { display: block; text-align: right; font-size: 0.65rem; color: var(--color-text-light); margin-top: 0.3rem; }

.legal-note {
  font-size: 0.78rem;
  color: var(--color-text-light);
  background: #fbf6ea;
  border: 1px solid #eee0bd;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-top: 1.5rem;
}

.site-footer {
  background: var(--color-primary-dark);
  color: white;
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 2rem;
}
.site-footer a { color: white; }

.wa-float {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--color-whatsapp);
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  text-decoration: none;
  font-size: 1.5rem;
  z-index: 50;
}

@media (max-width: 480px) {
  .btn-row { flex-direction: column-reverse; gap: 0.6rem; align-items: stretch; }
  .btn { width: 100%; text-align: center; }
}
