/* ============================================================
   Shared Contact Modal — used site-wide (every tool page, the
   tools landing page, and the main site) so "Contact" and
   "Request Consultation" open in place instead of navigating away.
   ============================================================ */

.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 28, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-modal-overlay.open {
  display: flex;
}

.contact-modal {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 28px;
}

.contact-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.contact-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #10202b;
  margin: 0;
}

.contact-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #7a8894;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.contact-modal-close:hover {
  background: #f0f2f4;
  color: #10202b;
}

.contact-modal-sub {
  font-size: 13.5px;
  color: #5c6b76;
  margin-bottom: 20px;
}

.contact-modal-field {
  margin-bottom: 14px;
}

.contact-modal-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #10202b;
  margin-bottom: 5px;
}

.contact-modal-input,
.contact-modal-textarea {
  width: 100%;
  border: 1px solid #d7dde1;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #10202b;
  box-sizing: border-box;
}
.contact-modal-input:focus,
.contact-modal-textarea:focus {
  outline: none;
  border-color: #0f6e5d;
  box-shadow: 0 0 0 3px rgba(15, 110, 93, 0.12);
}

.contact-modal-input[readonly] {
  background: #f4f6f7;
  color: #5c6b76;
  cursor: not-allowed;
}

.contact-modal-textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-modal-submit {
  width: 100%;
  background: #ef9d3b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}
.contact-modal-submit:hover {
  background: #e08b25;
}
.contact-modal-submit:disabled {
  background: #d7dde1;
  cursor: not-allowed;
}

.contact-modal-status {
  font-size: 13px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  display: none;
}
.contact-modal-status.show {
  display: block;
}
.contact-modal-status.ok {
  background: #e6f4ee;
  color: #0f6e5d;
}
.contact-modal-status.err {
  background: #fbeae9;
  color: #b3261e;
}

@media (max-width: 480px) {
  .contact-modal { padding: 22px; }
}
