/* ============================================================
   Green House Realty Core — form & component styles.
   Falls back to brand colours if the theme variables are absent.
   ============================================================ */

.ghr-quote-form {
  --ghr-green: #228B22;
  --ghr-green-dark: #176317;
  --ghr-sand: #D4B483;
  --ghr-cream: #F8F4EC;
  --ghr-line: rgba(34, 139, 34, 0.16);
  background: #fff;
  border: 1px solid var(--ghr-line);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 18px 50px -28px rgba(15, 61, 16, 0.4);
}

.ghr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ghr-field { margin-bottom: 16px; }

.ghr-field label {
  display: block;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #1d241d;
}

.ghr-field input,
.ghr-field select,
.ghr-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ghr-line);
  border-radius: 8px;
  font: inherit;
  background: #fbfaf6;
  color: #1d241d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ghr-field input:focus,
.ghr-field select:focus,
.ghr-field textarea:focus {
  outline: none;
  border-color: var(--ghr-green);
  box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.12);
  background: #fff;
}

.ghr-field textarea { resize: vertical; }

/* Honeypot — hidden from humans. */
.ghr-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ghr-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  font-size: 0.9rem;
  color: #5a635a;
}
.ghr-consent input { margin-top: 4px; flex: none; }

.ghr-quote-submit { margin-top: 4px; }

.ghr-form-status {
  display: none;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.ghr-form-status[data-state="success"] {
  display: block;
  background: rgba(34, 139, 34, 0.1);
  color: var(--ghr-green-dark);
  border: 1px solid rgba(34, 139, 34, 0.25);
}
.ghr-form-status[data-state="error"] {
  display: block;
  background: rgba(190, 60, 40, 0.08);
  color: #a23b2b;
  border: 1px solid rgba(190, 60, 40, 0.25);
}

.ghr-quote-form.is-loading .ghr-quote-submit {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 600px) {
  .ghr-form-row { grid-template-columns: 1fr; }
  .ghr-quote-form { padding: 22px; }
}
