/* Goal input feedback styles for index.html. */

#client_goal{
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  color: #000 !important;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  /* Public pages reserve the landing header globally; keep extra air below the field. */
  scroll-margin-top: clamp(16px, 12vh, 96px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  height: calc(2.6em + 20px);
  min-height: calc(2.6em + 20px);
  max-height: calc(2.6em + 20px);
  resize: none;
}

@media (max-width: 500px){
  #client_goal{
height: calc(3em + 20px);
min-height: calc(3em + 20px);
max-height: calc(3em + 20px);
  }
}

#goalFeedbackMessage:empty::before {
  content: attr(data-empty-text);
  color: var(--app-color-primary, #365945);
  font-weight: 400;
  line-height: 1.4;
}

#goalFeedbackMessage {
  justify-content: flex-start;
  text-align: left;
  font-weight: 400;
  line-height: 1.4;
}

.feedback-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.feedback-row .button-group {
  margin: 0;
}

.feedback-message {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  min-height: 1.2em;
  flex: 1 1 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-card .feedback-row{
  margin-top:0;
}

.flow-card .feedback-message{
  justify-content:flex-start;
  min-height:1.4rem;
}

.flow-card #client_goal{
  border-color:var(--guided-control-border);
  border-radius:var(--guided-control-radius);
  box-shadow:var(--guided-control-shadow);
}

.flow-card #client_goal:focus{
  border-color:rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.34);
  box-shadow:0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.08);
}

@media (max-width: 560px){
  .flow-card .feedback-message{
    justify-content:center;
  }
}

.feedback-circles {
  display: inline-flex;
  gap: 9px;
}

.feedback-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: var(--tb-green, #365945);
  background: transparent;
  opacity: 0.3;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.feedback-circle.filled {
  background-color: currentColor;
  opacity: 1;
}
