.acft-calc-pro {
  font-family: 'Poppins', Arial, sans-serif;
  max-width: 1020px;
  margin: 32px auto;
  padding: 16px 8px 60px 8px;
  background: #FCFCFF;
}
.acft-calc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.5rem;
  justify-content: space-between;
}
.acft-calc-title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #000;
}
.acft-calc-selectors {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.acft-gender-toggle {
  display: flex;
  gap: 0.8rem;
}
.acft-gender-toggle input[type=radio] {
  display: none;
}
.acft-gender-toggle label {
  border: 2px solid #FA8C28;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.08rem;
  padding: .4rem 1.6rem .4rem 1.1rem;
  color: #FA8C28;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .65em;
  box-shadow: 0 2px 12px rgba(250,140,40,0.06);
  transition: all .2s;
}
.acft-gender-toggle input[type=radio]:checked + label,
.acft-gender-toggle label.active {
  background: linear-gradient(87deg,#FA8C28 60%, #824BF3 100%);
  color: #fff;
  border-color: #FA8C28;
}
.icon-bg {
  width: 2.1em; height: 2.1em; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #FFF3EA;
  color: #FA8C28;
  font-size: 1.25em;
  transition: background .18s;
}
.acft-gender-toggle input[type=radio]:checked + label .icon-bg {
  background: #FA8C28;
  color: #fff;
}
.acft-age-picker label {
  font-weight: 700; color: #222; margin-right: 0.5em;
}
.acft-age-picker select {
  border: 2px solid #824BF3;
  border-radius: .8em;
  padding: .28em .85em;
  font-weight: 600;
  color: #824BF3;
  background: #fff;
}
.acft-calc-main {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.acft-events {
  flex: 1 1 430px;
  min-width: 0;
}
.acft-card-pro {
  border: 2.5px solid transparent;
  border-radius: 1.3em;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(26,128,225,0.06);
  margin-bottom: 1.4em;
  padding: 1.2em 1.8em 1.3em 1.1em;
  display: flex;
  align-items: flex-start;
  gap: 1.1em;
  position: relative;
  transition: box-shadow .22s, border .2s;
  border-image: linear-gradient(80deg, #FA8C28 20%, #824BF3 98%);
  border-image-slice: 1;
}
.acft-card-pro:hover {
  box-shadow: 0 10px 36px 0 rgba(26,128,225,0.13);
}
.acft-event-icon {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(132deg,#FFF7EF 70%,#F3EFFF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.05em;
  color: #FA8C28;
  margin-top: 2px;
  border: 2px solid #FFF4E1;
}
.acft-event-title {
  font-size: 1.13rem;
  font-weight: 800;
  color: #1B80E1;
  margin-bottom: .28em;
  display: flex; align-items: center; gap: .35em;
}
.acft-event-title span {
  font-weight: 500;
  color: #555;
  font-size: 1em;
}
.acft-slider-row {
  display: flex; align-items: center; gap: .9em;
  margin-bottom: .3em;
}
.acft-slider {
  flex: 1 1 80px;
  accent-color: #FA8C28;
  background: #eee;
  height: 3.5px;
  border-radius: 1em;
}
.acft-numinput {
  border: none;
  border-bottom: 2.2px solid #824BF3;
  font-size: 1.15em;
  width: 70px;
  text-align: right;
  color: #000;
  font-weight: 700;
  background: transparent;
  padding: 0 2px 0 0;
  transition: border-color .15s, background .14s;
}
.acft-numinput:focus {
  outline: none;
  border-color: #FA8C28;
  background: #f8f3ff;
}
.acft-unit {
  font-size: .98em;
  color: #222;
  margin-left: 3px;
  font-weight: 500;
}
.acft-points {
  font-weight: 800;
  color: #824BF3;
  min-width: 90px;
  text-align: right;
  font-size: 1.16em;
}
.acft-results-panel {
  flex: 0 0 300px;
  max-width: 340px;
  min-width: 215px;
  margin-left: auto;
  position: sticky;
  top: 30px;
  z-index: 20;
}
.acft-results-inner {
  background: #FAFAFF;
  border-radius: 1.2em;
  box-shadow: 0 3px 26px 0 rgba(250,140,40,0.08);
  padding: 2.1em 1.8em 2.1em 1.5em;
  min-height: 220px;
  border: 1.5px solid #FA8C28;
  display: flex; flex-direction: column; align-items: center;
}
.results-title { color: #1B80E1; font-size: 1.22em; font-weight: 700; letter-spacing: .5px;}
.results-score { font-size: 2.4em; font-weight: 900; color: #824BF3; line-height: 1.15;}
.results-sub { margin-top: 1.6em; width:100%;}
.results-label { color: #222; font-weight: 600; font-size: 1.02em; }
.results-status {
  font-weight: 700;
  font-size: 1.1em;
  color: #26AB27;
  margin-top: .28em;
  transition: color .13s;
}
.results-status.fail { color: #FA8C28; }
.acft-reset-btn {
  display: block;
  margin: 1.7em auto 0 auto;
  padding: .68em 1.8em;
  border-radius: 2.3em;
  background: linear-gradient(80deg, #FA8C28 20%, #824BF3 80%);
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
  border: none;
  transition: background .2s;
}
.acft-reset-btn:hover {
  background: linear-gradient(80deg, #824BF3 10%, #FA8C28 98%);
}
@media (max-width: 900px) {
  .acft-calc-main { flex-direction: column; }
  .acft-results-panel { position: static; margin-left: 0; margin-top: 2em;}
}
@media (max-width: 600px) {
  .acft-calc-pro {
    padding: 4vw 2vw 70px 2vw;
    min-width: 0;
  }
  .acft-calc-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .acft-calc-title { font-size: 1.03rem; }
  .acft-calc-selectors { width: 100%; gap: 1.1rem; }
  .acft-gender-toggle { width: 100%; gap: .5rem; }
  .acft-gender-toggle label {
    width: 49%;
    font-size: 1rem;
    padding: .45rem .7rem;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
  }
  .acft-age-picker select {
    width: 100%;
    font-size: 1rem;
    padding: .28em .3em;
  }
  .acft-calc-main { flex-direction: column; gap: 1.1rem; }
  .acft-events { width: 100%; }
  .acft-card-pro {
    flex-direction: column;
    padding: .7em .4em .7em .6em;
    gap: .8em;
    margin-bottom: 1em;
    width: 100%;
    box-sizing: border-box;
  }
  .acft-event-icon {
    width: 38px; height: 38px; font-size: 1.15em;
  }
  .acft-slider-row {
    flex-wrap: wrap;
    gap: .6em;
  }
  .acft-slider { min-width: 0; }
  .acft-numinput {
    width: 58px;
    font-size: .97em;
    min-width: 0;
  }
  .acft-unit { font-size: .95em; }
  .acft-points { font-size: 1em; min-width: 60px;}
  .acft-results-panel {
    max-width: 100%;
    min-width: 0;
    margin-top: 1.5em;
    position: static;
  }
  .acft-results-inner { padding: 1em .8em 1em .6em; min-height: 110px;}
}

.acft-slider-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;         /* <-- THIS enables wrapping */
  width: 100%;
  box-sizing: border-box;
}

.acft-slider {
  flex: 2 1 120px;         /* slider can shrink/grow, minimum 120px */
  min-width: 100px;
  max-width: 220px;
}

.acft-numinput {
  flex: 0 0 66px;          /* fixed width for number input */
  width: 66px;
  min-width: 0;
  font-size: 1.1em;
}

.acft-unit {
  flex: 0 0 auto;
  font-size: 1em;
}

.acft-points {
  flex: 0 0 auto;
  font-size: 1.07em;
  font-weight: bold;
  color: #824BF3;
  min-width: 56px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .acft-slider-row {
    gap: 0.38em;
    flex-wrap: wrap;
    padding-top: 0.45em;
  }
  .acft-slider {
    min-width: 70px;
    max-width: 100%;
    flex: 1 1 80px;
  }
  .acft-numinput {
    width: 54px;
    font-size: 1em;
  }
  .acft-unit, .acft-points {
    font-size: 0.98em;
    min-width: 0;
  }
}
