/* HLC Land Value Calculator v2.0 — Unified Progressive Flow */

.hlc-calc {
  font-family: 'Poppins', sans-serif;
  max-width: 640px;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}

/* ─── Step 1: Calculate Form ─── */

.hlc-calc__form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: #F5EACF;
  border-radius: 12px 12px 0 0;
  grid-template-columns: 1fr 1fr;
}

.hlc-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hlc-calc__field:first-child {
  grid-column: 1 / -1;
}

.hlc-calc__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d4a24;
}

.hlc-calc .hlc-calc__select,
.hlc-calc .hlc-calc__input {
  height: 44px !important;
  padding: 0 12px !important;
  border: 2px solid #d1c9a8 !important;
  border-radius: 8px !important;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.hlc-calc .hlc-calc__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
  cursor: pointer;
}

.hlc-calc .hlc-calc__select:focus,
.hlc-calc .hlc-calc__input:focus {
  outline: none;
  border-color: #6B7A40 !important;
  box-shadow: 0 0 0 3px rgba(107, 122, 64, 0.15);
}

.hlc-calc .hlc-calc__select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hlc-calc__btn {
  grid-column: 1 / -1;
  padding: 0.75rem;
  background: #6B7A40;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.hlc-calc__btn:hover:not(:disabled) { background: #5a6836; }
.hlc-calc__btn:active:not(:disabled) { transform: scale(0.98); }
.hlc-calc__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Result Panel (wraps result + refine + lead) ─── */

.hlc-calc__result-panel {
  border: 2px solid #6B7A40;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

/* ─── Result Display ─── */

.hlc-calc__result {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
}

.hlc-calc__result-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6B7A40;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hlc-calc__result-range {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.35rem;
}

.hlc-calc__result-detail {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.hlc-calc__result-note {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.4;
}

/* ─── Step 2: Refine Section ─── */

.hlc-calc .hlc-calc__refine {
  border-top: 1px solid #e8e4d8;
}

.hlc-calc .hlc-calc__refine-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem !important;
  background: #f9f6ee !important;
  border: none !important;
  border-top: 1px solid #d1c9a8 !important;
  border-bottom: 1px solid #d1c9a8 !important;
  border-radius: 0 !important;
  font-family: inherit;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #6B7A40 !important;
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.hlc-calc .hlc-calc__refine-toggle:hover {
  background: #f0ead6 !important;
  color: #556332 !important;
}

.hlc-calc .hlc-calc__chevron {
  transition: transform 0.2s, color 0.2s;
  color: #aaa;
}

.hlc-calc .hlc-calc__refine-toggle:hover .hlc-calc__chevron {
  color: #6B7A40;
}

.hlc-calc__refine-toggle[aria-expanded="true"] .hlc-calc__chevron {
  transform: rotate(180deg);
}

.hlc-calc__refine-body {
  padding: 1rem 1.5rem 1.5rem;
  background: #f9f6ee;
}

.hlc-calc__refine-intro {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1rem 0;
}

.hlc-calc__factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.hlc-calc__factor {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hlc-calc__adjusted {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid #6B7A40;
}

.hlc-calc__adjusted-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hlc-calc__adjusted-label {
  font-weight: 600;
  color: #555;
  font-size: 0.95rem;
}

.hlc-calc__adjusted-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #6B7A40;
}

.hlc-calc__breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #888;
  padding: 0.15rem 0;
}

/* ─── Step 3: Lead Capture ─── */

.hlc-calc__lead {
  padding: 1.5rem;
  background: #fff;
  border-top: 1px solid #e8e4d8;
}

.hlc-calc__lead-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.35rem;
}

.hlc-calc__lead-sub {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1.25rem 0;
}

.hlc-calc__lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.hlc-calc__lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hlc-calc__lead-consent {
  margin-bottom: 1rem;
}

.hlc-calc__lead-consent label {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
  cursor: pointer;
}

.hlc-calc__lead-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

/* Honeypot - invisible */
.hlc-calc__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* CTA button */
.hlc-calc .hlc-calc__cta {
  display: block;
  width: 100%;
  padding: 0.85rem 2.25rem;
  background: #EB8B23 !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(235, 139, 35, 0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-align: center;
  box-sizing: border-box;
}

.hlc-calc .hlc-calc__cta:hover:not(:disabled) {
  background: #d57a1a !important;
  box-shadow: 0 4px 12px rgba(235, 139, 35, 0.4);
  transform: translateY(-1px);
}

.hlc-calc .hlc-calc__cta:active:not(:disabled) {
  transform: scale(0.98);
}

.hlc-calc .hlc-calc__cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ── Dual Intent Buttons ── */
.hlc-calc__intent-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hlc-calc__intent-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 2.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-align: center;
  box-sizing: border-box;
}
/* Report-only: sage green outline */
.hlc-calc__intent-btn--report {
  background: #fff !important;
  color: #6B7A40 !important;
  border: 2px solid #6B7A40;
}
.hlc-calc__intent-btn--report:hover {
  background: #f0f3ea !important;
  transform: translateY(-1px);
}
/* Offer + Report: orange CTA (primary) */
.hlc-calc__intent-btn--offer {
  background: #EB8B23 !important;
  color: #fff !important;
  border: 2px solid #EB8B23;
  box-shadow: 0 2px 8px rgba(235, 139, 35, 0.3);
}
.hlc-calc__intent-btn--offer:hover {
  background: #d57a1a !important;
  border-color: #d57a1a;
  box-shadow: 0 4px 12px rgba(235, 139, 35, 0.4);
  transform: translateY(-1px);
}
.hlc-calc__intent-btn:active {
  transform: scale(0.98) !important;
}
.hlc-calc__intent-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success state */
.hlc-calc__lead-success {
  text-align: center;
  padding: 1rem 0;
}

.hlc-calc__lead-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6B7A40;
  color: #fff;
  font-size: 1.5rem;
  line-height: 48px;
  margin: 0 auto 0.75rem;
}

.hlc-calc__lead-success-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.hlc-calc__lead-success-text {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Error state */
.hlc-calc__lead-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hlc-calc__lead-privacy {
  font-size: 0.75rem;
  color: #999;
  margin: 1rem 0 0 0;
  text-align: center;
}

.hlc-calc__lead-privacy a {
  color: #6B7A40;
}

/* ─── Mobile Responsive ─── */

@media (max-width: 600px) {
  .hlc-calc__form,
  .hlc-calc__factors,
  .hlc-calc__lead-row {
    grid-template-columns: 1fr;
  }

  .hlc-calc__field:first-child {
    grid-column: 1;
  }

  .hlc-calc__btn {
    grid-column: 1;
  }

  .hlc-calc__result-range {
    font-size: 1.4rem;
  }

  .hlc-calc__adjusted-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
