/** Home Value form **/
.tr-hv-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: clamp(1.75rem, 2.2vw, 2.35rem);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.tr-hv-card-header {
  margin-bottom: 1.5rem;
}

.tr-hv-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.tr-hv-card-text {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7280;
}

/* Pill badge */
.tr-hv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.07);
  color: #15803d;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.tr-hv-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

/* Form layout */
.tr-hv-form {
  margin: 0;
}

.tr-hv-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1rem;
}

.tr-hv-form-grid--two-col {
  /* 1 column by default */
}

@media (min-width: 720px) {
  .tr-hv-form-grid--two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tr-hv-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tr-hv-form-group--full {
  grid-column: 1 / -1;
}

/* Labels / hints */
.tr-hv-label {
  font-size: 0.8rem;
  color: #4e4e4e;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;}

.tr-hv-required {
  color: #dc2626;
  margin-left: 2px;
}

.tr-hv-hint {
  font-size: 0.78rem;
  color: #6b7280;
}

.tr-hv-error-message {
  font-size: 0.78rem;
  color: #b91c1c;
}

/* Actions */
.tr-hv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.tr-hv-btn-primary {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #0c6efd, #0a58ca);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 12px 25px rgba(12, 110, 253, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
  white-space: nowrap;
}

/* When validation fails, reset button to a square shape */
.tr-hv-btn-primary.tr-hv-btn-primary--error {
  border-radius: 4px;
  box-shadow: none;
}

.tr-hv-btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(12, 110, 253, 0.3);
}

.tr-hv-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(12, 110, 253, 0.22);
}

.tr-hv-disclaimer {
  font-family: 'Figtree', sans-serif;
  font-size: 0.70rem;
  color: #6b7280;
  line-height: 1.5;
  padding-top: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
  width: 100%;
}

/* Success message */
.tr-hv-success {
  display: none;
  margin-top: 1.25rem;
}

.tr-hv-success-message {
  margin: 0;
  font-size: 0.95rem;
  color: #166534;
  line-height: 1.5;
}
