:root {
  --blue: #3b5bfe;
  --blue-dark: #2a48e8;
  --blue-tint: #eef1ff;
  --ink: #131c30;
  --gray: #83898f;
  --gray-light: #e8e9ec;
  --green: #21a05b;
  --bg: #fbfbfc;
  --card: #ffffff;
  --radius-card: 22px;
  --radius-pill: 40px;
  --shadow-card: 0 6px 24px rgba(19, 28, 48, 0.06), 0 1px 3px rgba(19, 28, 48, 0.04);
}

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

[hidden] { display: none !important; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 24px 10px;
}

.back-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-light);
  background: var(--card);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.back-btn:hover { background: #f3f4f6; }

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.step-indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.step-check { display: inline-flex; }

/* ---------- Layout ---------- */

.main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.step { animation: fadeUp 0.28s ease; }
.step[hidden] { display: none; }

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

/* ---------- Typography ---------- */

.eyebrow {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  margin: 28px 0 14px;
}

.headline {
  font-size: 44px;
  line-height: 1.18;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.subhead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--gray);
  text-align: center;
  margin-bottom: 30px;
}
.subhead .blue { color: var(--blue); font-weight: 700; }

/* ---------- Buttons ---------- */

.btn {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 17px 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.985); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--gray-light);
}
.btn-secondary:hover { background: #f3f4f6; }

.btn-block { width: 100%; }

.arrow { font-weight: 700; }

/* ---------- Step 1: search card ---------- */

.search-card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 18px;
  margin-bottom: 14px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px 20px;
}

.search-row input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 21px;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.search-row input::placeholder { color: #a9adb4; }

/* ---------- Autocomplete results ---------- */

.results-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 34px;
}

.results-list { list-style: none; }

.results-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  border-bottom: 1px solid #f0f1f3;
  transition: background 0.12s;
}
.results-list li:hover { background: #f7f8fb; }

.results-list .pin { flex: 0 0 auto; color: var(--gray); }

.result-name {
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-addr {
  font-size: 16px;
  color: var(--gray);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-text { min-width: 0; }

.results-footer {
  text-align: right;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--gray);
}

/* ---------- Business cards ---------- */

.biz-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 30px 0 34px;
}

.biz-photo {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #1e2a4a 0%, #3b5bfe 100%);
  background-size: cover;
  background-position: center;
}

.verified-badge {
  position: absolute;
  left: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 700;
}

.biz-card-body { padding: 26px 28px 30px; }

.biz-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.biz-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rating-num { font-size: 20px; font-weight: 800; }

.stars { display: inline-flex; gap: 2px; }
.stars svg { display: block; }

.rating-count { font-size: 17px; color: var(--gray); }

.biz-location { font-size: 18px; color: var(--gray); }

.biz-summary {
  background: var(--card);
  border: 1px solid #eef0f2;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
  margin-top: 6px;
}

/* Step 2 buttons stack */
.step[data-step="2"] .btn-primary { margin-bottom: 14px; }

/* ---------- Option buttons (steps 3–6) ---------- */

.options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0 34px;
}

.option-btn {
  font-family: inherit;
  font-size: 19px;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.option-btn:hover { border-color: #c9cdd4; }

.option-btn.selected {
  background: var(--blue-tint);
  border: 2px solid var(--blue);
  padding: 19px 23px;
  font-weight: 600;
}

/* ---------- Step 7: scheduler embed ---------- */

.scheduler-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 4px 0 40px;
}

.scheduler-card iframe {
  display: block;
  width: 100%;
  /* Fallback only: app.js resizes this to the height the scheduler reports, as
     soon as its first booking-widget:height message lands. */
  height: 780px;
  border: none;
  transition: height 0.22s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .headline { font-size: 31px; }
  .subhead { font-size: 17px; }
  .logo { font-size: 19px; }
  .step-indicator { font-size: 14px; }
  .biz-photo { height: 230px; }
  .btn { font-size: 17px; padding: 16px 24px; }
  .search-row input { font-size: 18px; }
}
