/* Contact form validation + modal */
.field-error {
  min-height: 1.1em;
  margin-top: 0.35rem;
  color: #c0392b;
  font-size: 0.8rem;
  line-height: 1.3;
}

.turnstile-wrap {
  margin: 0.85rem 0 0.35rem;
}

.cf-turnstile-box {
  min-height: 65px;
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
  background: #fff7f6 !important;
}

.contact-submit.is-loading,
.contact-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.msg-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.msg-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.msg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 45, 0.55);
  backdrop-filter: blur(4px);
}

.msg-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(11, 28, 45, 0.28);
  padding: 2rem 1.6rem 1.5rem;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.msg-modal.is-open .msg-modal__panel {
  transform: translateY(0) scale(1);
}

.msg-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.msg-modal__x:hover {
  background: #f3f4f6;
  color: #111827;
}

.msg-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.msg-modal__icon.is-success {
  background: linear-gradient(135deg, #1e4466, #b8954a);
}

.msg-modal__icon.is-error {
  background: linear-gradient(135deg, #8b1e1e, #d35400);
}

.msg-modal__title {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  color: #0b1c2d;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Songti SC", serif;
}

.msg-modal__desc {
  margin: 0;
  color: #5c6770;
  line-height: 1.65;
  font-size: 0.95rem;
}

.msg-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.msg-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 42px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.msg-modal__btn.is-primary {
  background: #15324d;
  color: #fff;
}

.msg-modal__btn.is-primary:hover {
  background: #b8954a;
  color: #fff;
  transform: translateY(-2px);
}

.msg-modal__btn.is-ghost {
  background: #fff;
  color: #15324d;
  border-color: rgba(21, 50, 77, 0.2);
}

.msg-modal__btn.is-ghost:hover {
  border-color: #b8954a;
  color: #b8954a;
}
