*{box-sizing:border-box}
:root{
  --navy:#071a2f;
  --blue:#0e4c92;
  --blue2:#1769c2;
  --gold:#f4c542;
  --ink:#102030;
  --muted:#667788;
  --line:#dce4ec;
  --surface:#ffffff;
  --bg:#f4f7fb;
}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--ink);
}
.topbar{
  height:78px;
  background:var(--navy);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 34px;
  border-bottom:3px solid var(--gold);
}
.brand img{
  display:block;
  max-height:46px;
  max-width:210px;
}
.step-label{
  color:#fff;
  font-weight:700;
  letter-spacing:.12em;
  font-size:13px;
}
.page-shell{
  width:min(1120px,calc(100% - 36px));
  margin:58px auto;
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);
  gap:28px;
  align-items:start;
}
.setup-card,.side-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 16px 40px rgba(17,34,51,.08);
}
.setup-card{padding:44px}
.side-card{padding:32px}
.eyebrow{
  color:var(--blue);
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  margin-bottom:12px;
}
h1{
  font-size:42px;
  line-height:1.05;
  margin:0 0 14px;
  color:var(--navy);
}
.intro{
  font-size:18px;
  line-height:1.55;
  color:var(--muted);
  margin:0 0 32px;
  max-width:680px;
}
label{
  display:block;
  font-weight:700;
  margin:20px 0 9px;
  color:var(--navy);
}
input{
  width:100%;
  height:54px;
  border:1px solid #c9d5e2;
  border-radius:12px;
  padding:0 16px;
  font-size:17px;
  outline:none;
  transition:.18s;
  background:#fff;
}
input:focus{
  border-color:var(--blue2);
  box-shadow:0 0 0 4px rgba(23,105,194,.12);
}
.helper,.muted{
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}
.primary-btn{
  width:100%;
  margin-top:22px;
  border:0;
  border-radius:12px;
  min-height:54px;
  padding:13px 18px;
  background:var(--blue);
  color:#fff;
  font-size:17px;
  font-weight:800;
  cursor:pointer;
}
.primary-btn:hover{background:var(--blue2)}
.message{
  margin-top:18px;
  padding:12px 14px;
  border-radius:10px;
  font-size:14px;
}
.error{
  background:#fff0f0;
  border:1px solid #f3b7b7;
  color:#9a2222;
}
.next-preview{
  display:flex;
  gap:14px;
  margin-top:24px;
  padding:18px;
  border-radius:14px;
  background:#f2f8ff;
  border:1px solid #cfe2f8;
}
.next-preview p{margin:6px 0 0}
.checkmark{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  flex:0 0 34px;
  background:#e6f5e8;color:#24743a;font-weight:900;
}
.side-icon{
  width:52px;height:52px;border-radius:14px;
  display:grid;place-items:center;
  background:#fff7d8;
  color:#b88a00;
  font-size:26px;
}
.side-card h2{
  margin:18px 0 14px;
  color:var(--navy);
}
.side-card ol{
  margin:0;
  padding-left:22px;
  color:#40566b;
  line-height:1.65;
}
.side-card li{margin-bottom:8px}
.security-note{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
}
@media(max-width:820px){
  .topbar{padding:0 18px}
  .step-label{font-size:11px}
  .page-shell{
    grid-template-columns:1fr;
    margin:26px auto 40px;
  }
  .setup-card{padding:28px 22px}
  .side-card{padding:24px 22px}
  h1{font-size:34px}
  .intro{font-size:16px}
}


