/*
 * hytrans_fix_b2.css
 * ------------------
 * Page-specific styling that should not disturb the shared layout baseline.
 *
 * IMPORTANT: Do NOT change the CSS import order in assets/app.js.
 */

/* ==============================
   Performance Calculator
   ============================== */

/* Header variant: make the hero match the design of the reference pages */
.ht-app-hero--calculator{
  /* slightly tighter like the other app pages */
  padding: 18px 18px 0;
}

/* Bring back a small gap between logo and hero photo (the row uses g-0 in the partial). */
.ht-app-hero--calculator .row{
  --bs-gutter-x: 18px;
}

.ht-app-hero--calculator .ht-app-hero__logo{
  /* Keep the combined shield+wordmark from becoming oversized on wider viewports */
  height: clamp(48px, 6vw, 86px);
  width: auto;
}

.ht-app-hero--calculator .ht-app-hero__photo{
  height: 155px;
  /* On the calculator page the photo should span the available right area (like the ref) */
  width: 100%;
  max-width: none;
  border-radius: 22px;
  background-size: cover;
  background-repeat: no-repeat;
  /* Arrow / pijl uitsparing */
  -webkit-clip-path: polygon(16% 0, 100% 0, 100% 100%, 16% 100%, 0 50%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 16% 100%, 0 50%);
}

.ht-performance-calculator .ht-mobile__content .px-4{
  padding-top: 26px !important;
}

.ht-performance-calculator .ht-calc-field[hidden]{
  display: none !important;
}

.ht-calc__top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.ht-calc__title{
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  line-height: 1.05;
  color: #000000;
  margin: 0;
}

.ht-calc__clear{
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 30px;
  color: #2F8EEC;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}


.ht-calc__clear-btn{
  background: transparent;
  border: 0;
  padding: 0;
}

.ht-calc__clear:hover,
.ht-calc__clear:focus{
  color: #2F8EEC;
  text-decoration-thickness: 2px;
}

.ht-calc-field{
  margin-bottom: 16px;
}

.ht-calc-field__label{
  display: block;
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 30px;
  line-height: 1.1;
  color: #000000;
  margin-bottom: 6px;
}

.ht-calc-field__control{
  position: relative;
}

.ht-calc-field__select{
  width: 100%;
  height: 46px;
  border: 1px solid #14539B;
  border-radius: 2px;
  background: #FFFFFF;
  color: #000000;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-size: 18px;
  padding: 6px 54px 6px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.ht-calc-field__input{
  width: 100%;
  height: 46px;
  border: 1px solid #14539B;
  border-radius: 2px;
  background: #FFFFFF;
  color: #000000;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-size: 18px;
  /* Inputs have no dropdown icon; don't reserve space on the right. */
  padding: 6px 12px 6px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Defensive: if an icon element exists in an input control (shouldn't), hide it. */
.ht-calc-field__control--input .ht-calc-field__icon{ display: none; }

.ht-calc-field__control.is-filled .ht-calc-field__select,
.ht-calc-field__control.is-filled .ht-calc-field__input{
  background: #238B45;
  border-color: #238B45;
  color: #FFFFFF;
}

.ht-calc-field__icon{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  line-height: 1;
  color: #CCC9C8;
  pointer-events: none;
}

.ht-calc-field__hint{
  margin-top: 4px;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(0,0,0,0.70);
}

.ht-calc-field__error{
  margin-top: 4px;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  color: #D50C1A;
}

/* When there's no error message, don't reserve vertical space. */
.ht-calc-field__error:empty{ display: none; }

.ht-calc-field.is-invalid .ht-calc-field__select,
.ht-calc-field.is-invalid .ht-calc-field__input{
  border-color: #D50C1A;
}

.ht-calc__submit{
  display: block;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 6px;
  height: 46px;
  border-radius: 2px;
  border: 1px solid #14539B;
  background: #14539B;
  color: #FFFFFF;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-size: 18px;
}

.ht-calc__submit:focus-visible{
  outline: 3px solid rgba(47, 142, 236, 0.55);
  outline-offset: 2px;
}

.ht-calc__note{
  margin-top: 6px;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000000;
}

.ht-calc__diagram{
  /* Match the ref: diagram is visually separated and centered */
  margin-top: 24px;
  padding-top: 12px;
  padding-bottom: 8px;
}

.ht-calc__diagram-btn{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.ht-calc__diagram-btn:focus-visible{
  outline: 3px solid rgba(47, 142, 236, 0.55);
  outline-offset: 6px;
}

.ht-calc__diagram-stage{
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.ht-calc__diagram-img{
  width: 100%;
  height: auto;
  display: block;
}

.ht-calc__diagram-btn{
  cursor: zoom-in;
}

.ht-calc__diagram-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Lightbox overlay */
.ht-no-scroll{
  overflow: hidden;
}

.ht-calc__lightbox{
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,.65);
}

.ht-calc__lightbox[hidden]{
  display: none !important;
}

.ht-calc__lightbox-dialog{
  position: relative;
  width: min(980px, 100%);
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
  padding: 16px 16px 18px;
}

.ht-calc__lightbox-close{
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  padding: 6px;
  line-height: 1;
  font-size: 28px;
  color: #000;
}

.ht-calc__lightbox-stage{
  position: relative;
  margin-top: 38px;
  max-height: calc(90vh - 60px);
  overflow: auto;
}

.ht-calc__lightbox-img{
  width: 100%;
  height: auto;
  display: block;
}

.ht-calc__lightbox-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Responsive: keep it readable on small screens */
@media (max-width: 575.98px){
  .ht-calc__title{ font-size: 36px; }
  .ht-calc__clear{ font-size: 26px; }
  .ht-calc-field__label{ font-size: 26px; }
}


/* Numeric input spin buttons (subtle) */
.ht-calc-field__input[type=number]{
  -moz-appearance: textfield;
}
.ht-calc-field__input[type=number]::-webkit-outer-spin-button,
.ht-calc-field__input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

/* Backward compatibility: some templates may still use class="hidden" */
.ht-calc-field.hidden{ display:none !important; }
