
:root {
  --ho-blue:        #1174DC;
  --ho-blue-dark:   #0d5ab0;
  --ho-blue-light:  #e6f0fb;
  --ho-gray-text:   #8F8F8F;
  --ho-gray-bg:     #EFEFEF;
  --ho-black:       #191919;
  --ho-white:       #ffffff;
  --ho-border:      #D8D8D8;
  --ho-green:       #0d9f6e;
  --ho-green-light: #e6f7f0;
  --ho-warn-bg:     #fff4f4;
  --ho-warn-border: #e24b4a;
  --ho-info-bg:     #fffae6;
  --ho-info-border: #f59e0b;
  --ho-font-title:  'Poppins', sans-serif;
  --ho-font-body:   'Raleway', sans-serif;
}

.ho-calc-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


.ho-disclaimer {
  background: var(--ho-info-bg);
  padding: 10px 24px;
  text-align: center;
  font-family: var(--ho-font-body);
  font-size: 14px;
  color: #7c5200;
  line-height: 1.5;
  border-radius:5px;
  margin-bottom:30px;
}
.ho-disclaimer strong {
  font-weight: 700;
}


.ho-calc-wrap {
  background: var(--ho-gray-bg);
  font-family: var(--ho-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ho-black);
}

.ho-page {
  max-width: 83%;
  margin: 0 auto;
  padding: 56px 24px 88px;
}


.ho-layout {
  display: flex;
  gap: 44px;
  align-items: flex-start;
}


.ho-left {
  flex: 0 0 500px;
  padding-top: 6px;
}

.ho-eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8f8f8f;
  font-family: Raleway, sans-serif;
}

.ho-left h1 {
  font-size: 45px;
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 100%;
  color: var(--dhc-text);
  font-weight: 650;
  margin: 5px 0 0 -3px;
}

.ho-left h2 {
  font-family: var(--ho-font-title);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ho-blue);
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.ho-intro {
    margin: 12px 0 0;
    max-width: 100%;
    color: #8F8F8F;
    font-size: 1.05rem;
    line-height: 1.65;
    font-family: Raleway, sans-serif;
}
.ho-intro a {
  color: var(--ho-blue);
  text-decoration: none;
  font-weight: 600;
}
.ho-intro a:hover { text-decoration: underline; }

.ho-rules-box {
  margin-top: 26px;
  background: var(--ho-white);
  border: 1px solid var(--ho-border);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.ho-rules-box h4 {
  font-family: var(--ho-font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.ho-rule-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--ho-gray-bg);
  font-family: var(--ho-font-body);
  font-size: .92rem;
  font-weight: 450;
}
.ho-rule-row:last-child { border-bottom: none; }
.ho-rule-row .rl { color: var(--ho-gray-text); }
.ho-rule-row .rv {
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--dhc-text);
  font-family: Poppins, sans-serif;
  font-weight: 600;
}


.ho-card {
  flex: 1;
  background: var(--ho-white);
  border: 1px solid var(--ho-border);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(17, 116, 220, 0.08);
  overflow: hidden;
}

.ho-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 12px;
  border-bottom: 1px solid var(--ho-gray-bg);
  background: var(--ho-white);
}
.ho-sec-header .sh-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 500;
  color: var(--dhc-text);
  font-family: Poppins, sans-serif;
}
.ho-sec-header .sh-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #efefef;
  color: #1174DC;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: Poppins, sans-serif;
  border: 1px solid rgba(17, 116, 220, .15);
}

.ho-divider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px 9px;
  border-top: 1px solid var(--ho-gray-bg);
  border-bottom: 1px solid var(--ho-gray-bg);
  background: #fafbfe;
}
.ho-divider .sd-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 500;
  color: var(--dhc-text);
  font-family: Poppins, sans-serif;
}
.ho-divider .sd-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #efefef;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  color:#1174DC;
  font-family: Poppins, sans-serif;
  border: 1px solid rgba(17, 116, 220, .15);
}


.ho-input-row {
  display: flex;
  align-items: center;
  padding: 8px 22px;
  border-bottom: 1px solid var(--ho-gray-bg);
  min-height: 40px;
}
.ho-input-row:last-of-type { border-bottom: none; }

.ho-input-row .ir-label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-family: var(--ho-font-body);
  font-size: .92rem;
  font-weight: 450;
  color: #8F8F8F;
}
.ho-input-row .ir-prefix,
.ho-input-row .ir-suffix {
  font-family: var(--ho-font-body);
  font-size: 13px;
  color: var(--ho-gray-text);
  flex-shrink: 0;
}
.ho-input-row .ir-prefix { margin-right: 5px; }
.ho-input-row .ir-suffix { margin-left: 7px; min-width: 48px; }

