:root {
  --mint: #d4f5ee;
  --berry: #f9d3f0;
  --blueberry: #d3ddff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --border-subtle: #e5e7eb;
  --text-primary: #111827;
  --text-muted: #6b7280;
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 8px 18px rgba(15, 23, 42, 0.08);
  --input-height: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at top left, #fdf2ff, #eef6ff 40%, #f9fafb 75%);
  -webkit-font-smoothing: antialiased;
}

/* Layout shell */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to right,
    rgba(212, 245, 238, 0.85),
    rgba(243, 232, 255, 0.85),
    rgba(211, 221, 255, 0.85)
  );
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, var(--mint), var(--berry), var(--blueberry));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #0b1020;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  overflow: hidden;           /* NEW: keep logo image inside circle */
}

/* NEW: scale the logo image inside the circle */
.brand-mark .brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-weight: 600;
  font-size: 14px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.header-meta {
  display: flex;
  align-items: center;
}

.header-pill {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--text-muted);
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, var(--mint), var(--berry), var(--blueberry));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 36px;
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr);
  gap: 24px;
}

.hero-copy h1 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.hero-copy p {
  margin: 0 0 12px;
  color: #111827;
  max-width: 520px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.hero-highlights li {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}

.stat-pill {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.82);
  color: #e5e7eb;
  box-shadow: var(--shadow-subtle);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.stat-value {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  font-size: 14px;
}

/* Main content / form shell */

.main-content {
  flex: 1;
  padding: 28px 16px 40px;
}

.form-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 24px 20px 28px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.form-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.form-header p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.step-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-strip-item {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  color: var(--text-muted);
  background: rgba(249, 250, 251, 0.9);
}

.step-strip-item.is-active {
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--accent-soft);
  color: #1e3a8a;
}

/* Sections */

.form-section {
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  padding-top: 20px;
  margin-top: 20px;
}

.form-section:first-of-type {
  border-top: none;
  padding-top: 18px;
  margin-top: 14px;
}

.section-header h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.section-header p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Grids & fields */

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 16px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field .field-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.required {
  color: #b91c1c;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font: inherit;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  min-height: var(--input-height);
  outline: none;
  background: #ffffff;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

textarea {
  border-radius: 14px;
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

/* Checkbox pills */

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  background: #f9fafb;
  cursor: pointer;
}

.checkbox-pill input {
  width: 14px;
  height: 14px;
}

.policy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 16px;
}

/* Listings subsection */

.subsection-header h4 {
  margin: 18px 0 4px;
  font-size: 14px;
}

.subsection-header p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.property-group {
  border-radius: 18px;
  border: 1px dashed rgba(209, 213, 219, 0.9);
  padding: 14px 12px 14px;
  background: #f9fafb;
  margin-bottom: 12px;
}

.property-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.property-group-title {
  font-size: 13px;
  font-weight: 600;
}

.remove-property-btn {
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.8);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}

.remove-property-btn:hover {
  background: rgba(248, 113, 113, 0.12);
}

/* Property actions */

.property-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.helper-text {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Buttons */

.primary-btn,
.secondary-btn {
  font: inherit;
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
  filter: brightness(1.03);
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
}

.secondary-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(156, 163, 175, 0.7);
  padding-inline: 14px;
}

.secondary-btn:hover {
  background: #f3f4f6;
}

/* Form footer */

.form-footer {
  margin-top: 22px;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-disclaimer {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.form-footnote {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(229, 231, 235, 0.85);
  background: #ffffff;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Toast */

.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 18px;
  margin-inline: auto;
  max-width: 420px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  font-size: 13px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
  z-index: 40;
}

/* Validation styling */

#onboarding-form.was-validated input:invalid,
#onboarding-form.was-validated select:invalid,
#onboarding-form.was-validated textarea:invalid {
  border-color: rgba(220, 38, 38, 0.9);
}

/* Responsive */

@media (min-width: 720px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-meta {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .form-shell {
    padding: 18px 14px 22px;
    border-radius: 20px 20px 0 0;
  }

  .property-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast {
    max-width: calc(100% - 32px);
  }
}
