:root {
  --bg: #e9e9e9;
  --bg-accent: #cfcfcf;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: rgba(17, 17, 17, 0.12);
  --brand: #111111;
  --brand-deep: #000000;
  --sage: #4d4d4d;
  --success: #1f1f1f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 36%),
    linear-gradient(160deg, #fafafa 0%, var(--bg) 40%, #dcdcdc 100%);
  color: var(--ink);
  letter-spacing: 0;
}

body {
  padding: 24px 16px 48px;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  max-width: 460px;
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 15, 15, 0.96), rgba(0, 0, 0, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  color: #f8f8f8;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero__badge,
.pill,
.section-tag,
.label,
.selection-card__status {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Bebas Neue", "Outfit", sans-serif;
}

.hero__badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 600;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.hero__brand-copy {
  min-width: 0;
}

.hero__logo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 22px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.hero__eyebrow {
  margin: 8px 0 6px;
  font-size: 0.84rem;
  opacity: 0.78;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: clamp(2rem, 7vw, 2.7rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
}

.hero__copy {
  margin: 14px 0 20px;
  line-height: 1.5;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

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

.hero__project div {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  color: inherit;
  opacity: 0.74;
}

.phone-frame {
  margin-top: -18px;
  padding: 18px 0 0;
}

.card,
.status-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(74, 45, 18, 0.08);
}

.status-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.status-card h2,
.card h3 {
  margin: 0;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  letter-spacing: 0.03em;
}

.status-card__hint,
.card p,
.timeline__item p,
.contact-card p,
.selection-card__subtitle {
  color: var(--muted);
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

.progress-ring {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  color: var(--brand-deep);
  background:
    radial-gradient(circle closest-side, #ffffff 76%, transparent 77% 100%),
    conic-gradient(var(--brand) 0 60%, rgba(17, 17, 17, 0.15) 60% 100%);
}

.progress-bar {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.12);
}

.progress-bar__fill {
  height: 100%;
  width: 60%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #4c4c4c);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.tab,
.button {
  border: 0;
  cursor: pointer;
}

.tab {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.6);
  color: var(--muted);
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

.tab.is-active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(74, 45, 18, 0.1);
}

.panel {
  display: none;
  gap: 16px;
}

.panel.is-active {
  display: grid;
}

.card {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.card + .card {
  margin-top: 16px;
}

.card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.section-tag,
.pill,
.selection-card__status {
  font-size: 0.7rem;
  font-weight: 700;
}

.section-tag {
  margin: 0 0 8px;
  color: var(--brand);
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--sage);
}

.pill--warm {
  background: rgba(17, 17, 17, 0.12);
  color: var(--brand-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #3b3b3b);
}

.button--ghost {
  color: var(--brand-deep);
  background: rgba(17, 17, 17, 0.08);
}

.timeline__item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline__item + .timeline__item {
  margin-top: 16px;
}

.timeline__dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(109, 112, 104, 0.28);
}

.timeline__dot--done {
  background: var(--success);
}

.timeline__dot--active {
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(17, 17, 17, 0.12);
}

.contact-card__grid {
  display: grid;
  gap: 14px;
}

.selection-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.selection-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.selection-card__toggle {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.selection-card__title {
  display: block;
  font-weight: 700;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  letter-spacing: 0.05em;
}

.selection-card__subtitle {
  font-size: 0.88rem;
}

.selection-card__status {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--muted);
}

.selection-card.is-submitted .selection-card__status {
  background: rgba(17, 17, 17, 0.14);
  color: var(--success);
}

.selection-card__body {
  display: none;
  padding: 0 18px 18px;
}

.selection-card.is-open .selection-card__body {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid rgba(65, 48, 31, 0.16);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--ink);
  resize: vertical;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

input[type="text"]:focus,
textarea:focus {
  outline: 2px solid rgba(17, 17, 17, 0.12);
  border-color: rgba(17, 17, 17, 0.3);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.quote-sections {
  display: grid;
  gap: 12px;
}

.quote-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.door-hardware-fields {
  display: grid;
  gap: 12px;
}

.door-hardware-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.door-hardware-block strong {
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.paint-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.paint-fields__header {
  display: grid;
  gap: 3px;
}

.paint-fields__header strong {
  font-size: 0.95rem;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  letter-spacing: 0.02em;
}

.paint-fields__header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.paint-selection-list {
  display: grid;
  gap: 12px;
}

.paint-section-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.paint-section-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.paint-section-group:first-of-type {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.9));
}

.paint-section-group:last-of-type {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.06), rgba(17, 17, 17, 0.03));
}

.paint-section-group__header strong {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paint-selection-item {
  display: grid;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.paint-selection-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.paint-selection-title {
  display: block;
  font-size: 0.95rem;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  letter-spacing: 0.02em;
}

.paint-selection-summary {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.paint-selection-chevron {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
}

.paint-selection-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.paint-remove-button {
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.category-directions {
  padding: 14px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: #333333;
  font-size: 0.9rem;
  line-height: 1.5;
}

.quote-section__header {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.quote-section__header strong {
  font-size: 0.95rem;
}

.quote-section__header span,
.mini-upload-empty,
.mini-upload-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.mini-upload-zone {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px dashed rgba(17, 17, 17, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  cursor: pointer;
}

.mini-upload-zone input {
  display: none;
}

.mini-upload-zone span {
  font-size: 0.9rem;
  font-weight: 600;
}

.mini-upload-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.mini-upload-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.mini-upload-item img,
.mini-upload-item__fallback {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-upload-item__fallback {
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-upload-item strong {
  display: block;
  font-size: 0.88rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.upload-zone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  margin-top: 16px;
  padding: 18px;
  text-align: center;
  border: 1.5px dashed rgba(17, 17, 17, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 239, 239, 0.82));
  color: var(--brand-deep);
  cursor: pointer;
}

.upload-zone input {
  display: none;
}

.upload-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.upload-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.upload-item img,
.upload-item .upload-item__fallback {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}

.upload-item__fallback {
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.08);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 700;
}

.upload-item strong,
.upload-item span {
  display: block;
}

.upload-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 700px) {
  body {
    padding-top: 36px;
  }

  .app-shell {
    max-width: 540px;
  }

  .contact-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