.ho-input-row input[type="number"] {
  width: 135px;
  border: 1.5px solid var(--ho-border);
  border-radius: 6px;
  padding: 5px 8px;
  font-family: var(--ho-font-body);
  font-size: .85rem;
  color: var(--ho-black);
  text-align: right;
  background: var(--ho-white);
  outline: none;
  flex-shrink: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
  font-weight: 600;
}
.ho-input-row input[type="number"]::-webkit-inner-spin-button,
.ho-input-row input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.ho-input-row input[type="number"]:focus {
  border-color: var(--ho-blue);
  box-shadow: 0 0 0 3px rgba(17, 116, 220, 0.12);
}

.ho-input-row select {
  width: 190px;
  border: 1.5px solid var(--ho-border);
  border-radius: 6px;
  padding: 5px 8px;
  font-family: var(--ho-font-body);
  font-size: .85rem;
  color: var(--ho-black);
  background: var(--ho-white);
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-weight: 600;
}
.ho-input-row select:focus {
  border-color: var(--ho-blue);
  box-shadow: 0 0 0 3px rgba(17, 116, 220, 0.12);
}
.ho-input-row select.error {
  border-color: #e24b4a;
  box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.12);
}

/* Slider */
.ho-slider-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ho-input-row input[type="range"] {
  -webkit-appearance: none;
  width: 120px;
  height: 5px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  cursor: pointer;
}
.ho-input-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ho-blue);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(17, 116, 220, 0.35);
  transition: transform 0.1s;
}
.ho-input-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.ho-input-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ho-blue);
  border: none;
  cursor: pointer;
}

.ho-slider-val {
  font-family: var(--ho-font-title);
  font-weight: 700;
  font-size: 13px;
  color: var(--ho-black);
  min-width: 54px;
  text-align: right;
}


.ho-btn-row {
  display: block;
  padding: 16px 22px;
  border-top: 1px solid var(--ho-gray-bg);
  border-bottom: none;
  background: #fafbfe;
}

.ho-btn-row .ho-btn-calc,
.ho-btn-row .ho-btn-reset {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 4px;
}

.ho-btn-calc {
  background: var(--ho-blue);
  color: var(--ho-white);
  border: none;
  border-radius: 100px;
  padding: 10px 28px;
  font-family: var(--ho-font-title);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(17, 116, 220, 0.28);
}
.ho-btn-calc:hover {
  background: var(--ho-blue-dark);
  box-shadow: 0 5px 16px rgba(17, 116, 220, 0.38);
}
.ho-btn-calc:active { transform: scale(0.97); }

.ho-btn-reset {
  background: transparent;
  color: var(--ho-gray-text);
  border: 1.5px solid var(--ho-border);
  border-radius: 100px;
  padding: 9px 22px;
  font-family: var(--ho-font-title);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ho-btn-reset:hover {
  border-color: var(--ho-blue);
  color: var(--ho-blue);
}

.ho-arrow {
  padding: 12px 0 6px;
  background: #fafbfe;
  margin-right: 90px;
}
.ho-arrow svg { display: inline-block; }


.ho-result-row {
  display: flex;
  align-items: center;
  padding: 8px 22px;
  border-bottom: 1px solid var(--ho-gray-bg);
  min-height: 38px;
}
.ho-result-row:last-child { border-bottom: none; }

.ho-result-row .rr-label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-family: var(--ho-font-body);
  font-size: .92rem;
  font-weight: 450;
  color: #8f8f8f;
}
.ho-result-row .rr-prefix {
  font-family: var(--ho-font-body);
  font-size: 13px;
  color: var(--ho-gray-text);
  margin-right: 5px;
  flex-shrink: 0;
}
.ho-result-row .rr-suffix {
  font-family: var(--ho-font-body);
  font-size: 13px;
  color: var(--ho-gray-text);
  margin-left: 7px;
  min-width: 48px;
  flex-shrink: 0;
}

.rr-value {
  width: 135px;
  border: 1.5px solid var(--ho-border);
  border-radius: 6px;
  padding: 4px 9px;
  font-family: var(--ho-font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--ho-black);
  text-align: right;
  background: var(--ho-gray-bg);
  flex-shrink: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: background 0.3s;
}

.ho-result-row.ho-hl-blue .rr-value {
  background: var(--ho-blue-light);
  border-color: var(--ho-blue);
  color: var(--ho-black);
}
.ho-result-row.ho-hl-green .rr-value {
  background: var(--ho-green-light);
  border-color: var(--ho-green);
  color: #0a5c40;
}
.ho-result-row.ho-hl-total .rr-value {
  background: #0d5ab0;
  border-color: #0d5ab0;
  color: var(--ho-white);
  font-size: 14px;
  font-weight: 700;
}
.ho-result-row.ho-muted .rr-label {
  color: var(--ho-gray-text);
}
.ho-result-row.ho-muted .rr-value {
  color: var(--ho-gray-text);
  border-color: #d8d8d8;
  background: #f8f8f8;
  font-family: var(--ho-font-body);
}


