/* The "Start Your Journey" form. Replaces the ClickFunnels popup; opened by every #open-popup button. */
.iq-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0, 0, 0, .78);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.iq-overlay[hidden] { display: none; }
body.iq-open { overflow: hidden; }

.iq-dialog {
  position: relative; width: 100%; max-width: 680px; margin: 24px 0;
  background: #fff; color: #111; border-radius: 30px;
  padding: 40px 36px 36px;
  font-family: "Special Gothic", Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.45;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.iq-close {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px;
  border: 0; background: none; font-size: 28px; line-height: 1; color: #666; cursor: pointer; border-radius: 50%;
}
.iq-close:hover, .iq-close:focus-visible { color: #111; background: #f1f1f1; outline: none; }

.iq-dialog h2 {
  font-family: "Red Rose", "Special Gothic", sans-serif; font-weight: 700;
  font-size: clamp(26px, 5vw, 34px); line-height: 1.1; margin: 0 0 6px; text-align: center;
}
.iq-sub { text-align: center; color: #555; margin: 0 0 24px; }

.iq-dialog fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.iq-dialog legend {
  font-family: "Red Rose", "Special Gothic", sans-serif; font-weight: 700; font-size: 19px;
  padding: 0 0 10px; margin-bottom: 6px; border-bottom: 2px solid #dc5100; width: 100%;
}
.iq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.iq-full { grid-column: 1 / -1; }
.iq-dialog label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.iq-req { color: #dc5100; }
/* ClickFunnels' page styles size and center form controls; these win over them. */
.iq-dialog, .iq-dialog form, .iq-dialog fieldset, .iq-dialog label, .iq-dialog legend { text-align: left; }
.iq-dialog h2, .iq-sub, .iq-done, .iq-status { text-align: center; }
.iq-overlay .iq-dialog input:not([type=checkbox]), .iq-overlay .iq-dialog select, .iq-overlay .iq-dialog textarea,
.iq-inline.iq-dialog input:not([type=checkbox]), .iq-inline.iq-dialog select, .iq-inline.iq-dialog textarea {
  display: block !important; width: 100% !important; max-width: none !important; min-width: 0 !important;
  margin: 0 !important; height: auto !important; box-sizing: border-box; font: inherit; font-size: 16px; color: #111;
  padding: 11px 12px; border: 1px solid #c9c9c9; border-radius: 10px; background: #fff; text-align: left;
}
.iq-overlay .iq-grid > div, .iq-inline .iq-grid > div {
  min-width: 0; width: auto !important; max-width: none !important; margin: 0 !important; justify-self: stretch !important;
}
.iq-dialog textarea { min-height: 96px; resize: vertical; }
.iq-dialog input:focus, .iq-dialog select:focus, .iq-dialog textarea:focus {
  outline: none; border-color: #dc5100; box-shadow: 0 0 0 3px rgba(220, 81, 0, .18);
}
.iq-dialog .iq-bad { border-color: #c0392b !important; }
.iq-hint { color: #555; font-size: 14px; margin: 6px 0 10px; }
.iq-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.iq-checks label { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 0; cursor: pointer; }
.iq-checks input { margin-top: 3px; width: 17px; height: 17px; accent-color: #dc5100; flex: none; }
.iq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.iq-submit {
  display: block; width: 100%; margin-top: 8px; border: 0; cursor: pointer;
  background: #dc5100; color: #fff; border-radius: 126px; padding: 18px 24px;
  font-family: "Special Gothic", sans-serif; font-weight: 700; font-size: 18px;
  box-shadow: 0 6px 16px rgba(220, 81, 0, .35);
}
.iq-submit:hover { background: #c34800; }
.iq-submit[disabled] { opacity: .65; cursor: wait; }
.iq-status { min-height: 1.4em; margin: 12px 0 0; text-align: center; color: #c0392b; font-weight: 600; }

.iq-done { text-align: center; padding: 24px 0 8px; }
.iq-done p { font-size: 19px; margin: 0 0 22px; }

@media (max-width: 600px) {
  .iq-overlay { padding: 0; }
  .iq-dialog { margin: 0; min-height: 100%; border-radius: 0; padding: 56px 18px 28px; }
  .iq-grid, .iq-checks { grid-template-columns: 1fr; }
}

/* Inline on a page (Contact). */
.iq-section { background: #0f0f0f; padding: 10px 16px 70px; }
.iq-inline.iq-dialog { margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
@media (max-width: 600px) {
  .iq-section { padding: 0 0 40px; }
  .iq-inline.iq-dialog { border-radius: 0; padding: 32px 18px 28px; min-height: 0; }
}

/* Consent line under the Send button (calls/texts/email permission). */
.iq-overlay .iq-dialog .iq-consent, .iq-inline.iq-dialog .iq-consent {
  margin: 12px 0 0; color: #666; font-size: 13px; line-height: 1.5; text-align: center;
}
.iq-dialog .iq-consent a { color: #dc5100; }
