/* Shared "Free Consultation" popup — used site-wide */

.consult-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 63, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.consult-modal-overlay.is-open {
  display: flex;
}

.consult-modal {
  position: relative;
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(11, 31, 63, 0.4);
  display: flex;
  flex-direction: column;
  animation: consultModalIn 0.2s ease-out;
}

@keyframes consultModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.consult-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #0b1f3f;
  flex-shrink: 0;
}

.consult-modal-header h3 {
  font-family: Georgia, "Merriweather", serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin: 0;
}

.consult-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.consult-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.consult-modal-body {
  flex: 1;
  overflow-y: auto;
  background: #fbfcfe;
  min-height: 300px;
  position: relative;
}

.consult-modal-body {
  min-width: 0;
}

.consult-modal-body iframe {
  width: 100%;
  min-height: 607px;
  border: none;
  display: block;
}

.consult-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d7089;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

body.consult-modal-locked {
  overflow: hidden;
}

@media (max-width: 560px) {
  .consult-modal {
    max-width: 100%;
    border-radius: 18px;
  }
}