/* STEP 3B — Google Places search results */
.results-section{
  margin-top:28px;
  padding-top:28px;
  border-top:1px solid var(--line);
}
.results-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.results-head h2{
  margin:0;
  color:var(--navy);
  font-size:28px;
}
.results-intro{
  color:var(--muted);
  margin:8px 0 18px;
}
.text-btn{
  border:0;
  background:transparent;
  color:var(--blue);
  font-weight:800;
  cursor:pointer;
  padding:7px 0;
}
.loading-box{
  padding:18px;
  border:1px solid #cfe2f8;
  background:#f2f8ff;
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:12px;
  color:#294b6d;
}
.spinner{
  width:20px;height:20px;
  border:3px solid #c9dcf1;
  border-top-color:var(--blue);
  border-radius:50%;
  animation:rfspin .8s linear infinite;
}
@keyframes rfspin{to{transform:rotate(360deg)}}
.matches-list{
  display:grid;
  gap:12px;
}
.match-card{
  width:100%;
  text-align:left;
  border:1px solid #cdd9e5;
  background:#fff;
  border-radius:14px;
  padding:18px;
  cursor:pointer;
  transition:.18s;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.match-card:hover{
  border-color:var(--blue2);
  box-shadow:0 7px 20px rgba(17,74,130,.09);
  transform:translateY(-1px);
}
.match-name{
  display:block;
  font-weight:800;
  color:var(--navy);
  font-size:17px;
  margin-bottom:5px;
}
.match-address{
  color:var(--muted);
  font-size:14px;
  line-height:1.4;
}
.match-action{
  color:var(--blue);
  font-weight:800;
  white-space:nowrap;
  font-size:14px;
}
.no-matches{
  padding:20px;
  border:1px solid #f0d5a2;
  background:#fffaf0;
  border-radius:14px;
}
.no-matches p{color:var(--muted)}
.manual-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.secondary-btn{
  min-height:48px;
  padding:10px 18px;
  border:1px solid var(--blue);
  border-radius:10px;
  background:#fff;
  color:var(--blue);
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
.primary-btn.small{
  width:auto;
  min-height:48px;
  margin-top:0;
  padding:10px 18px;
}
.confirmed-business{
  display:flex;
  gap:14px;
  margin-top:18px;
  padding:18px;
  border:1px solid #b9dfc3;
  background:#f0faf3;
  border-radius:14px;
}
.confirmed-business p{
  color:#466456;
  margin:6px 0 14px;
}
@media(max-width:620px){
  .results-head{display:block}
  .text-btn{margin-top:8px}
  .match-card{align-items:flex-start}
  .match-action{white-space:normal}
  .manual-actions{flex-direction:column}
  .primary-btn.small,.secondary-btn{width:100%}
}


/* STEP 3C — Logo upload + automatic theme preview */
.logo-step{
  grid-column:1 / 2;
}
.logo-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);
  gap:26px;
  align-items:start;
}
.file-input{
  width:100%;
  border:1px dashed #b9c9d8;
  border-radius:12px;
  padding:14px;
  background:#fbfdff;
}
.palette-card{
  margin-top:22px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfdff;
}
.palette-title{
  font-weight:800;
  color:var(--navy);
  margin-bottom:14px;
}
.swatches{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.swatch-wrap{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  color:var(--muted);
}
.swatch{
  width:100%;
  aspect-ratio:1.6/1;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
  background:#ddd;
}
.preview-panel{
  position:sticky;
  top:24px;
}
.preview-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--blue);
  margin-bottom:10px;
}
.brand-preview{
  min-height:520px;
  border-radius:22px;
  padding:30px 24px;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 18px 42px rgba(0,0,0,.18);
  background:#151515;
  color:#fff;
  text-align:center;
  overflow:hidden;
}
.brand-preview img{
  display:block;
  margin:0 auto 24px;
  max-width:150px;
  max-height:110px;
  object-fit:contain;
}
.brand-preview h2{
  margin:0 0 8px;
  font-size:34px;
}
.brand-preview p{
  opacity:.9;
  font-size:18px;
  margin-bottom:26px;
}
.preview-rating-box{
  border:2px solid currentColor;
  border-radius:18px;
  padding:24px 16px;
  margin:20px 0 28px;
}
.preview-stars{
  font-size:46px;
  letter-spacing:5px;
  line-height:1;
}
.preview-copy{
  margin-top:14px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:13px;
}
.preview-footer{
  margin-top:34px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:13px;
}
.primary-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}
@media(max-width:900px){
  .logo-step{grid-column:auto}
  .logo-grid{grid-template-columns:1fr}
  .preview-panel{position:static}
}
@media(max-width:560px){
  .swatches{grid-template-columns:repeat(2,1fr)}
  .brand-preview h2{font-size:28px}
  .preview-stars{font-size:38px}
}


/* STEP 3D — Save business */
.save-status{
  margin-top:18px;
  padding:14px 16px;
  border-radius:12px;
  background:#f2f8ff;
  border:1px solid #cfe2f8;
  color:#294b6d;
}
.save-status.error{
  background:#fff0f0;
  border-color:#f3b7b7;
  color:#9a2222;
}
.setup-complete{
  margin-top:22px;
  padding:26px;
  border-radius:18px;
  border:1px solid #b9dfc3;
  background:#f0faf3;
  text-align:center;
}
.checkmark.large{
  width:48px;
  height:48px;
  margin:0 auto 12px;
  font-size:24px;
}
.setup-complete h2{
  margin:0 0 8px;
  color:var(--navy);
}
.setup-complete p{
  color:#466456;
}
.complete-actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin:18px 0 10px;
}
.primary-link,.secondary-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:10px 18px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
}
.primary-link{
  background:var(--blue);
  color:#fff;
}
.secondary-link{
  border:1px solid var(--blue);
  color:var(--blue);
  background:#fff;
}

.account-setup{margin-top:22px;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}.account-setup h2{margin:7px 0 5px;color:var(--navy)}


