:root {
  color-scheme: light;
  --navy: #1b375e;
  --red: #c10f18;
  --red-dark: #970c13;
  --border: #d6dbe2;
  --bg: #ffffff;
  --text: #26313f;
  --muted: #5a6472;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-family: "Lato", Helvetica, Arial, sans-serif;
}

h1, h2, h3, legend {
  font-family: "Raleway", sans-serif;
}

header {
  text-align: center;
  border-bottom: 3px solid var(--red);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

header img.logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 0.75rem;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

header h2 {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--red);
}

section > p {
  color: var(--muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

fieldset legend {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 0.4rem;
}

fieldset.yesno {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

fieldset.yesno legend {
  font-size: 0.95rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

label.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  color: var(--text);
}

input, textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid #b7c0cc;
  border-radius: 6px;
  color: var(--text);
}

input:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

input[readonly] {
  background: #f2f4f7;
  color: var(--muted);
}

textarea {
  min-height: 5rem;
  resize: vertical;
}

button {
  align-self: flex-start;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: white;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

#edit-address-btn {
  display: inline;
  align-self: auto;
  background: none;
  color: var(--navy);
  border: none;
  padding: 0;
  font-weight: 700;
  border-radius: 0;
  text-decoration: underline;
}

#edit-address-btn:hover {
  background: none;
  color: var(--red);
}

#gate-status, #submit-status {
  font-weight: 700;
  color: var(--red);
}

#thankyou-step h2 {
  color: var(--navy);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
