/**
 * v3.7.2 · Inquiry form feedback modal (contact page only).
 *
 * Every rule is scoped to #gv-modal on purpose: the modal lives inside
 * .gv-form, and the theme styles .contact-hero .gv-form p / h3 with higher
 * specificity than a bare class. Without the id the theme collapsed the
 * margins and shrank the body copy to 13px.
 */

#gv-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  font-family: Inter, system-ui, sans-serif;
  text-align: left;
}
#gv-modal[hidden] { display: none; }

#gv-modal .gv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 24, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

#gv-modal .gv-modal-card {
  position: relative;
  width: min(430px, 100%);
  margin: 0;
  padding: 34px 36px 34px;
  background: #fff;
  color: #0a1b2e;
  border-top: 4px solid #0e9e95;
  box-shadow: 0 30px 80px rgba(2, 10, 17, 0.5), 0 0 0 1px rgba(2, 10, 17, 0.12);
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#gv-modal.is-error .gv-modal-card { border-top-color: #b42318; }
#gv-modal.is-open .gv-modal-card { opacity: 1; transform: none; }

#gv-modal .gv-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 24px;
  border-radius: 50%;
  background: #e7f5f1;
  color: #08766f;
  font: 600 17px/1 Space, system-ui, sans-serif;
}
#gv-modal.is-error .gv-modal-icon { background: #fdecea; color: #b42318; }
#gv-modal .gv-modal-icon span { transform: translateY(-1px); }

#gv-modal .gv-modal-title {
  margin: 0;
  font: 500 25px/1.16 Space, system-ui, sans-serif;
  letter-spacing: -0.03em;
  color: #0a1b2e;
  text-wrap: balance;
}

#gv-modal .gv-modal-text {
  margin: 14px 0 0;
  max-width: 34ch;
  font: 400 15px/1.62 Inter, system-ui, sans-serif;
  color: #4a5a6b;
  text-wrap: pretty;
}

#gv-modal .gv-modal-foot {
  display: flex;
  justify-content: center;
  margin: 30px 0 0;
}

#gv-modal .gv-modal-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid #0a1b2e;
  background: transparent;
  color: #0a1b2e;
  font: 600 13px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
#gv-modal .gv-modal-close:hover { background: #0a1b2e; color: #f2f8f8; }
#gv-modal .gv-modal-close:focus-visible { outline: 3px solid #0655bd; outline-offset: 3px; }

html.gv-modal-open { overflow: hidden; }

@media (max-width: 600px) {
  #gv-modal { align-items: flex-end; padding: 0; }
  #gv-modal .gv-modal-card {
    width: 100%;
    padding: 26px 22px calc(24px + env(safe-area-inset-bottom, 0px));
    border-top-width: 3px;
  }
  #gv-modal .gv-modal-icon { width: 36px; height: 36px; margin-bottom: 20px; }
  #gv-modal .gv-modal-title { font-size: 22px; }
  #gv-modal .gv-modal-text { max-width: none; }
  #gv-modal .gv-modal-foot { margin-top: 24px; }
  #gv-modal .gv-modal-close { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #gv-modal .gv-modal-card { transition: none; transform: none; }
}
