:root {
  --bg: #eef4f7;
  --panel: #ffffff;
  --text: #172126;
  --muted: #5d707b;
  --primary: #0e7a67;
  --primary-hover: #0b6554;
  --line: #d8e2e7;
  --shadow: 0 18px 38px rgba(15, 41, 58, 0.12);
}

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

body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, #d7ece6 0%, transparent 38%),
    radial-gradient(circle at bottom left, #d9e7f1 0%, transparent 46%),
    var(--bg);
}

.topbar {
  width: min(1024px, 92vw);
  margin: 0 auto;
  padding: 1.25rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
}

.text-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.centered-layout {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.hero-card {
  width: min(760px, 96vw);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.hero-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.tagline {
  margin: 0 auto 2rem;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.count-value {
  font-weight: 800;
  color: var(--primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.capacity-warning {
  margin: 1.25rem auto 0;
  max-width: 62ch;
  border: 1px solid #f3d48d;
  border-radius: 12px;
  background: #fff9ed;
  color: #744c07;
  padding: 0.8rem 0.9rem;
  line-height: 1.5;
  font-weight: 600;
}

.form-layout {
  padding: 1.5rem 1rem 3rem;
}

.form-card {
  width: min(840px, 96vw);
  margin: 0 auto;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.saved-card {
  width: min(840px, 96vw);
  margin: 1rem auto 0;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

[hidden] {
  display: none !important;
}

.saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.saved-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.text-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.text-button:hover {
  background: #f6fafc;
}

.form-card h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.intro-text {
  margin: 0.45rem 0 1.5rem;
  color: var(--muted);
}

.field-hint {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8fd9ca;
  border-color: transparent;
}

.disclaimer {
  border: 1px solid #c7ddd7;
  background: #f4faf8;
  border-radius: 12px;
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.disclaimer h2 {
  margin: 0;
  font-size: 1rem;
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: start;
  gap: 0.65rem;
}

.checkbox-row input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.18rem;
}

.confirmation-message {
  margin: 0.15rem 0 0;
  min-height: 1.1rem;
  color: #056a59;
  font-weight: 600;
}

.saved-empty {
  color: var(--muted);
  margin: 1rem 0 0;
}

.saved-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.saved-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fbfdfe;
}

.saved-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.saved-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-line;
}

.dashboard-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .saved-header {
    flex-direction: column;
    align-items: start;
  }
}
