/* ================= Multi-step client form ================= */

.form-shell {
  min-height: 100vh;
  padding: 32px 0 140px;
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
}
.form-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}
.form-header h1 { font-size: 1.6rem; margin-top: 6px; }
.form-header p { color: var(--muted); margin: 6px 0 0; font-size: 0.95rem; }

/* ---- Progress rail ---- */
.progress-wrap { max-width: 720px; margin: 0 auto 28px; padding: 0 4px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.progress-meta .current-step-name { color: var(--ink); }
.progress-track { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 999px; transition: width 0.35s ease; }

.progress-dots { display: none; }
@media (min-width: 860px) {
  .progress-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
  }
  .progress-dots .dot-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
  .progress-dots .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
  .progress-dots .dot-item.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
  .progress-dots .dot-item.active .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .progress-dots .dot-label { font-size: 0.68rem; color: var(--muted); text-align: center; }
  .progress-dots .dot-item.active .dot-label { color: var(--ink); font-weight: 700; }
}

/* ---- Step panels ---- */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 26px;
  animation: stepIn 0.25s ease;
}
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-panel { display: none; }
.step-panel.active { display: block; }
.step-title { font-size: 1.25rem; margin-bottom: 4px; }
.step-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* ---- Checkbox / choice cards (Step 06) ---- */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.choice-card {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card .choice-icon { font-size: 1.3rem; margin-bottom: 8px; display: block; }
.choice-card .choice-label { font-weight: 700; font-size: 0.9rem; }
.choice-card.checked { border-color: var(--accent); background: var(--accent-soft); }
.choice-card .check-tick { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; }
.choice-card.checked .check-tick { background: var(--accent); border-color: var(--accent); }
.choice-card.checked .check-tick::after { content: ""; display: block; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 2px auto 0; }

/* ---- Service cards (Step 04) ---- */
.service-card { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; position: relative; background: var(--surface); }
.service-card .service-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.service-card .service-head h4 { margin: 0; font-size: 1rem; }
.remove-service { background: none; border: none; color: var(--danger); font-weight: 700; font-size: 0.82rem; cursor: pointer; padding: 6px 10px; border-radius: var(--radius-sm); }
.remove-service:hover { background: var(--danger-soft); }
.add-service-btn { width: 100%; border: 1.5px dashed var(--border); background: var(--paper); color: var(--accent); font-weight: 700; padding: 16px; border-radius: var(--radius-md); cursor: pointer; }
.add-service-btn:hover { border-color: var(--accent); }

/* ---- File upload ---- */
.upload-box {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
}
.upload-box.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-box input[type=file] { display: none; }
.upload-box .upload-icon { font-size: 1.6rem; }
.upload-box .upload-text { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.upload-box .upload-text strong { color: var(--accent); }

.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); font-size: 0.85rem; }
.file-item .file-icon { font-size: 1.1rem; }
.file-item .file-meta { flex: 1; min-width: 0; }
.file-item .file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .file-status { color: var(--success); font-size: 0.75rem; }
.file-item .file-status.uploading { color: var(--warn); }
.file-item .remove-file { background: none; border: none; color: var(--danger); cursor: pointer; font-weight: 700; }

.color-row { display: flex; gap: 16px; }
.color-swatch-input { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; flex: 1; }

/* Domain Name Preference (Step 02) */
.field-group { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 18px 18px 4px; margin: 8px 0 24px; background: var(--paper); }
.field-group > label { display: block; font-weight: 700; margin-bottom: 6px; }
.field-group .field-hint { color: var(--muted); font-size: 0.82rem; margin: 0 0 16px; line-height: 1.5; }
.domain-input-group { display: flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.domain-input-group .domain-input { border: none; border-radius: 0; flex: 1; min-width: 0; }
.domain-input-group .domain-input:focus { box-shadow: none; outline: none; }
.domain-input-group .domain-suffix { display: flex; align-items: center; padding: 0 14px; background: var(--paper); color: var(--muted); font-size: 0.88rem; font-weight: 600; white-space: nowrap; border-left: 1.5px solid var(--border); }
.field.has-error .domain-input-group { border-color: var(--danger); }
.color-swatch-input input[type=color] { width: 34px; height: 34px; border: none; padding: 0; background: none; cursor: pointer; }
.color-swatch-input input[type=text] { border: none; flex: 1; font-family: monospace; }

/* ---- Nav buttons ---- */
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.step-nav .spacer { flex: 1; }

.sticky-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 -6px 20px rgba(20,33,61,0.06);
  z-index: 40;
}
.sticky-nav .container { max-width: 720px; display: flex; gap: 12px; }
.sticky-nav .spacer { flex: 1; }

@media (min-width: 860px) {
  .sticky-nav { display: none; }
  .step-nav { display: flex; }
}
@media (max-width: 859px) {
  .step-nav { display: none; }
}

/* ---- Review page ---- */
.review-section { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
.review-section .review-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--border); }
.review-section .review-head h4 { margin: 0; font-size: 0.95rem; }
.review-section .review-body { padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px 20px; }
.review-item .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.review-item .value { font-size: 0.92rem; margin-top: 3px; word-break: break-word; }
.edit-link { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 0.82rem; cursor: pointer; }

.confirm-box { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin: 24px 0; }
.confirm-box input { margin-top: 3px; width: 18px; height: 18px; }

/* ---- Success page ---- */
.success-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.success-card { max-width: 480px; width: 100%; text-align: center; padding: 44px 30px; }
.success-check { width: 70px; height: 70px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 18px; }
.success-id { display: inline-block; margin-top: 14px; font-family: monospace; font-size: 1.1rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark); padding: 8px 18px; border-radius: var(--radius-sm); }
.success-details { text-align: left; margin-top: 24px; border-top: 1px solid var(--border); padding-top: 18px; }
.success-details .row-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.success-details .row-item span:first-child { color: var(--muted); }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 0.85rem; box-shadow: var(--shadow-lg); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.toast.show { opacity: 1; }

@media (max-width: 640px) {
  .form-card { padding: 22px 16px; }
  .form-shell { padding-bottom: 100px; }
}
