/* =========================================================
   Playground Contest Sora 3x3 — Stili principali
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #09070e;
  --surface: #120f1b;
  --surface-raised: #191425;
  --surface-soft: #211a31;
  --text: #f8f6ff;
  --muted: #aaa3b9;
  --line: #342c43;
  --purple: #9d5cff;
  --purple-strong: #7b2cff;
  --yellow: #ffbd2e;
  --orange: #ff7a1a;
  --danger: #ff6b79;
  --success: #5ce1a4;
  --shadow: 0 22px 70px rgb(0 0 0 / 34%);
  --radius-lg: 24px;
  --radius-md: 15px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgb(123 44 255 / 16%), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
label,
select,
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

strong {
  font-weight: 750;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

/* ----- Testata ----- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  padding: 28px max(24px, calc((100vw - 1120px) / 2));
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 5 11 / 98%) 0%, rgb(8 6 13 / 92%) 35%, rgb(8 6 13 / 64%) 61%, rgb(8 6 13 / 10%) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--orange), var(--yellow));
  content: "";
}

.hero__art {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
}

.hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__topline,
.hero__content {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.hero__topline {
  display: flex;
  align-items: center;
}

.brand {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  padding: 20px 13px;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 12px 36px rgb(0 0 0 / 24%);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.brand:hover {
  box-shadow: 0 15px 40px rgb(0 0 0 / 34%);
  transform: translateY(-2px);
}

.brand:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.hero__content {
  max-width: 690px;
  margin-left: 0;
  padding-top: 62px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--purple), #c57cff 55%, var(--yellow));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__intro {
  max-width: 650px;
  margin: 26px 0 0;
  color: #d6d0df;
  font-size: 17px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__badges span {
  min-width: 118px;
  padding: 12px 22px;
  border: 1px solid rgb(255 189 46 / 42%);
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(255 189 46 / 14%), rgb(157 92 255 / 8%));
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* ----- Struttura del modulo ----- */

.form-wrap {
  width: min(calc(100% - 32px), 1000px);
  margin: -46px auto 0;
  position: relative;
  z-index: 2;
}

.form-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  padding: 26px 30px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #0f0c16;
  box-shadow: var(--shadow);
}

.form-heading h2,
.success-dialog h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.form-heading__note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

form {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-right: 1px solid rgb(255 255 255 / 7%);
  border-left: 1px solid rgb(255 255 255 / 7%);
  background: #0f0c16;
  box-shadow: var(--shadow);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-card {
  min-width: 0;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--surface-raised), #14101d);
}

.form-card--guardian {
  border-color: rgb(255 189 46 / 36%);
  background:
    linear-gradient(140deg, rgb(255 189 46 / 5%), transparent 40%),
    var(--surface-raised);
}

.form-card[hidden] {
  display: none;
}

.section-title {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  margin-bottom: 26px;
  padding: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(157 92 255 / 48%);
  border-radius: 50%;
  background: rgb(157 92 255 / 10%);
  color: #cda7ff;
}

.section-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 18px;
}

.field {
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.field-label,
.signature-label-row label {
  display: block;
  margin-bottom: 8px;
  color: #e7e2ec;
  font-size: 13px;
  font-weight: 750;
}

.field label > span,
.field-label > span,
.signature-label-row label > span {
  color: var(--yellow);
}

.field label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: #0e0b14;
  color: var(--text);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input::placeholder {
  color: #716a7d;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

input:hover,
select:hover {
  border-color: #4d425f;
}

input:focus,
select:focus {
  border-color: var(--purple);
  background: #120e1a;
  box-shadow: 0 0 0 4px rgb(157 92 255 / 14%);
}

.was-validated input:invalid,
.was-validated select:invalid {
  border-color: var(--danger);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.conditional-roster {
  padding: 18px;
  border: 1px solid rgb(255 189 46 / 28%);
  border-radius: var(--radius-sm);
  background: rgb(255 189 46 / 5%);
}

.conditional-roster[hidden] {
  display: none;
}

.conditional-roster__team-name {
  max-width: 560px;
  margin-bottom: 20px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--yellow);
  content: "⌄";
  font-size: 18px;
  pointer-events: none;
  transform: translateY(-57%);
}

select {
  padding-right: 44px;
  appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1) sepia(1) saturate(4) hue-rotate(350deg);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-pill {
  position: relative;
  margin: 0 !important;
}

.choice-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-pill span {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0e0b14;
  color: #d4cfda;
  transition: 160ms ease;
}

.choice-pill input:checked + span {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgb(123 44 255 / 28%), rgb(157 92 255 / 9%));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(157 92 255 / 30%);
}

.choice-pill input:focus-visible + span {
  outline: 3px solid rgb(157 92 255 / 32%);
  outline-offset: 2px;
}

.guardian-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: -7px 0 22px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgb(255 189 46 / 8%);
  color: #e9ddc2;
  font-size: 13px;
}

