/* "Talk to a specialist" form. Mirrors the Price Check modal (price_check.css)
   so the two read as one family, with its own hr- names so neither script
   can grab the other's elements. */

.hr-modal {
  position: fixed; inset: 0;
  z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.hr-modal[hidden] { display: none !important; }

.hr-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.hr-modal-panel {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 48px 32px 24px;
  color: #1a1a1a;
  box-sizing: border-box;
}
.hr-close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  font-size: 28px; line-height: 1; cursor: pointer;
  color: #666;
  border-radius: 50%;
}
.hr-close-btn:hover { background: #f3f4f6; color: #1a1a1a; }

.hr-modal-panel h2 { margin: 0 0 6px; font-size: 22px; color: #1976d2; }
.hr-lede { margin: 0 0 20px; color: #666; font-size: 14px; }

.hr-field { display: block; margin-bottom: 16px; }
.hr-field-label {
  display: block; font-weight: 600; font-size: 13px;
  color: #1a1a1a; margin-bottom: 6px;
}
.hr-field-label small { font-weight: normal; color: #666; }
.hr-field input,
.hr-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  box-sizing: border-box;
  font-family: inherit;
}
.hr-field textarea { resize: vertical; }
.hr-field input:focus,
.hr-field textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

/* Off screen rather than display:none, which some bots skip. */
.hr-trap {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.hr-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 12px 0; font-size: 13px; line-height: 1.45; cursor: pointer;
}
.hr-consent input {
  margin-top: 3px; min-width: 18px; min-height: 18px; cursor: pointer;
}
.hr-consent a { color: #1976d2; }

.hr-error {
  background: #fdecea; border: 1px solid #f5c6cb; color: #c62828;
  padding: 10px 12px; border-radius: 8px; margin: 12px 0; font-size: 14px;
}
.hr-error[hidden] { display: none; }

.hr-submit {
  width: 100%; min-height: 44px;
  background: #1976d2; color: #fff;
  border: 0; border-radius: 8px;
  font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 8px;
}
.hr-submit:hover { background: #115293; }
.hr-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.hr-thanks { text-align: center; padding: 8px 0 16px; }
.hr-thanks p { color: #2e7d32; margin: 8px 0 0; }

@media (max-width: 600px) {
  .hr-modal-panel { padding: 48px 18px 16px; width: calc(100vw - 16px); }
  .hr-modal-panel h2 { font-size: 19px; }
}