/* STEP 15A — automatic business profile + logo lookup */
.profile-link{
  display:inline-block;
  margin:0 0 14px;
  color:var(--blue);
  font-weight:800;
  text-decoration:none;
}
.profile-link:hover{text-decoration:underline}
.auto-logo-box{
  margin:0 0 22px;
  padding:18px;
  border:1px solid #cfe2f8;
  background:#f7fbff;
  border-radius:14px;
}
.auto-logo-loading{
  display:flex;
  align-items:center;
  gap:12px;
  color:#294b6d;
  font-weight:700;
}
.auto-logo-title{
  color:var(--navy);
  font-weight:800;
  margin-bottom:12px;
}
.auto-logo-preview{
  display:block;
  max-width:220px;
  max-height:120px;
  object-fit:contain;
  padding:10px;
  border-radius:12px;
  border:1px solid #d7e1eb;
  background:#fff;
  margin-bottom:10px;
}


/* Step 16C: review page styles + manual brand colors */
.design-picker-card{margin-top:18px;padding:18px;border:1px solid #dbe5f0;border-radius:16px;background:#f8fbff}
.review-style-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.review-style-option{border:2px solid #d9e2ec;border-radius:14px;background:#fff;padding:10px;text-align:left;cursor:pointer;color:#12253f}
.review-style-option.selected{border-color:#2474c6;box-shadow:0 0 0 3px rgba(36,116,198,.12)}
.review-style-option strong,.review-style-option small{display:block}.review-style-option small{margin-top:4px;color:#617187;line-height:1.3}
.style-thumb{height:62px;border-radius:10px;margin-bottom:9px;display:grid;place-items:center;position:relative;overflow:hidden}
.style-thumb i{width:24px;height:24px;border-radius:50%;position:absolute;top:8px}.style-thumb b{font-size:13px;letter-spacing:2px;margin-top:24px}
.classic-thumb{background:linear-gradient(135deg,#0d1726,#18487a);color:#f3c64e}.classic-thumb i{background:#fff}
.clean-thumb{background:#f7f9fc;color:#2474c6;border:1px solid #e5eaf0}.clean-thumb i{background:#1c2b3d}
.bold-thumb{background:linear-gradient(90deg,#12243d 0 45%,#f5f8fb 45%);color:#2474c6}.bold-thumb i{background:#f3c64e;left:18%}
.manual-color-card{margin-top:16px}.manual-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.manual-color-grid label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:9px 10px;border:1px solid #e1e7ef;border-radius:10px;background:#fff;font-size:12px;font-weight:700}.manual-color-grid input[type=color]{width:40px;height:32px;padding:1px;border:0;background:transparent;cursor:pointer}
.brand-preview[data-layout="clean"]{border-radius:24px;background:linear-gradient(180deg,#f7f9fc,#fff)!important;color:#17283e!important;box-shadow:0 18px 50px rgba(20,43,70,.12)}
.brand-preview[data-layout="clean"] .preview-rating-box{background:#fff}.brand-preview[data-layout="bold"]{border-radius:10px;text-align:left;padding-left:26px}.brand-preview[data-layout="bold"] .preview-rating-box{margin-left:0;margin-right:0;background:rgba(255,255,255,.08)}
@media(max-width:720px){.review-style-options{grid-template-columns:1fr}.manual-color-grid{grid-template-columns:1fr}}

/* Step 19A guided onboarding polish */
.setup-flow-progress{max-width:760px;margin:22px auto 0;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:10px}.setup-flow-progress i{height:2px;flex:1;max-width:90px;background:#d9e4ef}.flow-step{display:flex;align-items:center;gap:7px;color:#8090a4;font-size:12px;font-weight:800}.flow-step span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:1px solid #cdd9e6;background:#fff}.flow-step.active{color:#2474c6}.flow-step.active span{background:#2474c6;color:#fff;border-color:#2474c6}.setup-card{box-shadow:0 18px 55px rgba(18,45,76,.08)}.primary-btn{min-height:52px;border-radius:12px}.setup-card input{min-height:48px;border-radius:11px}.complete-actions .primary-link{min-height:54px;padding-left:22px;padding-right:22px}
@media(max-width:720px){.setup-flow-progress{gap:5px;margin-top:14px}.setup-flow-progress i{max-width:24px}.flow-step b{display:none}.flow-step span{width:26px;height:26px}.page-shell{padding-left:12px!important;padding-right:12px!important}.setup-card{padding:20px!important;border-radius:18px!important}.logo-grid{grid-template-columns:1fr!important}.preview-panel{position:static!important}.brand-preview{min-height:360px}.primary-btn,.secondary-btn,.primary-link,.secondary-link{width:100%}.complete-actions{display:grid}.topbar{padding-left:16px!important;padding-right:16px!important}}
