:root {
  --ink: #1f1c18;
  --muted: #5b5b5b;
  --accent: #b45a2a;
  --accent-soft: #f5e3d4;
  --card: #fffaf4;
  --border: #eadfd2;
  --shadow: 0 24px 60px rgba(31, 28, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Kanit", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff5e6 0%, #f6efe7 45%, #f3ebe2 100%);
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  background: linear-gradient(140deg, #fff2de, #f8e6d6);
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(180, 90, 42, 0.12);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--accent);
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  margin: 0 0 12px;
}

.hero__lead {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

h2 {
  margin-top: 0;
  font-size: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0 18px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

label {
  font-size: 14px;
  color: var(--muted);
}

input,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.helper {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.support-link {
  margin-top: 12px;
}

.support-actions {
  align-items: center;
  margin-top: 12px;
}

.copy-button {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(31, 28, 24, 0.12);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
}

.radio-option input {
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.checks {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.checks input {
  margin-right: 8px;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.result-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pill {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.errors {
  color: #7c1d1d;
  background: #ffeaea;
  border-radius: 12px;
  padding: 12px 14px;
  display: none;
  font-size: 14px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.result-label {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.result-value {
  margin: 6px 0 2px;
  font-size: 24px;
  font-weight: 600;
}

.result-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  background: #1f1c18;
  color: #fffaf4;
  font-size: 18px;
}

.total-value {
  font-weight: 400;
}

.total-value strong {
  font-weight: 700;
}

.note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.mode-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff1e1;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.mode-note p {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--ink);
}

.mode-note ul {
  margin: 0;
  padding-left: 18px;
}

.mode-note li {
  margin-bottom: 6px;
}

.mode-note li:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .hero {
    padding: 28px;
  }

  h1 {
    font-size: 28px;
  }
}
