* { box-sizing: border-box; }

:root {
  --navy: #173b63;
  --navy-dark: #0f2a47;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #61707f;
  --border: #d8e0e7;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 86px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand { font-size: 24px; font-weight: 800; }
.tagline { font-size: 13px; opacity: .9; margin-top: 3px; }

.icon-button,
.back-button {
  border: 0;
  background: transparent;
}

.icon-button {
  color: white;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.app-main { padding: 18px 14px 28px; }
.view { display: none; }
.active-view { display: block; }

.welcome-block h1 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.welcome-block p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.main-actions {
  display: grid;
  gap: 14px;
}

.action-card {
  width: 100%;
  min-height: 112px;
  border: 0;
  border-radius: 20px;
  padding: 18px;
  text-align: left;
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  gap: 14px;
  align-items: center;
  background: white;
  box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

.action-icon { font-size: 36px; }
.action-copy { display: grid; gap: 5px; }
.action-copy strong { font-size: 22px; color: var(--navy); }
.action-copy small { font-size: 14px; color: var(--muted); line-height: 1.4; }
.chevron { font-size: 32px; color: #8a98a6; }

.promise-card,
.app-card,
.result-card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.promise-card { margin-top: 18px; }
.promise-card p { margin: 7px 0 0; color: var(--muted); }

.back-button {
  min-height: 44px;
  color: var(--navy);
  font-weight: 700;
  padding: 0;
  margin-bottom: 10px;
}

.section-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-title > span { font-size: 32px; }
.section-title h2 { margin: 0 0 5px; font-size: 25px; }
.section-title p { margin: 0; color: var(--muted); line-height: 1.4; }

label, legend {
  display: block;
  font-weight: 700;
  margin: 15px 0 7px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-height: 50px;
  background: white;
  color: var(--text);
  font-size: 16px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary {
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  min-height: 52px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 16px;
}

.wide { width: 100%; margin-top: 18px; }

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-chips button {
  border: 1px solid var(--border);
  background: #f7f9fb;
  color: var(--navy);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 13px;
  font-weight: 700;
}

.photo-button {
  margin-top: 0;
  border: 2px dashed #aeb9c4;
  border-radius: 16px;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: #fafbfc;
}

.photo-button span { font-size: 38px; }
.photo-button strong { display: block; color: var(--navy); margin-top: 7px; }
.photo-button small { display: block; color: var(--muted); font-weight: 400; margin-top: 5px; line-height: 1.4; }
.file-input { position: absolute; opacity: 0; pointer-events: none; }

.photo-preview {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-preview img { width: 100%; display: block; max-height: 320px; object-fit: cover; }

fieldset {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

fieldset legend { padding: 0 6px; margin: 0; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.4; }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 3px 0;
  font-weight: 600;
}

.check-row input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
}

.result-card {
  margin-top: 15px;
  border-left: 5px solid var(--navy);
}

.result-card h3 { margin-top: 0; }
.result-card p { line-height: 1.45; }
.hidden { display: none !important; }

.listing-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.listing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.listing-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.listing-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.listing-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.listing-desc {
  margin: 10px 0 0;
  line-height: 1.45;
}

.platform-line {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border-top: 1px solid var(--border);
  z-index: 10;
}

.bottom-nav button {
  border: 0;
  background: white;
  min-height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--muted);
}

.bottom-nav button span { font-size: 22px; }
.bottom-nav button small { font-size: 12px; }
.bottom-nav button.nav-active { color: var(--navy); font-weight: 800; }

@media (max-width: 560px) {
  .app-main { padding-left: 12px; padding-right: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .action-card { min-height: 122px; grid-template-columns: 52px 1fr 20px; padding: 16px; }
  .welcome-block h1 { font-size: 26px; }
}
