:root {
  --ink: #3a2e2a;
  --ink-soft: #7a6a62;
  --bg: #fff8ef;
  --card: #ffffff;
  --border: #f0dfce;
  --orange: #f2762e;
  --teal: #3daa8f;
  --error: #e0574a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  line-height: 1.5;
}

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

.header {
  /* border: 1px solid red; */
  display: flex;
  justify-content: center;
}

.header h1 {
  font-family: "Baloo 2", serif;
  font-weight: 600;
  font-size: 2.2rem;
  margin: 0 0 16px;
  color: var(--ink);
  text-align: center;
  text-transform: capitalize;
  text-wrap: balance;
}

.pyong {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pyong img {
  height: 70px;
}

.intro h1 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--orange);
  font-size: 2rem;
  margin: 0 0 8px;
}

.intro .note {
  margin: 0 0 40px;
  font-weight: 700;
  color: var(--ink-soft);
}

.section {
  background: var(--card);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.section h2 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  color: var(--orange);
  font-size: 1.125rem;
  margin: 0 0 18px;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 16px 0 6px;
  color: var(--ink);
}

label:first-of-type {
  margin-top: 0;
}

/* checkbox rows shouldn't look like standalone field labels */
.section div label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin: 6px 12px 6px 0;
  color: var(--ink-soft);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
}

select {
  max-width: 350px;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 170, 143, 0.18);
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  background: var(--orange);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

button[type="submit"]:hover {
  background: #d9651f;
}

button[type="submit"]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

#statusMsg {
  text-align: center;
  color: var(--teal);
  font-weight: 500;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .page {
    padding: 32px 16px 60px;
  }
  .section {
    padding: 20px;
  }
}

[dir="rtl"] .section {
  border-left: none;
  border-right: 4px solid var(--orange);
}

[dir="rtl"] .section div label {
  margin: 6px 0 6px 12px;
}
