/* Contact confirmation dialog: logo, race car crossing chequered finish line, thank-you message.
   Respects prefers-reduced-motion cleanly (static finish state when reduced motion is active). */
.sent-dialog {
  width: min(440px, calc(100% - 32px));
  border: 0;
  border-radius: 16px;
  padding: 32px 32px 28px;
  background: #ffffff;
  color: var(--ink, #192322);
  text-align: center;
  box-shadow: 0 30px 80px rgba(8, 17, 13, .28);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}

.sent-dialog::backdrop {
  background: rgba(11, 16, 15, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.sent-dialog[open] {
  animation: sent-in .28s ease-out;
}

@keyframes sent-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.sent-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 18px;
}

.sent-dialog h2 {
  font-size: 1.65rem;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.sent-dialog p {
  margin: 0 auto 24px;
  max-width: 32ch;
  color: var(--muted, #525e59);
  font-size: .98rem;
  line-height: 1.55;
}

.sent-race {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 8px;
}

.sent-race .car-track { fill: var(--soft, #f4f6f4); }
.sent-race .car-lane { stroke: #fff; stroke-width: 2; stroke-dasharray: 10 8; }
.sent-race .car-finish rect, .sent-race .car-flag rect:not(.car-flag-bg) { fill: var(--ink, #192322); }
.sent-race .car-flag-bg { fill: #fff; stroke: var(--ink, #192322); stroke-width: 1; }
.sent-race .car-pole { stroke: #7d8480; stroke-width: 2.4; stroke-linecap: round; }
.sent-race .car-flag { transform-box: fill-box; transform-origin: 0 50%; }
.sent-race .car-body, .sent-race .car-wing { fill: var(--ink, #192322); }
.sent-race .car-sidepod { fill: #2c3533; }
.sent-race .car-helmet { fill: #fff; stroke: var(--ink, #192322); stroke-width: 1; }
.sent-race .car-visor { fill: var(--ink, #192322); }
.sent-race .car-halo { fill: none; stroke: #3a403d; stroke-width: 2.2; stroke-linecap: round; }
.sent-race .car-tyre { fill: #1d2120; }
.sent-race .car-stripe { fill: none; stroke: #e9ece9; stroke-width: 1; }
.sent-race .car-rim { fill: #c9cecb; }
.sent-race .car-hubcap { fill: var(--ink, #192322); }
.sent-race .car-wheel line { stroke: #6f7672; stroke-width: 1.4; stroke-linecap: round; }
.sent-race .car-shadow { fill: rgba(24, 28, 27, .16); }
.sent-race .car-speed line { stroke: var(--ink, #192322); stroke-width: 2.6; stroke-linecap: round; opacity: 0; }
.sent-race .car { transform: translate(272px, 112px); }

.sent-dialog.is-playing .car { animation: car-drive 2.2s both; }
.sent-dialog.is-playing .car-wheel { animation: car-spin .2s linear 0s 10 none; }
.sent-dialog.is-playing .car-speed line { animation: car-speed 2.2s both; }
.sent-dialog.is-playing .car-flag { animation: car-wave .3s ease-in-out 1.1s 5 alternate both; }

@keyframes car-drive {
  0% { transform: translate(-140px, 112px); animation-timing-function: linear; }
  66% { transform: translate(212px, 112px); animation-timing-function: cubic-bezier(.15, .7, .3, 1); }
  100% { transform: translate(272px, 112px); }
}
@keyframes car-spin { to { transform: rotate(360deg); } }
@keyframes car-speed { 0%, 4% { opacity: 0; } 12%, 64% { opacity: .4; } 85%, 100% { opacity: 0; } }
@keyframes car-wave { from { transform: skewY(0deg) scaleX(1); } to { transform: skewY(-12deg) scaleX(.86); } }

.sent-dialog .sent-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ink, #192322);
  border-radius: 8px;
  background: var(--ink, #192322);
  color: #ffffff;
  font: 600 1rem/1.2 'Figtree', system-ui, sans-serif;
  cursor: pointer;
}

.sent-dialog .sent-close:hover {
  background: var(--ink-hover, #263533);
}

@media (max-width: 420px) {
  .sent-dialog { padding: 26px 20px 22px; }
  .sent-dialog h2 { font-size: 1.45rem; }
  .sent-race { width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sent-dialog[open],
  .sent-dialog.is-playing * {
    animation: none !important;
    transition: none !important;
  }
}
