:root {
  --navy: #12224a;
  --navy-light: #1c3266;
  --red: #c8202f;
  --white: #ffffff;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--navy);
  margin: 0;
  padding: 2rem 1rem;
}

.brand-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-header .logo-large {
  height: 45px;
  max-width: 90%;
}

.brand-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.brand-footer .logo-small {
  height: 18px;
  max-width: 60%;
  opacity: 0.9;
}

.support-line {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #ffffff;
}

.form-page {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border-top: 6px solid var(--red);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.confirmation-page {
  text-align: center;
}

h1 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.form-subtitle {
  font-size: 0.95rem;
  font-weight: bold;
  color: #555;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #333;
}

input,
select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 2px rgba(28, 50, 102, 0.2);
}

.field-row {
  display: flex;
  gap: 1rem;
}

.field-row label {
  flex: 1;
  min-width: 0;
}

.field-row-3 label:nth-child(2) {
  flex: 0 0 90px;
}

.field-row-3 label:nth-child(3) {
  flex: 0 0 120px;
}

.field-half {
  width: calc(50% - 0.5rem);
}

@media (max-width: 480px) {
  .field-row {
    flex-wrap: wrap;
  }

  .field-row label {
    flex: 1 1 100%;
  }

  .field-half {
    width: 100%;
  }
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

fieldset label {
  display: inline-block;
  margin-right: 1rem;
}

fieldset input {
  display: inline-block;
  width: auto;
}

.amount-due {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--navy);
}

.error {
  display: none;
  color: var(--red);
  margin-bottom: 1rem;
}

#submit-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

#submit-btn:hover {
  background: #a91a27;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
