.hhqs-quote-box {
  position: sticky;
  top: 16px;
  z-index: 5;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #d7dce2;
  border-radius: 10px;
  background: #f8fafc;
  color: #172033;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
}

.hhqs-quote-box h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.hhqs-quote-message,
.hhqs-deposit-note {
  margin: 0;
  color: #526071;
}

.hhqs-breakdown {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hhqs-breakdown li,
.hhqs-total-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hhqs-breakdown li {
  padding: 9px 0;
  border-bottom: 1px solid #e1e6ec;
}

.hhqs-breakdown strong {
  white-space: nowrap;
}

.hhqs-total-row {
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #a7169f;
  font-size: 20px;
}

.hhqs-total {
  color: #a7169f;
  font-size: 28px;
  white-space: nowrap;
}

.hhqs-deposit-note {
  margin-top: 12px;
  font-size: 14px;
}

/* Fluent Form #4: Happy Helpers branded layout. */
#fluentform_4 {
  --hhqs-purple: #a7169f;
  --hhqs-purple-dark: #85117f;
  --hhqs-ink: #172033;
  --hhqs-muted: #526071;
  --hhqs-border: #d7dce2;
  box-sizing: border-box;
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  align-items: start;
  column-gap: clamp(22px, 4vw, 38px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #e2e6eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(23, 32, 51, 0.08);
  color: var(--hhqs-ink);
}

#fluentform_4,
#fluentform_4 * {
  box-sizing: border-box;
}

#fluentform_4 > .hhqs-form-fields {
  grid-column: 1;
  min-width: 0;
}

#fluentform_4 > .hhqs-quote-box {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0;
}

@media (min-width: 601px) {
  #fluentform_4 > .hhqs-quote-box {
    top: 130px;
  }
}

#fluentform_4 .ff-el-group {
  margin-bottom: 22px;
}

#fluentform_4 .ff-el-input--label label,
#fluentform_4 .ff-el-form-check-label {
  color: var(--hhqs-ink);
  font-weight: 600;
}

#fluentform_4 .ff-el-input--label label {
  margin-bottom: 8px;
}

#fluentform_4 input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
#fluentform_4 select,
#fluentform_4 textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--hhqs-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--hhqs-ink);
  font: inherit;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#fluentform_4 textarea {
  min-height: 120px;
  resize: vertical;
}

#fluentform_4 input:not([type="radio"]):not([type="checkbox"]):focus,
#fluentform_4 select:focus,
#fluentform_4 textarea:focus {
  border-color: var(--hhqs-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 22, 159, 0.14);
}

#fluentform_4 .ff-el-form-check {
  margin: 8px 0;
}

#fluentform_4 input[type="radio"],
#fluentform_4 input[type="checkbox"] {
  accent-color: var(--hhqs-purple);
}

#fluentform_4 .ff-el-help-message,
#fluentform_4 .text-danger,
#fluentform_4 .error {
  font-size: 13px;
  line-height: 1.45;
}

#fluentform_4 .ff-btn-submit,
#fluentform_4 button[type="submit"],
#fluentform_4 input[type="submit"] {
  min-height: 52px;
  padding: 13px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--hhqs-purple);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(167, 22, 159, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#fluentform_4 .ff-btn-submit:hover,
#fluentform_4 button[type="submit"]:hover,
#fluentform_4 input[type="submit"]:hover {
  background: var(--hhqs-purple-dark);
  transform: translateY(-1px);
}

#fluentform_4 .ff-btn-submit:focus-visible,
#fluentform_4 button[type="submit"]:focus-visible,
#fluentform_4 input[type="submit"]:focus-visible {
  outline: 3px solid rgba(167, 22, 159, 0.25);
  outline-offset: 3px;
}

#fluentform_4 .ff-message-success {
  padding: 16px 18px;
  border: 1px solid #a7e1c1;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
}

@media (max-width: 600px) {
  #fluentform_4 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    padding: 20px 16px;
    border-radius: 12px;
  }

  #fluentform_4 > .hhqs-form-fields {
    grid-column: 1;
    grid-row: 2;
  }

  #fluentform_4 > .hhqs-quote-box {
    grid-column: 1;
    grid-row: 1;
    position: static;
    max-height: none;
    overflow: visible;
  }

  #fluentform_4 .ff-t-container {
    display: block;
  }

  #fluentform_4 .ff-t-cell {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #fluentform_4 .ff-btn-submit,
  #fluentform_4 button[type="submit"],
  #fluentform_4 input[type="submit"] {
    width: 100%;
  }

  .hhqs-quote-box {
    top: 8px;
    margin: 0 0 22px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(23, 32, 51, 0.12);
  }

  .hhqs-quote-box h3 {
    margin-bottom: 8px;
    font-size: 20px;
  }

  .hhqs-quote-results {
    max-height: none;
    overflow: visible;
  }

  .hhqs-breakdown li,
  .hhqs-total-row {
    gap: 12px;
  }

  .hhqs-breakdown li span {
    min-width: 0;
  }

  .hhqs-total-row {
    font-size: 17px;
  }

  .hhqs-total {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #fluentform_4 input,
  #fluentform_4 select,
  #fluentform_4 textarea,
  #fluentform_4 button {
    transition: none;
  }
}
