.container {
  max-width: 1200px;
}

.enrol-form-wrapper {
  max-width: 720px;
  margin: 40px auto;
}

form {
  position: relative;
  background: var(--mw-panel);
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid var(--mw-border);
  box-shadow: var(--mw-shadow-lg);
  font-family: inherit;
}

form h1 {
  font-family: var(--mw-font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--mw-accent);
  text-align: center;
  width: 100%;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

form p.description,
.thanks-card .description {
  color: var(--mw-sub);
  text-align: center;
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.6;
}

.plan-note {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mw-accent);
  margin: -12px 0 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.optional {
  font-weight: 400;
  color: var(--mw-sub);
}

label,
legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--mw-text);
}

.choice-group {
  border: 0;
  padding: 0;
  min-width: 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--mw-border);
  border-radius: 8px;
  background: var(--mw-panel-soft);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
  color: var(--mw-text);
}

.choice:hover {
  border-color: color-mix(in srgb, var(--mw-accent) 40%, var(--mw-border));
}

.choice:has(input:checked) {
  border-color: var(--mw-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mw-accent) 25%, transparent);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--mw-accent);
  outline-offset: 2px;
}

input:not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mw-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--mw-panel-soft);
  color: var(--mw-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice input {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  accent-color: var(--mw-accent);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b7d' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

@media (prefers-color-scheme: dark) {
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aabbd' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  }
}

input:not([type="radio"]):not([type="hidden"])::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--mw-sub) 80%, transparent);
}

input:not([type="radio"]):not([type="hidden"]):hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--mw-accent) 40%, var(--mw-border));
}

input:not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--mw-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mw-accent) 25%, transparent);
}

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

.next-steps {
  counter-reset: step;
  list-style: none;
  margin: 8px 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--mw-sub);
  font-size: 0.9rem;
  text-align: left;
}

.next-steps li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 8px;
  align-items: baseline;
}

.next-steps li::before {
  content: counter(step);
  counter-increment: step;
  font-weight: 800;
  color: var(--mw-accent);
  font-variant-numeric: tabular-nums;
}

.thanks-card .next-steps {
  max-width: 22rem;
  margin: 8px auto 24px;
}

.thanks-card {
  background: var(--mw-panel);
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid var(--mw-border);
  box-shadow: var(--mw-shadow-lg);
  text-align: center;
}

.thanks-card h1 {
  font-family: var(--mw-font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--mw-accent);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.thanks-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mw-cta);
  color: var(--mw-on-accent);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--mw-radius-btn);
  font-weight: 700;
  box-shadow: var(--mw-shadow);
  min-height: 44px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.thanks-home:hover {
  background: var(--mw-cta-hover);
  transform: translateY(-1px);
}

.thanks-home:focus-visible {
  outline: 2px solid var(--mw-accent);
  outline-offset: 3px;
}

button[type="submit"] {
  width: 100%;
  padding: 14px 28px;
  margin-top: 8px;
  background: var(--mw-cta);
  color: var(--mw-on-accent);
  border: none;
  border-radius: var(--mw-radius-btn);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--mw-shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
  background: var(--mw-cta-hover);
  transform: translateY(-1px);
}

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

.fine-print {
  font-size: 0.86rem;
  color: var(--mw-sub);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.contact-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 40px 0 20px;
}

.contact-item {
  background: var(--mw-panel);
  border: 1px solid var(--mw-border);
  border-radius: 999px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--mw-text);
  min-height: 44px;
  box-shadow: var(--mw-shadow);
}

.contact-item .mw-icon {
  color: var(--mw-accent);
  font-size: 1.1rem;
}

.contact-item a {
  color: var(--mw-text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-item a:hover {
  color: var(--mw-accent);
}

.contact-item a:focus-visible {
  outline: 2px solid var(--mw-accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.footer {
  margin-top: 60px;
}

@media (max-width: 900px) {
  .contact-boxes {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
  }

  form,
  .thanks-card {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .choice-row {
    flex-direction: column;
  }

  .choice {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  button[type="submit"],
  .thanks-home {
    transition: none;
  }

  button[type="submit"]:hover,
  .thanks-home:hover {
    transform: none;
  }
}
