* {
  box-sizing: border-box;
}

:root {
  --bg: #f3f1eb;
  --card: #ffffff;
  --text: #15202b;
  --muted: #667085;
  --navy: #123047;
  --gold: #b9975b;
  --border: #ddd7c9;
  --danger: #9f2a2a;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f4ed, #ece7dc);
}

.app-shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.hero {
  background: var(--navy);
  color: white;
  padding: 34px;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(18, 48, 71, 0.18);
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 10px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  margin: 0;
}

.hero-text {
  max-width: 820px;
  color: #e9edf1;
  line-height: 1.7;
  margin-bottom: 0;
}

.notice-card,
.card {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 10px 25px rgba(21, 32, 43, 0.06);
}

.notice-card {
  background: #fff8e8;
}

h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
}

.muted {
  color: var(--muted);
  margin-top: 0;
  line-height: 1.6;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5d0c5;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: white;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

button.secondary {
  background: #efe8d9;
  color: var(--navy);
}

button.danger {
  background: var(--danger);
}

.output-card textarea {
  width: 100%;
  min-height: 600px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.output-block {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

pre {
  white-space: pre-wrap;
  line-height: 1.6;
  background: #f8f6f0;
  border-radius: 16px;
  padding: 16px;
}

.hidden {
  display: none;
}

li {
  margin-bottom: 8px;
  line-height: 1.5;
}

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

  .hero,
  .card,
  .notice-card {
    padding: 20px;
    border-radius: 20px;
  }
}


.hidden-input {
  display: none;
}
