.contact-modal[hidden] { display: none !important; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.contact-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.contact-modal__panel {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  padding: 1.6rem 1.45rem 1.45rem;
  animation: contactPop 0.28s ease both;
}
.contact-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.contact-modal__close:hover {
  color: #111;
  background: #f3f3f3;
}
@keyframes contactPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.contact-modal__head {
  text-align: center;
  margin-bottom: 1.15rem;
}
.contact-modal__logo {
  width: auto;
  max-width: 160px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 0.7rem;
  display: block;
}
.contact-modal__head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: #1a1a1a;
}
.contact-modal__head p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.55;
}
.contact-modal__form {
  display: grid;
  gap: 0.85rem;
}
.contact-modal__form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #1a1a1a;
}
.contact-modal__form .req { color: #e30613; }
.contact-modal__form input {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ddd;
  background: #fff;
}
.contact-modal__form input:focus {
  outline: 2px solid rgba(227, 6, 19, 0.18);
  border-color: #e30613;
}
.contact-modal__error {
  margin: 0;
  color: #c45045;
  font-size: 0.88rem;
  background: #fceceb;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid #c45045;
}
.contact-modal__btn {
  margin-top: 0.25rem;
  border: 0;
  background: #e30613;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1rem;
  cursor: pointer;
}
.contact-modal__btn:hover { background: #b80510; }
.contact-modal__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
body.contact-modal-open {
  overflow: hidden;
}