.ho-cap-note {
  display: none;
  margin: 0 22px 4px;
  padding: 7px 14px;
  background: var(--ho-warn-bg);
  border-left: 3px solid var(--ho-warn-border);
  border-radius: 0 6px 6px 0;
  font-family: var(--ho-font-body);
  font-size: 12px;
  color: #a32d2d;
  line-height: 1.5;
}
.ho-cap-note.visible { display: block; }

.ho-below-note {
  display: none;
  margin: 0 22px 12px;
  padding: 11px 15px;
  background: var(--ho-info-bg);
  border-left: 3px solid var(--ho-info-border);
  border-radius: 0 6px 6px 0;
  font-family: var(--ho-font-body);
  font-size: 12.5px;
  color: #7c5200;
  line-height: 1.6;
}
.ho-below-note.visible { display: block; }


.ho-tip {
  padding: 20px 22px 22px;
  background: #f5f9ff;
  margin-top: 35px;
  border-radius: 10px 10px 0 0;
}
.ho-tip h4 {
  font-family: var(--ho-font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--ho-blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}
.ho-tip p {
  margin: 12px 0 0;
  max-width: 100%;
  color: #8f8f8f;
  font-size: 0.85rem;
  line-height: 1.65;
  font-family: Raleway, sans-serif;
}
.ho-tip-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}
.ho-tip-links a {
  font-family: var(--ho-font-body);
  font-size: .88rem;
  color: var(--ho-blue);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ho-tip-links a::before {
  content: '→';
  font-weight: 700;
  color: var(--ho-blue);
}
.ho-tip-links a:hover { text-decoration: underline; }


.ho-legal {
  border-top: 1px solid var(--ho-gray-bg);
  padding: 14px 22px;
  background: #fffae6;
  border-radius: 0 0 10px 10px;
}
.ho-legal p {
    margin: 12px 0 0;
    max-width: 100%;
    color: #8f8f8f;
    font-size: .85rem;
    line-height: 1.65;
    font-family: Raleway, sans-serif;
}
.ho-legal p + p { margin-top: 4px; }


@media (max-width: 820px) {
  .ho-layout { flex-direction: column; gap: 28px; }
  .ho-left   { flex: none; width: 100%; }
  .ho-input-row select { width: 150px; }
  .ho-page { padding: 36px 16px 60px; }
}

@media (max-width: 720px) {
  .ho-result-row .rr-label{font-size: .85rem;}
  .ho-btn-row{flex-direction: column; align-items: normal;}
  .ho-sec-header, .ho-divider .sd-title{
    margin-left: -15px;}
  .ho-sec-header .sh-hint, .ho-divider .sd-hint{
    margin-right: -11px; font-size: 13px;}
  .ho-eyebrow{margin: 10px;}
  .ho-sec-header .sh-title, .ho-divider .sd-title{font-size: 1rem;}
  .ho-intro{margin: 10px;}
  .ho-left h1 { font-size: 35px; margin: 0 0 0 10px; }
  .ho-input-row { flex-wrap: wrap; gap: 6px; }
  .ho-input-row .ir-label { flex: 0 0 100%; padding-right: 0; }
  .ho-input-row .ir-suffix { min-width: 36px; }
  .ho-input-row select { width: 100%; }
  .ho-input-row input[type="number"] { width: 90px; }
  .ho-slider-group { width: 100%; justify-content: space-between; }
  .ho-input-row input[type="range"] { width: 160px; }
  .rr-value {width: 65px;}
  .ho-arrow{margin-right: 32px;}
}


@media print {
  .ho-disclaimer,
  .ho-btn-row,
  .ho-tip { display: none; }
  .ho-calc-wrap { background: #fff; }
  .ho-card { box-shadow: none; border: 1px solid #ccc; }
}


.ho-calc-wrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: var(--ho-gray-bg);
}

.ho-page {
  width: 100% !important;
  max-width: 1350px;
  padding: 25px 15px !important;
  box-sizing: border-box !important;
  margin-bottom: 60px;
}

.ho-layout {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  width: 100% !important;
  margin: 0 !important;
}

/* --- 3. COMPONENT FIXES --- */
.ho-left {
  flex: 0 0 500px;
  max-width: 100%;
}

.ho-card {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: var(--ho-white);
  border: 1px solid var(--ho-border);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (max-width: 1024px) {
  .ho-layout {
    flex-direction: column !important;
    gap: 20px;
  }
  

  .ho-left, .ho-card {
    width: 100% !important;
    flex: none !important;
  }

  .ho-tip-links a {
    word-break: break-word;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .ho-page {
    padding: 20px 10px !important;
  }

  .ho-input-row, .ho-result-row {
    padding: 12px 8px !important;
  }

  .ho-left h1 {
    font-size: 24px !important;
  }
}

.dhc-fit-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    display: inline-block;
}