.guardian-alert span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #17100a;
  font-size: 12px;
  font-weight: 900;
}

/* ----- Checkbox e dichiarazioni ----- */

.section-help {
  margin: -12px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.checks-list {
  display: grid;
  gap: 10px;
}

.declaration-with-document {
  display: grid;
  gap: 8px;
}

.rules-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgb(255 189 46 / 35%);
  border-radius: var(--radius-sm);
  background: linear-gradient(110deg, rgb(255 189 46 / 12%), rgb(157 92 255 / 6%));
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.rules-link:hover {
  border-color: var(--yellow);
  background: linear-gradient(110deg, rgb(255 189 46 / 18%), rgb(157 92 255 / 9%));
  transform: translateY(-1px);
}

.rules-link:focus-visible {
  outline: 3px solid rgb(255 189 46 / 32%);
  outline-offset: 3px;
}

.rules-link__badge {
  display: grid;
  min-width: 38px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--yellow);
  color: #171006;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.rules-link__arrow {
  color: var(--yellow);
  font-size: 19px;
  font-weight: 500;
}

.check-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 2.5%);
  color: #ccc6d5;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.55;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.check-item:hover {
  border-color: #3a3049;
  background: rgb(255 255 255 / 4%);
}

.check-item--featured {
  border-color: rgb(157 92 255 / 24%);
  background: rgb(157 92 255 / 7%);
}

.check-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-box {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid #5a5068;
  border-radius: 6px;
  background: #0d0a12;
  transition: 160ms ease;
}

.check-item input:checked + .check-box {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 18px rgb(255 189 46 / 17%);
}

.check-item input:checked + .check-box::after {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #130d04;
  border-bottom: 2px solid #130d04;
  content: "";
  transform: rotate(42deg);
}

.check-item input:focus-visible + .check-box {
  outline: 3px solid rgb(157 92 255 / 38%);
  outline-offset: 3px;
}

.was-validated .check-item input:invalid + .check-box {
  border-color: var(--danger);
}

/* ----- Firma ----- */

.field--signature-name {
  max-width: 560px;
  margin-bottom: 22px;
}

.signature-label-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.signature-label-row label {
  margin: 0;
}

.signature-label-row > span {
  color: var(--muted);
  font-size: 12px;
}

#signature-canvas {
  display: block;
  width: 100%;
  height: 190px;
  border: 1px dashed #61576d;
  border-radius: var(--radius-sm);
  outline: none;
  background:
    linear-gradient(to bottom, transparent 74%, rgb(157 92 255 / 12%) 74% 75%, transparent 75%),
    #f7f3ee;
  cursor: crosshair;
  touch-action: none;
}

#signature-canvas:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgb(157 92 255 / 17%);
}

.signature-field.has-error #signature-canvas {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(255 107 121 / 10%);
}

.signature-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.signature-actions p,
.field-error {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.field-error:not(:empty) {
  margin-top: 8px;
  color: var(--danger);
}

.final-declaration {
  margin-top: 25px;
}

/* ----- Pulsanti e invio ----- */

.button {
  position: relative;
  min-height: 45px;
  padding: 11px 17px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.65;
  transform: none;
}

.button:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgb(157 92 255 / 46%);
  outline-offset: 3px;
}

.button--primary {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(105deg, var(--purple-strong), var(--purple));
  color: #fff;
  box-shadow: 0 12px 28px rgb(123 44 255 / 24%);
}

.button--primary span {
  font-size: 22px;
  font-weight: 400;
}

.button--primary .button__label {
  font-size: 14px;
  font-weight: 900;
}

.button__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgb(255 255 255 / 34%);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.button.is-loading .button__arrow {
  display: none;
}

.button.is-loading .button__spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(3 2 6 / 80%);
  backdrop-filter: blur(7px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-card {
  width: min(100%, 360px);
  padding: 28px 22px;
  border: 1px solid rgb(255 189 46 / 28%);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top, rgb(255 189 46 / 14%), transparent 44%),
    var(--surface);
  color: var(--text);
  text-align: center;
  box-shadow: 0 24px 80px rgb(0 0 0 / 60%);
}

