@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Manrope:wght@400;600;700&display=swap");

:root {
  --ink: #0f1724;
  --muted: #4c5b72;
  --bg-a: #f7efe6;
  --bg-b: #d9e6f2;
  --panel: rgba(255, 255, 255, 0.8);
  --stroke: rgba(14, 28, 44, 0.15);
  --primary: #005f73;
  --accent: #ca6702;
  --ok: #2a9d8f;
  --error: #ae2012;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(130deg, var(--bg-a), var(--bg-b));
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
}

.bg-one {
  width: 320px;
  height: 320px;
  background: rgba(202, 103, 2, 0.18);
  top: -70px;
  right: -50px;
}

.bg-two {
  width: 280px;
  height: 280px;
  background: rgba(0, 95, 115, 0.15);
  bottom: -80px;
  left: -40px;
}

.wrap {
  width: min(980px, 92vw);
  margin: 1.4rem auto 3rem;
  display: grid;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 0.5rem 0.1rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

h1, h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  margin-top: 0.25rem;
}

.sub {
  margin-top: 0.6rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  padding: 0.66rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.grid {
  display: grid;
  gap: 0.7rem;
}

label,
fieldset {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

fieldset {
  border: 1px dashed var(--stroke);
  border-radius: 12px;
  padding: 0.7rem;
}

legend {
  font-weight: 700;
  color: var(--ink);
  padding: 0 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0.62rem 0.78rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.72rem 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.accent {
  background: var(--accent);
  color: #fff;
}

.quote-empty {
  color: var(--muted);
}

.quote-lines {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.25rem;
}

.line-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.total {
  margin-top: 0.7rem;
  font-weight: 800;
  font-size: 1.08rem;
}

.hidden {
  display: none;
}

.status {
  margin: 0;
  font-weight: 700;
  color: var(--ok);
}

.status.error {
  color: var(--error);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 520ms ease forwards;
}

.reveal:nth-child(2) { animation-delay: 60ms; }
.reveal:nth-child(3) { animation-delay: 120ms; }
.reveal:nth-child(4) { animation-delay: 180ms; }
.reveal:nth-child(5) { animation-delay: 240ms; }
.reveal:nth-child(6) { animation-delay: 300ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(96vw, 980px);
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
}
