/* RockMill Social Co — signup page */
:root {
  --red: #c0392b;
  --red-dark: #a93226;
  --navy: #2c3e50;
  --ink: #1f2d3a;
  --muted: #6b7a89;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e3e7ec;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--red); font-weight: 800; font-size: 18px; letter-spacing: 1px;
}
.brand-name { font-size: 20px; }
.brand-name strong { font-weight: 800; }
.header-tag { color: #b8c4cf; font-size: 14px; }

/* Step progress */
.steps {
  list-style: none; display: flex; gap: 8px; padding: 0; margin: 28px 0 24px;
}
.step {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #dfe4ea; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex: none;
}
.step.active { color: var(--ink); }
.step.active .dot { background: var(--red); color: #fff; }
.step.done .dot { background: var(--navy); color: #fff; }

/* Panels */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; margin-bottom: 32px;
  box-shadow: 0 2px 10px rgba(31, 45, 58, .05);
}
.panel h1 { margin: 0 0 8px; font-size: 28px; }
.panel h2 { margin: 0 0 8px; font-size: 22px; }
.lede { color: var(--muted); margin: 0 0 24px; }

.test-banner {
  background: #fff8e1; border: 1px solid #ffe082; color: #7a5c00;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px;
}
.test-banner code { background: #ffecb3; padding: 1px 5px; border-radius: 4px; }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red); border-color: var(--red);
}
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.hint code, .test-banner code { font-family: ui-monospace, monospace; font-size: 12px; }
.err { color: var(--red); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.err.big { font-size: 15px; font-weight: 600; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.actions { margin-top: 24px; display: flex; gap: 12px; }
.actions.split { justify-content: space-between; }
.actions.center { justify-content: center; }

/* Buttons */
.btn {
  display: inline-block; border: none; border-radius: 8px;
  padding: 13px 26px; font-size: 16px; font-weight: 700; cursor: pointer;
  text-decoration: none; text-align: center;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.primary:disabled { background: #d7b6b2; cursor: not-allowed; }
.btn.ghost { background: #eef1f4; color: var(--ink); }
.btn.ghost:hover { background: #e0e5ea; }

/* Template picker */
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.template-card {
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.template-card:hover { border-color: var(--navy); }
.template-card.selected { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.template-card .t-name { display: block; font-size: 18px; font-weight: 800; margin: 12px 0 4px; }
.template-card .t-desc { display: block; font-size: 14px; color: var(--muted); }

.swatch { display: flex; height: 96px; border-radius: 8px; overflow: hidden; }
.swatch i { flex: 1; }
.swatch-modern i:nth-child(1) { background: #c0392b; }
.swatch-modern i:nth-child(2) { background: #2c3e50; }
.swatch-modern i:nth-child(3) { background: #f5f6f8; }
.swatch-classic i:nth-child(1) { background: #8b5e3c; }
.swatch-classic i:nth-child(2) { background: #f3e9d2; }
.swatch-classic i:nth-child(3) { background: #4a3728; }
.swatch-bold i:nth-child(1) { background: #111111; }
.swatch-bold i:nth-child(2) { background: #f5c518; }
.swatch-bold i:nth-child(3) { background: #e63946; }
.swatch-minimal i:nth-child(1) { background: #ffffff; border-right: 1px solid var(--line); }
.swatch-minimal i:nth-child(2) { background: #eef1f4; }
.swatch-minimal i:nth-child(3) { background: #9aa5b1; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-card {
  position: relative; border: 2px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 24px; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.plan-card:hover { border-color: var(--navy); }
.plan-card.selected { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.plan-card.featured { border-color: var(--red); }
.badge {
  position: absolute; top: -13px; left: 20px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.plan-card .p-name { display: block; font-size: 18px; font-weight: 800; }
.plan-card .p-price { display: block; font-size: 34px; font-weight: 800; margin: 10px 0 6px; }
.plan-card .p-price .per, .plan-card .p-price .plus { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-card .p-desc { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.plan-card .p-cta { display: block; font-weight: 700; color: var(--red); }

.dfy { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.custom-note { margin-top: 20px; background: #fef9e7; border: 1px solid #f9e79f; border-radius: 8px; padding: 14px 16px; font-size: .92rem; }
.custom-note a { color: #1a73e8; font-weight: 600; }
.dfy-list { list-style: none; margin: 12px 0; padding: 0; }
.dfy-list li { padding: 6px 0; font-size: .95rem; }
.custom-req { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.custom-req h3 { margin-bottom: 8px; }
.dfy-done { background: #eafaf1; border: 1px solid #a9dfbf; border-radius: 8px; padding: 20px; margin-top: 20px; }

/* Payment */
.order-summary {
  background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 18px; margin-bottom: 24px; font-size: 15px;
}
.order-summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-summary .row.total { font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.secure { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Success */
.success { text-align: center; padding: 12px 0; }
.check {
  width: 72px; height: 72px; border-radius: 50%; background: #27ae60; color: #fff;
  font-size: 36px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.site-url { font-size: 22px; font-weight: 800; margin: 8px 0 16px; }
.site-url a { color: var(--red); text-decoration: none; }
.site-url a:hover { text-decoration: underline; }
.center { text-align: center; }

/* Footer */
.site-footer { color: var(--muted); font-size: 11px; text-align: center; padding: 2px 0 10px; line-height: 1.3; }

/* ---- Conversational chat signup ---- */
.chat-wrap { max-width: 680px; }
.chat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; margin: 28px 0 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 45, 58, .05);
}
.progress { height: 4px; background: #eef1f4; }
.progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .4s ease; }
.chat {
  height: 52vh; min-height: 320px; max-height: 520px;
  overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 8px;
}
.msg {
  max-width: 82%; padding: 11px 15px; border-radius: 18px;
  font-size: 16px; line-height: 1.45; animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { background: #eef1f4; color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--red); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.bot.typing { display: inline-flex; gap: 5px; padding: 15px 18px; }
.msg.bot.typing span { width: 8px; height: 8px; border-radius: 50%; background: #9aa5b1; animation: blink 1.1s infinite; }
.msg.bot.typing span:nth-child(2) { animation-delay: .18s; }
.msg.bot.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.msg-hint {
  align-self: flex-start; font-size: 13px; color: var(--muted);
  background: #f7f9fb; border: 1px dashed var(--line); border-radius: 10px;
  padding: 8px 12px; margin: -2px 0 6px 8px; max-width: 82%;
}
.composer { border-top: 1px solid var(--line); padding: 14px 16px; background: #fbfcfd; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--red); background: #fff; color: var(--red);
  border-radius: 20px; padding: 9px 18px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.chip:hover { background: var(--red); color: #fff; }
.input-row { display: flex; gap: 8px; }
.input-row input {
  flex: 1; padding: 12px 14px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.input-row input:focus { outline: 2px solid var(--red); border-color: var(--red); }
.send-btn { white-space: nowrap; }
.send-btn:disabled { background: #d7b6b2; cursor: not-allowed; }
.file-wrap { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-label {
  display: inline-block; background: var(--navy); color: #fff; border-radius: 8px;
  padding: 12px 18px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.file-label input { display: none; }
.file-name { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-err { color: var(--red); font-size: 13px; margin-top: 8px; }
.chat-cards { display: flex; flex-direction: column; gap: 10px; }
.chat-card-btn {
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
  padding: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%;
}
.chat-card-btn:hover { border-color: var(--navy); }
.chat-card-btn .t-name { display: block; font-size: 16px; font-weight: 800; margin: 8px 0 2px; }
.chat-card-btn .t-desc { display: block; font-size: 13px; color: var(--muted); }
.chat-card-btn.plan .p-name { display: block; font-size: 16px; font-weight: 800; }
.chat-card-btn.plan .p-price { display: block; font-size: 15px; font-weight: 700; color: var(--red); margin: 4px 0; }
.chat-card-btn.plan .p-desc { display: block; font-size: 13px; color: var(--muted); }
.chat-card-btn .swatch { height: 54px; }
.retry-wrap { display: flex; justify-content: center; }
.demo-link { text-align: center; font-size: 12px; margin: 2px 0 6px; line-height: 1.3; }
.demo-link a { color: var(--navy); font-weight: 600; }

/* Mobile */
@media (max-width: 640px) {
  .panel { padding: 22px 18px; }
  .panel h1 { font-size: 23px; }
  .grid2 { grid-template-columns: 1fr; }
  .template-grid, .plan-grid { grid-template-columns: 1fr; }
  .steps { margin: 20px 0 18px; }
  .step { font-size: 0; }
  .step .dot { font-size: 14px; }
  .step.active, .step.done { font-size: 13px; }
  .actions.split { flex-direction: column; }
  .actions .btn { width: 100%; }
  .site-url { font-size: 18px; word-break: break-all; }
}

.back-btn {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
}
.back-btn:hover { color: #1f2937; text-decoration: underline; }

.form-wrap { max-width: 860px; margin: 0 auto; padding: 28px 32px 48px; }
.form-title { font-size: 26px; margin-bottom: 8px; }
.form-sub { color: #6b7280; font-size: 15px; margin-bottom: 28px; }
.form-field { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.form-label { font-weight: 600; font-size: 17px; display: block; margin-bottom: 6px; }
.form-hint { color: #6b7280; font-size: 14px; margin-bottom: 12px; }
.form-input { width: 100%; padding: 14px 16px; border: 1.5px solid #d1d5db; border-radius: 10px; font-size: 16px; }
.form-input:focus { outline: none; border-color: var(--red); }
.radio-pill { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #d1d5db; border-radius: 24px; padding: 11px 22px; margin: 4px 8px 4px 0; cursor: pointer; font-size: 15px; }
.radio-pill input { accent-color: var(--red); }
.radio-pill:has(input:checked) { border-color: var(--red); background: #fef2f2; }
.form-submit { width: 100%; margin-top: 8px; font-size: 17px; padding: 15px; }
.form-error { color: #dc2626; font-size: 14px; margin: 12px 0; min-height: 20px; }
.chat-card-btn.selected { border-color: var(--red); background: #fef2f2; }
.btn.link-btn { background: none; border: none; color: var(--red); font-size: 14px; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.btn.link-btn:disabled { opacity: 0.6; cursor: default; }
.form-note-wrap { background: #fefce8; border-color: #fde68a; }
.form-note { font-size: 14px; line-height: 1.7; color: #444; }
.form-note a { color: var(--red); }
.addr-suggest { border: 1px solid #ddd; border-radius: 10px; margin-top: 6px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.addr-suggest-item { display: block; width: 100%; text-align: left; background: #fff; border: none; border-bottom: 1px solid #f0f0f0; padding: 12px 14px; font-size: 15px; cursor: pointer; color: #333; }
.addr-suggest-item:last-child { border-bottom: none; }
.addr-suggest-item:hover, .addr-suggest-item:active { background: #f8f8f8; }

.hidden { display: none !important; }
.form-goodbye { text-align: center; padding: 10px 0; }
