#contact-form { position: relative; }

#contact-form.is-sent { min-height: 320px; }

.contact-sent[hidden] { display: none; }

.contact-sent {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  padding: 28px 18px;
  border-radius: inherit;
  background:
    radial-gradient(42% 36% at 50% 0%, rgba(46, 107, 78, 0.16), transparent 72%),
    #fbfcfb;
}

.contact-sent .mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(46, 107, 78, 0.16);
}

.contact-sent .mark svg {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: #2e6b4e;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-sent .mark circle {
  stroke-dasharray: 189;
  stroke-dashoffset: 189;
  animation: sent-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-sent .mark path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: sent-draw 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.contact-sent h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #111315;
}

.contact-sent p {
  max-width: 32ch;
  margin: 14px auto 0;
  color: #52635a;
  font-size: 1rem;
  line-height: 1.5;
  animation: sent-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.contact-sent button {
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  background: #2e6b4e;
  color: #fff;
  font: 700 15px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  animation: sent-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.contact-sent button:hover { background: #1f4a36; }
.contact-sent button:focus-visible { outline: 2px solid #2e6b4e; outline-offset: 3px; }

@keyframes sent-draw { to { stroke-dashoffset: 0; } }

@keyframes sent-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-sent .mark circle,
  .contact-sent .mark path,
  .contact-sent p,
  .contact-sent button { animation: none; }
  .contact-sent .mark circle,
  .contact-sent .mark path { stroke-dashoffset: 0; }
}
