:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --field-bg: #eeeeee;
  --field-hover: #e5e5e5;
  --border: #e2e6ea;
  --text: #111827;
  --text-muted: #6b7280;
  --label-blue: #3b82c4;
  --green: #489738;
  --green-hover: #3c822e;
  --green-soft: #ecf6ea;
  --danger: #d64545;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.topbar {
  border-bottom: 1px solid #f0f1f3;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: #f4f5f7;
  color: var(--text);
}

.nav-link.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}

.nav-auth-btn {
  border: 1px solid var(--green);
  background: var(--green-soft);
  color: #1f5c14;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-auth-btn:hover {
  background: var(--green);
  color: #ffffff;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-tab {
  border: 1.5px solid var(--border);
  background: #f9fafb;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--green-soft);
  border-color: var(--green);
  color: #1f5c14;
}

.user-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}

.btn-danger-small {
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-danger-small:hover {
  background: #fef2f2;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Main container */
.page-wrap {
  padding: 24px 16px 64px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

.loading-state {
  text-align: center;
  color: var(--text-muted);
  padding: 64px 0;
  font-size: 14px;
}

/* Listing Summary Card (matches top of screenshot 1 & 2) */
.listing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.listing-thumb {
  width: 112px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8dfd5 0%, #d4c4b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c6f60;
}

.listing-meta {
  min-width: 0;
}

.listing-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.listing-specs {
  margin: 0 0 4px;
  font-size: 14px;
  color: #374151;
}

.listing-avail {
  margin: 0;
  font-size: 13px;
  color: #374151;
}

/* Stepper / Progress bar (matches green clipboard + checkmark + green line) */
.stepper {
  margin-bottom: 34px;
}

.stepper-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stepper-icon-left {
  color: var(--green);
  display: inline-flex;
  align-items: center;
}

.stepper-icon-right {
  color: #6b7280;
  display: inline-flex;
  align-items: center;
}

.stepper-icon-right.done {
  color: var(--green);
}

.stepper-track {
  width: 100%;
  height: 3px;
  background: #d1d5db;
  border-radius: 999px;
  overflow: hidden;
}

.stepper-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Section heading */
.section-heading {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Form fields */
.field-group {
  margin-bottom: 18px;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--label-blue);
  margin-bottom: 6px;
}

.field-helper {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.text-input,
.textarea-input {
  width: 100%;
  border: 1.5px solid transparent;
  background: var(--field-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.text-input:focus,
.textarea-input:focus {
  background: #ffffff;
  border-color: var(--label-blue);
}

.textarea-input {
  min-height: 112px;
  resize: vertical;
  border: 1px solid #d1d5db;
  background: #f5f5f5;
}

/* Phone input with country selector */
.phone-wrap {
  display: flex;
  align-items: center;
  background: var(--field-bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.phone-wrap:focus-within {
  background: #ffffff;
  border-color: var(--label-blue);
}

.country-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 6px 12px 12px;
  cursor: pointer;
  outline: none;
}

.phone-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 12px 14px 12px 4px;
  outline: none;
}

/* Date input with calendar icon on left */
.date-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--field-bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding-left: 12px;
}

.date-wrap:focus-within {
  background: #ffffff;
  border-color: var(--label-blue);
}

.date-icon {
  color: #4b5563;
  display: inline-flex;
  margin-right: 8px;
  pointer-events: none;
}

.date-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 12px 12px 12px 0;
  outline: none;
}

/* Pill / Tile choice grids */
.option-grid {
  display: grid;
  gap: 10px;
}

.option-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.option-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.option-grid.mt-10 {
  margin-top: 10px;
}

.option-btn {
  width: 100%;
  border: 1.5px solid transparent;
  background: var(--field-bg);
  color: #5b626b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.option-btn:hover {
  background: var(--field-hover);
  color: var(--text);
}

.option-btn.selected {
  background: var(--green-soft);
  border-color: var(--green);
  color: #1f5c14;
  font-weight: 600;
}

.custom-input-wrap {
  margin-top: 10px;
}

/* Checkboxes */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 26px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #1f2937;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row a {
  color: var(--text);
  text-decoration: underline;
}

/* Action buttons */
.actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary {
  min-width: 170px;
  border: none;
  background: var(--green);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary:hover {
  background: var(--green-hover);
}

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

.btn-secondary {
  min-width: 150px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #475569;
}

.hidden {
  display: none !important;
}

.error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
}

/* Success & Created cards */
.success-card,
.panel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.success-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.success-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.link-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.link-box-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--label-blue);
  margin-bottom: 6px;
}

.link-box-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.link-box-input {
  flex: 1;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
}

.btn-small {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-small:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Landlord applications dashboard */
.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  background: #ffffff;
}

.app-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.app-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.app-contact {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.badge-new { background: #eff6ff; color: #1d4ed8; }
.badge-shortlisted { background: var(--green-soft); color: #1f5c14; }
.badge-rejected { background: #fef2f2; color: #b91c1c; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 13px;
  margin-bottom: 10px;
}

.app-kv strong {
  color: var(--text-muted);
  font-weight: 500;
}

.app-msg {
  background: #f9fafb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  margin: 10px 0;
  white-space: pre-wrap;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.saved-forms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.saved-form-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.site-footer {
  border-top: 1px solid #f0f1f3;
  padding: 18px 16px 28px;
  margin-top: 24px;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-link {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
}

.footer-link:hover {
  color: var(--green);
}

.footer-sep {
  color: #d1d5db;
}

.policy-section {
  margin-bottom: 18px;
}

.policy-section h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.policy-section p,
.policy-section li {
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
}

.policy-section ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.success-banner {
  background: var(--green-soft);
  border: 1px solid #b7dfae;
  color: #1f5c14;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
}

.gdpr-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

/* Landing page */
.hero-box {
  text-align: center;
  padding: 26px 12px 30px;
}

.hero-badge {
  display: inline-block;
  background: var(--green-soft);
  color: #1f5c14;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-sub {
  margin: 0 auto 24px;
  max-width: 500px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.preview-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
  margin: 10px 0 26px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f1f3;
  margin-bottom: 12px;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  margin-bottom: 8px;
  font-size: 13px;
}

.preview-row:last-child {
  margin-bottom: 0;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.preview-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #374151;
}

.preview-tag.ok {
  background: var(--green-soft);
  color: #1f5c14;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #ffffff;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.steps-strip {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: #fafafa;
  margin-bottom: 24px;
}

.steps-strip h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.step-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 25px;
  }
  .feature-grid,
  .steps-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .field-row-2 {
    grid-template-columns: 1fr;
  }
  .option-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .listing-thumb {
    width: 88px;
    height: 66px;
  }
}
