:root {
  --cabernet: #670038;
  --cabernet-dark: #4a0028;
  --ink: #2a2223;
  --gray: #6b6b6b;
  --gray-light: #f5f3f2;
  --border-gray: #e0ddda;
}

html, body {
  height: 100%;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hve-header {
  background: var(--cabernet);
  color: #fff;
}

.hve-logo {
  height: 36px;
  width: auto;
}

.hve-brand-agent {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  opacity: 0.85;
}

.hve-hero {
  padding: 4rem 0 5rem;
  flex: 1 0 auto;
}

.hve-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hve-title {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--cabernet-dark);
  margin-bottom: 1rem;
}

.hve-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

.hve-card {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  padding: 2.5rem;
}

.hve-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.hve-input {
  border: 1px solid #d5d0cd;
  border-radius: 4px;
  padding: 0.85rem 1rem;
}

.hve-input:focus {
  border-color: var(--cabernet);
  box-shadow: 0 0 0 3px rgba(103, 0, 56, 0.15);
}

.hve-btn-primary {
  background: var(--cabernet);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 0.85rem 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.hve-btn-primary:hover {
  background: var(--cabernet-dark);
  color: #fff;
}

.hve-btn-primary:disabled {
  opacity: 0.6;
}

.hve-fineprint {
  font-size: 0.78rem;
  color: var(--gray);
}

.hve-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 4px solid rgba(103, 0, 56, 0.15);
  border-top-color: var(--cabernet);
  border-radius: 50%;
  animation: hve-spin 0.9s linear infinite;
}

@keyframes hve-spin {
  to { transform: rotate(360deg); }
}

.hve-estimate-range {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.5rem;
}

.hve-estimate-mid {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3rem);
  color: var(--cabernet-dark);
}

.hve-estimate-low,
.hve-estimate-high {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 600;
}

.hve-report-address {
  color: var(--gray);
  margin-bottom: 2rem;
}

.hve-comps-title {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--cabernet-dark);
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.hve-comp-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.95rem;
}

.hve-comp-row:last-child {
  border-bottom: none;
}

.hve-comp-price {
  font-weight: 700;
  color: var(--cabernet);
}

.hve-agent-footer {
  border-top: 1px solid var(--border-gray);
  font-size: 0.9rem;
  color: var(--gray);
}

.hve-footer {
  background: var(--cabernet-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hve-footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}
