.contact-modal-open { overflow: hidden; }

.contact-thankyou-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 25, 36, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: contact-overlay-in 0.25s ease;
}

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

.contact-thankyou-modal {
  position: relative;
  width: min(100%, 520px);
  box-sizing: border-box;
  padding: 52px 42px 40px;
  color: #17232c;
  text-align: center;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(7, 28, 42, 0.28);
  animation: contact-modal-in 0.3s ease;
}

.contact-thankyou-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #60717d;
  font-size: 28px;
  font-family: Arial, sans-serif;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.contact-thankyou-close:hover {
  color: #12324a;
  background: #edf3f6;
}

.contact-thankyou-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  color: #ffffff;
  background: #12324a;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(18, 50, 74, 0.22);
}

.contact-thankyou-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-thankyou-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #78909f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.contact-thankyou-modal h2 {
  margin: 0 0 16px;
  color: #17232c;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
}

.contact-thankyou-modal p {
  max-width: 410px;
  margin: 0 auto 30px;
  color: #667781;
  font-size: 16px;
  line-height: 1.7;
}

.contact-thankyou-button {
  min-width: 210px;
  padding: 14px 24px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  background: #12324a;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.contact-thankyou-button:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 50, 74, 0.18);
}

.contact-thankyou-close:focus-visible,
.contact-thankyou-button:focus-visible {
  outline: 3px solid rgba(18, 50, 74, 0.25);
  outline-offset: 3px;
}

@keyframes contact-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes contact-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .contact-thankyou-overlay { padding: 14px; }
  .contact-thankyou-modal { padding: 48px 22px 30px; border-radius: 18px; }
  .contact-thankyou-icon { width: 72px; height: 72px; }
  .contact-thankyou-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-thankyou-overlay,
  .contact-thankyou-modal { animation: none; }
}
