/* v1.4.2 - traffic category calculator ONLY. No calculator value or formula changes.
 * Last stylesheet in the traffic plugin, to beat the theme/v1.4.1 conflicting rules.
 */
body.mtcb-traffic-lp .mtcb-calculator-refined.mtcb-form142 {
  width: min(100%, 900px) !important;
  max-width: 900px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: clamp(24px, 3vw, 45px) auto !important;
  padding: clamp(18px, 2.5vw, 34px) !important;
  border: 1px solid #e8dfc6 !important;
  border-radius: 22px !important;
  background-color: #fffdf8 !important;
  overflow: visible !important;
}
body.mtcb-traffic-lp .mtcb-form142 :is(form,fieldset,label,.mtcb-date-pair142) {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
/* Large, readable field names; no Japanese word split or random line break. */
body.mtcb-traffic-lp .mtcb-form142 .mtcb-field-label142,
body.mtcb-traffic-lp .mtcb-form142 .mtcb-calculator-field-label {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
  font-size: clamp(19px, 1.8vw, 23px) !important;
  font-weight: 900 !important;
  line-height: 1.48 !important;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
  letter-spacing: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
body.mtcb-traffic-lp .mtcb-form142 .mtcb-field-name142 {
  display: inline-block !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  font-size: inherit !important;
  font-weight: 900 !important;
  line-height: inherit !important;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
  text-shadow: none !important;
  background: none !important;
}
body.mtcb-traffic-lp .mtcb-form142 label.mtcb-field-has-input142 {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  margin: 0 0 15px !important;
  text-align: left !important;
}
body.mtcb-traffic-lp .mtcb-form142 label.mtcb-field-has-input142 :is(small,.help,.description) {
  font-size: clamp(13px, 1vw, 15px) !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
  color: #4a4a4a !important;
  -webkit-text-fill-color: #4a4a4a !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
/* Field font is intentionally larger than the 16-17px inherited from Ken'i. */
body.mtcb-traffic-lp .mtcb-form142 input.mtcb-input142,
body.mtcb-traffic-lp .mtcb-form142 input.mtcb-calculator-field {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 66px !important;
  height: auto !important;
  padding: 13px 15px !important;
  font-size: clamp(19px, 1.85vw, 23px) !important;
  line-height: 1.4 !important;
  font-weight: 750 !important;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: .01em !important;
  color: #171717 !important;
  -webkit-text-fill-color: #171717 !important;
  background: #fff !important;
  background-image: none !important;
  border: 2px solid #aab0b8 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  text-align: left !important;
}
body.mtcb-traffic-lp .mtcb-form142 input.mtcb-input142::placeholder { font-size: 19px !important; color: #5c626b !important; opacity: 1 !important; }
body.mtcb-traffic-lp .mtcb-form142 input.mtcb-input142::-webkit-datetime-edit,
body.mtcb-traffic-lp .mtcb-form142 input.mtcb-input142::-webkit-date-and-time-value {
  color: #171717 !important;
  -webkit-text-fill-color: #171717 !important;
  font-size: inherit !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}
body.mtcb-traffic-lp .mtcb-form142 input.mtcb-input142::-webkit-calendar-picker-indicator {
  opacity: 1 !important;
  width: 22px !important;
  height: 22px !important;
  cursor: pointer !important;
}
body.mtcb-traffic-lp .mtcb-form142 input.mtcb-input142:focus-visible {
  border-color: #8e7000 !important;
  outline: 3px solid #f3d24c !important;
  outline-offset: 2px !important;
}
/* Force only the date pair to stack on narrow devices. */
@media (max-width: 767px) {
  body.mtcb-traffic-lp .mtcb-calculator-refined.mtcb-form142 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px 22px !important;
    border-radius: 16px !important;
    margin: 20px auto 30px !important;
  }
  body.mtcb-traffic-lp .mtcb-form142 .mtcb-date-pair142 {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 10px !important;
  }
  body.mtcb-traffic-lp .mtcb-form142 .mtcb-field-label142,
  body.mtcb-traffic-lp .mtcb-form142 .mtcb-calculator-field-label {
    font-size: clamp(18px,4.9vw,21px) !important;
    line-height: 1.45 !important;
  }
  body.mtcb-traffic-lp .mtcb-form142 input.mtcb-input142,
  body.mtcb-traffic-lp .mtcb-form142 input.mtcb-calculator-field {
    font-size: 20px !important;
    min-height: 62px !important;
    padding: 12px 12px !important;
  }
}
/* CTA: a single large yellow action with no legacy bottom-rule / black dots. */
body.mtcb-traffic-lp .mtcb-form142 .mtcb-calculator-submit,
body.mtcb-traffic-lp .mtcb-form142 .mtcb-submit142 {
  box-sizing: border-box !important;
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .35em !important;
  width: min(100%, 560px) !important;
  max-width: 100% !important;
  min-height: 75px !important;
  padding: 17px 24px !important;
  margin: 22px auto 24px !important;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
  font-size: clamp(21px, 2.3vw, 26px) !important;
  line-height: 1.38 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  background: #ffdc29 !important;
  background-image: none !important;
  border: 1px solid #e8b31b !important;
  border-radius: 13px !important;
  box-shadow: 0 4px 0 #c89d18,0 12px 28px rgba(32,29,18,.11) !important;
  text-shadow: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  cursor: pointer !important;
}
body.mtcb-traffic-lp .mtcb-form142 .mtcb-calculator-submit::before,
body.mtcb-traffic-lp .mtcb-form142 .mtcb-calculator-submit::after,
body.mtcb-traffic-lp .mtcb-form142 .mtcb-submit142::before,
body.mtcb-traffic-lp .mtcb-form142 .mtcb-submit142::after,
body.mtcb-traffic-lp .mtcb-form142 .mtcb-cta-row142::before,
body.mtcb-traffic-lp .mtcb-form142 .mtcb-cta-row142::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
}
body.mtcb-traffic-lp .mtcb-form142 .mtcb-cta-row142 {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  background-image: none !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}
body.mtcb-traffic-lp .mtcb-form142 .mtcb-submit142:hover { background: #ffe86c !important; transform: translateY(-1px); }
body.mtcb-traffic-lp .mtcb-form142 .mtcb-submit142:focus-visible { outline: 3px solid #173d88 !important; outline-offset: 4px !important; }
@media (max-width: 767px) {
  body.mtcb-traffic-lp .mtcb-form142 .mtcb-submit142 {
    width: 100% !important;
    min-height: 72px !important;
    font-size: clamp(19px,5.2vw,23px) !important;
    padding: 15px 10px !important;
    margin: 20px auto 24px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.mtcb-traffic-lp .mtcb-form142 .mtcb-submit142 { transition: none !important; transform: none !important; }
}
