:root {
  --cream: #f7f4ec;
  --almond: #e3d4c2;
  --mist: #dadfdb;
  --card: #fbf9f3;
  --input: #f4f1e8;
  --border: #c3cfa9;
  --sage: #8f907e;
  --green-light: #a9b798;
  --green: #87a272;
  --green-dark: #798770;
  --pine: #383b26;
  --earth: #664d38;
  --tan: #b89178;
  --error: #a4492f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--pine);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(195, 207, 169, 0.7), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(135, 162, 114, 0.35), transparent 50%),
    linear-gradient(160deg, var(--cream), var(--almond));
  background-attachment: fixed;
}

.card {
  background: var(--card);
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  padding: 44px 38px;
  border: 1px solid var(--border);
  border-top: 6px solid var(--green);
  box-shadow: 0 14px 34px rgba(56, 59, 38, 0.15);
}

header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mist);
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--pine);
}

h1::before,
h1::after {
  content: "";
  font-size: 1.4rem;
  margin: 0 10px;
  vertical-align: middle;
}

.subtitle {
  color: var(--green-dark);
  font-weight: 600;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
}

.intro {
  color: var(--earth);
  margin-top: 14px;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
  border: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

label,
legend {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--pine);
}

.optional {
  color: var(--sage);
  font-weight: 400;
}

input[type="text"],
input[type="number"],
select,
textarea {
  background: var(--input);
  color: var(--pine);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

textarea {
  resize: vertical;
}

::placeholder {
  color: var(--sage);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(135, 162, 114, 0.25);
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin-bottom: 8px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.option:hover {
  background: var(--mist);
  border-color: var(--border);
}

.option input {
  accent-color: var(--green-dark);
  width: 18px;
  height: 18px;
}

button {
  width: 100%;
  background: var(--pine);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: var(--earth);
}

button:active {
  transform: scale(0.99);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  text-align: center;
  margin-top: 18px;
  font-weight: 600;
}

.status.success {
  color: var(--green-dark);
}

.status.error {
  color: var(--error);
}

.hp {
  position: absolute;
  left: -9999px;
}

@media (max-width: 560px) {
  .card {
    padding: 30px 22px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}