/* ============================================
   NEWDAY GROWTH — Onboarding Form Styles
   ============================================ */

:root {
  --bg: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-soft: #F5F2ED;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --accent: #E55B2D;
  --accent-soft: #FEEEE6;
  --accent-dark: #C7451B;
  --black: #0A0A0A;
  --success: #16A34A;
  --error: #DC2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent-dark); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 248, 245, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--black);
}

.logo span { color: var(--accent); }

.header-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   INTRO / HERO
   ============================================ */
.intro {
  padding: 64px 0 48px;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.display {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
  margin-bottom: 32px;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

#stepName { color: var(--text); font-weight: 600; }

/* ============================================
   WIZARD
   ============================================ */
.wizard-section {
  padding-bottom: 96px;
}

.wizard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.step {
  display: none;
  border: none;
  padding: 0;
  animation: fadeIn 0.3s ease;
}

.step.active { display: block; }

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

.step-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.step-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text);
}

.step-help {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.field small {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

.field .req { color: var(--accent); margin-left: 2px; }
.field .opt { color: var(--text-light); font-weight: 400; font-size: 13px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-light);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--sans);
}

.field input.error,
.field select.error,
.field textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.grid-2 .field,
.grid-3 .field {
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================
   CHECKBOXES
   ============================================ */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
}

.checkbox:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.checkbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-card);
  transition: all 0.15s ease;
}

.checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox.big-checkbox {
  align-items: flex-start;
  padding: 16px 18px;
  font-weight: 400;
  line-height: 1.5;
  font-size: 14px;
  color: var(--text-muted);
}

.checkbox.big-checkbox input[type="checkbox"] { margin-top: 2px; }

/* ============================================
   CHIP INPUT (for neighborhoods, cities, landmarks)
   ============================================ */
.chips-help {
  font-size: 13px;
  color: var(--text-light);
  margin-top: -4px;
  margin-bottom: 8px;
}

.chip-input {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chip-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chips {
  display: contents;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-size: 13px;
  font-weight: 500;
  animation: chipIn 0.2s ease;
}

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.chip button {
  background: none;
  border: none;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.chip button:hover { opacity: 1; }

.chip-input input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 140px;
  padding: 4px;
  font-family: var(--sans);
  font-size: 14px;
  background: transparent;
}

/* ============================================
   SERVICES BLOCKS
   ============================================ */
.service-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.service-block-header {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ============================================
   DROPZONES (file upload)
   ============================================ */
.upload-block { margin-bottom: 28px; }

.dropzone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-soft);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dz-text {
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.dz-text strong {
  color: var(--accent);
  font-weight: 600;
}

.dz-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 16px;
  pointer-events: none;
}

.dz-preview:empty { margin-top: 0; }

.dz-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  pointer-events: auto;
}

.dz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dz-thumb .dz-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 10px;
  padding: 12px 6px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--text);
  background: var(--bg-soft);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent-soft);
  font-size: 13px;
  padding: 10px 18px;
  margin-bottom: 20px;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-submit {
  background: var(--black);
  color: white;
  padding: 16px 36px;
  font-size: 16px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--text);
  transform: translateY(-1px);
}

.hidden { display: none !important; }

/* ============================================
   WIZARD NAV
   ============================================ */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.wizard-nav .btn-secondary { margin-right: auto; }
.wizard-nav .btn-primary,
.wizard-nav .btn-submit { margin-left: auto; }

/* ============================================
   SUBMIT STATUS
   ============================================ */
.submit-status {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
}

.submit-status.loading {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.submit-status.success {
  background: #DCFCE7;
  color: #166534;
}

.submit-status.error {
  background: #FEE2E2;
  color: #991B1B;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text);
  color: white;
  padding: 32px 0;
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.site-footer a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.site-footer a:hover { color: white; }

@media (max-width: 720px) {
  .wizard { padding: 28px 20px; border-radius: var(--radius-lg); }
  .intro { padding: 40px 0 24px; }
}