.loading-spinner {
  display: inline-block;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 5px solid rgb(255 255 255 / 18%);
  border-top-color: var(--yellow);
  border-right-color: var(--purple);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.loading-card p {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.loading-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.button--ghost {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: #dbd5e2;
  font-size: 12px;
}

.form-message {
  display: none;
  padding: 14px 16px;
  border: 1px solid rgb(255 107 121 / 30%);
  border-radius: var(--radius-sm);
  background: rgb(255 107 121 / 7%);
  color: #ffabb3;
  font-size: 13px;
}

.form-message:not(:empty) {
  display: block;
}

.submit-panel {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 25px 28px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(110deg, rgb(255 189 46 / 9%), transparent 52%),
    var(--surface-soft);
}

.submit-panel--single {
  justify-content: flex-end;
}

/* ----- Schermata finale ----- */

.success-dialog {
  width: min(calc(100% - 28px), 620px);
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #443752;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 100px rgb(0 0 0 / 70%);
}

.success-dialog::backdrop {
  background: rgb(3 2 6 / 78%);
  backdrop-filter: blur(7px);
}

.success-dialog__header {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  padding: 27px 28px 23px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, rgb(123 44 255 / 15%), transparent 55%);
}

.success-dialog h2 {
  font-size: 30px;
}

.success-dialog .success-title {
  color: transparent;
  background: linear-gradient(100deg, var(--purple), #c57cff 55%, var(--yellow));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 4%);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
}

.success-content {
  max-height: calc(min(88vh, 900px) - 226px);
  padding: 24px 28px;
  overflow-y: auto;
}

.success-message {
  margin: 0 0 18px;
  color: #ded8e7;
  font-size: 12px;
  text-align: center;
}

.success-content picture {
  display: block;
  width: min(100%, 480px);
  margin-inline: auto;
}

.success-content img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(255 189 46 / 28%);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 32%);
}

.success-dialog__footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 28px;
  border-top: 1px solid var(--line);
  background: #0d0a12;
}

.success-dialog__footer p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.success-dialog__footer .success-close-note {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}

/* ----- Piè di pagina ----- */

footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  width: min(calc(100% - 32px), 1000px);
  margin: 0 auto 34px;
  padding: 28px 18px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #0f0c16;
  color: #766e80;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----- Responsive ----- */

@media (max-width: 700px) {
  .hero {
    min-height: 670px;
    padding: 18px 16px 58px;
  }

  .hero::before {
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgb(8 6 13 / 4%) 0,
      rgb(8 6 13 / 7%) 150px,
      rgb(8 6 13 / 93%) 248px,
      var(--bg) 330px
    );
  }

  .hero__art {
    bottom: auto;
    height: 265px;
  }

  .brand {
    width: 108px;
    height: 108px;
    padding: 17px 10px;
  }

  .hero__content {
    padding-top: 190px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 66px);
    line-height: 0.92;
  }

  .hero__intro {
    font-size: 15px;
  }

  .hero__badges {
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 27px;
  }

  .hero__badges span {
    min-width: 0;
    flex: 1 1 0;
    padding: 11px 7px;
    font-size: 15px;
  }

  .form-wrap {
    width: min(calc(100% - 20px), 1000px);
    margin-top: -32px;
  }

  .form-heading {
    display: block;
    padding: 23px 20px;
  }

  .form-heading__note {
    margin-top: 10px;
    white-space: normal;
  }

  form {
    gap: 10px;
    padding: 10px;
  }

  .form-card {
    padding: 22px 17px;
  }

  .section-title {
    margin-bottom: 22px;
    font-size: 18px;
  }

  .section-icon {
    width: 37px;
    height: 37px;
  }

  .fields-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .roster-grid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

  .check-item {
    padding: 13px 11px;
    font-size: 12px;
  }

  #signature-canvas {
    height: 175px;
  }

  .signature-actions {
    align-items: start;
  }

  .submit-panel {
    display: grid;
    padding: 21px 18px;
  }

  .submit-panel .button {
    width: 100%;
  }

  .success-dialog__header,
  .success-content,
  .success-dialog__footer {
    padding-right: 19px;
    padding-left: 19px;
  }

  .success-dialog__footer {
    display: grid;
  }

  .success-dialog__footer .button {
    width: 100%;
  }

  footer {
    width: min(calc(100% - 20px), 1000px);
    margin-bottom: 20px;
    padding: 24px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
