/**
 * Helix dosage calculator — Forta overrides (scoped .sec-hc-dosage-calc)
 */

.sec-hc-dosage-calc {
  --hc: #267cf3;
}

/* Global theme list bullets */
.sec-hc-dosage-calc ul li {
  padding-left: 0;
}
.sec-hc-dosage-calc ul li:before {
  content: none;
}

.sec-hc-dosage-calc .sec-title {
  display: none;
}

.sec-hc-dosage-calc .email-form-cont,
.sec-hc-dosage-calc fieldset {
  margin: 0;
  padding: 2em 0;
  border-top: 1px dashed #808285;
}
.sec-hc-dosage-calc fieldset:first-of-type {
  border-top: 0;
}
.sec-hc-dosage-calc fieldset + fieldset {
  margin-top: -1px;
}
.sec-hc-dosage-calc fieldset:last-of-type {
  margin-bottom: 1em;
}

.sec-hc-dosage-calc .email-form-cont .title,
.sec-hc-dosage-calc .status .title,
.sec-hc-dosage-calc fieldset .title {
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 2em;
}

.sec-hc-dosage-calc fieldset .subtitle {
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.sec-hc-dosage-calc fieldset .type {
  text-transform: capitalize;
}

/* Step rows: unit + reinforcement side by side; options in a row */
.sec-hc-dosage-calc fieldset .flex.wrap.cols {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start !important;
  gap: 1.5rem 1.5rem;
}
.sec-hc-dosage-calc fieldset .flex.wrap.cols > .item.inp-cont {
  min-width: min(100%, 220px);
}

.sec-hc-dosage-calc .fields.flex {
  position: relative;
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  gap: 0.5rem 0.65rem;
}
.sec-hc-dosage-calc .fields.flex .btn + .btn {
  margin: 0 !important;
}

/* Hide native radios */
.sec-hc-dosage-calc input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* Squared option buttons (overrides theme .btn) */
.sec-hc-dosage-calc input[type="radio"] + label,
.sec-hc-dosage-calc .fields.flex label.btn {
  display: inline-block;
  margin: 0;
  padding: 0.7em 1.25em;
  border-radius: 2px;
  border: 1px solid var(--hc);
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
}
.sec-hc-dosage-calc input[type="radio"] + label:hover,
.sec-hc-dosage-calc .fields.flex label.btn:hover:not(.is-active) {
  background: var(--hc);
  color: #fff;
}
/* Theme .btn wins without !important; .is-active is toggled in script.js */
.sec-hc-dosage-calc .fields.flex input[type="radio"]:checked + label.btn,
.sec-hc-dosage-calc .fields.flex label.btn.is-active {
  background: var(--hc) !important;
  border-color: var(--hc) !important;
  color: #fff !important;
}
.sec-hc-dosage-calc input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--hc);
  outline-offset: 2px;
}

/* Dropdowns: only a chosen value (.not-empty) keeps the solid accent — same “locked in” idea as a checked radio. Empty selects use a light hover only. */
.sec-hc-dosage-calc select {
  padding: 0.5em 1.2em 0.5em 0.5em !important;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 2px;
}
.sec-hc-dosage-calc select:not(.not-empty):hover {
  border-color: var(--hc);
  background-color: #ecf4fe;
}
.sec-hc-dosage-calc select.not-empty {
  border-color: var(--hc) !important;
  background: var(--hc) ;
  color: #fff !important;
}

.sec-hc-dosage-calc .errors {
  padding: 2em 0;
  color: #d01;
  font-size: 1.5em;
}
.sec-hc-dosage-calc .errors:empty {
  display: none;
}

.sec-hc-dosage-calc .status {
  margin: 3em 0;
}
.sec-hc-dosage-calc .status ul {
  list-style: none;
  margin: 0 0 2em;
  padding: 0;
  font-weight: 700;
  font-size: 1.25em;
}
.sec-hc-dosage-calc .status h6 {
  margin: 8px 0 8px 0;
}
.sec-hc-dosage-calc .status .amount {
  color: var(--hc);
  font-size: 1.5em;
}

/* Calculate + Contact Us + phone (theme .btn is pill-shaped) */
.sec-hc-dosage-calc .submit-cont .btn,
.sec-hc-dosage-calc .btn-cont .btn {
  border-radius: 2px;
}
.sec-hc-dosage-calc .btn-cont {
  margin: -0.5em;
}
.sec-hc-dosage-calc .btn-cont .btn {
  margin: 0.5em;
}
.sec-hc-dosage-calc .submit-cont {
  margin: 0 0 2em;
}
.sec-hc-dosage-calc .footer-text a {
  text-decoration: underline;
  font-weight: normal;
}
