/* Contact Us popup */
.fr-contact {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.fr-contact[hidden] { display: none !important; }

.fr-contact__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.fr-contact__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  padding: 1.5rem 1.35rem 1.35rem;
  animation: frContactIn 0.22s ease-out;
}
@keyframes frContactIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fr-contact__dialog { animation: none; }
}

.fr-contact__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: var(--bg);
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.fr-contact__close:hover { color: var(--orange); background: var(--orange-soft); }

.fr-contact__head { padding-right: 1.5rem; margin-bottom: 1rem; }
.fr-contact__head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #0f172a;
}
.fr-contact__lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.fr-contact__wa {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.fr-contact__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fr-contact__divider::before,
.fr-contact__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.fr-contact__divider span { white-space: nowrap; }

.fr-contact__msg {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}
.fr-contact__msg.is-ok {
  background: #dcfce7;
  color: #166534;
}
.fr-contact__msg.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.fr-contact__form {
  display: grid;
  gap: 0.75rem;
}
.fr-contact__field {
  display: grid;
  gap: 0.3rem;
}
.fr-contact__field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}
.fr-contact__field input,
.fr-contact__field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fr-contact__field input:focus,
.fr-contact__field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.fr-contact__field textarea {
  resize: vertical;
  min-height: 84px;
}
.fr-contact__submit {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  margin-top: 0.15rem;
}
.fr-contact__submit.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

body.fr-contact-open { overflow: hidden; }

@media (max-width: 480px) {
  .fr-contact__dialog { padding: 1.25rem 1rem 1.1rem; border-radius: 14px; }
  .fr-contact__head h2 { font-size: 1.2rem; }
}
