/* Shared form page (refund and contact). Loaded after base.css. */
.form-card {
  width: 100%;
  max-width: 560px;
  padding: 32px 24px;
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08), inset 0 0 0 1px var(--line);
}
@media (min-width: 640px) {
  .form-card { padding: 40px; }
}
.form-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.form-brand img { border-radius: 8px; }
.form-card h1,
.form-card .form-success h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.form-lead {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
}
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  margin-bottom: 6px;
  font: 600 13px/18px Inter, system-ui, sans-serif;
}
.optional {
  margin-left: 4px;
  font-weight: 500;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: #eff4ff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid #4648d4;
  outline-offset: 1px;
}
.field [aria-invalid='true'] { box-shadow: inset 0 0 0 2px #ba1a1a; }
.field-hint,
.field-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.field-error { color: #ba1a1a; font-weight: 600; }
/* Trap for bots: off-screen, never shown to people. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile { margin: 8px 0 16px; min-height: 65px; }
.form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffdad6;
  color: #93000a;
  font-size: 14px;
  font-weight: 600;
}
.form-submit {
  width: 100%;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #b90538, #dc2c4f);
  box-shadow: 0 8px 28px rgba(185, 5, 56, 0.3);
  color: #fff;
  font: 600 15px/20px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.form-submit:disabled { opacity: 0.6; cursor: progress; }
.form-submit:focus-visible { outline: 2px solid #4648d4; outline-offset: 3px; }
.form-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.form-card a:not(.form-brand) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.form-card a:not(.form-brand):hover { text-decoration: underline; }
.form-success { text-align: center; padding: 16px 0; }
.form-success:focus { outline: none; }
.form-success p {
  margin: 0 0 20px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }

/* Form pages of a site with its own header and footer (refund, contact): normal page flow, form centred. */
.form-page {
  display: block;
  /* base.css centres its single card; here the header and footer span the page. */
  place-items: normal;
  min-height: 0;
  padding: 0;
}
.form-page .form-card {
  margin: 40px auto 64px;
  width: calc(100% - 32px);
}
/* The site header already shows the brand. */
.form-page .site-header ~ .form-card .form-brand { display: none; }
