/* Pep Talk — dose calculator (matches funnel glass / beach theme) */
.pt-calc__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pt-calc__card {
  padding: clamp(22px, 4vw, 32px);
}

.pt-calc__head { margin-bottom: 18px; text-align: center; }
.pt-calc__logo { display: block; height: 40px; width: auto; margin: 0 auto 12px; }
.pt-calc__head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0;
  text-shadow: 0 1px 2px rgba(255,255,255,.92);
}
.pt-calc__sub {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.5;
}

.pt-calc__fields { display: flex; flex-direction: column; gap: 14px; }
.pt-calc__row { display: flex; flex-direction: column; gap: 8px; }

.pt-calc__label-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-calc__label {
  margin: 0;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.pt-calc__tip-wrap { position: relative; display: inline-flex; align-items: center; }
.pt-calc__tip-btn {
  background: none; border: none; padding: 0; margin: 0; cursor: help; line-height: 0;
}
.pt-calc__tip-btn:focus { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 50%; }
.pt-calc__info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid rgba(20,58,94,.35);
  font-size: 10px; font-weight: 700; font-style: italic; color: var(--ink-mute);
}
.pt-calc__tip-bubble {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 220px; max-width: min(92vw, 300px); padding: 12px 14px;
  background: var(--navy-deep); color: #fff;
  font-size: 12px; line-height: 1.45; font-family: var(--font-body); font-weight: 600;
  text-align: left; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(14,42,70,.35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease; z-index: 20;
}
.pt-calc__tip-bubble::after {
  content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px;
  border: 6px solid transparent; border-top-color: var(--navy-deep);
}
.pt-calc__tip-wrap:hover .pt-calc__tip-bubble,
.pt-calc__tip-wrap:focus-within .pt-calc__tip-bubble { opacity: 1; visibility: visible; }

.pt-calc__control {
  display: flex; align-items: stretch;
  border: 1px solid var(--glass-edge); border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.88);
}
.pt-calc__control--output {
  background: rgba(63,128,212,0.12);
  border-color: rgba(38,95,168,0.28);
}
.pt-calc__input {
  flex: 1; min-width: 0; border: none; padding: 13px 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  color: var(--navy); background: transparent; outline: none;
}
.pt-calc__input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.pt-calc__select {
  border: none; border-left: 1px solid var(--glass-edge);
  padding: 10px 12px; font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--ink-soft); background: rgba(255,255,255,0.65); max-width: 46%; cursor: pointer;
}
.pt-calc__suffix {
  display: flex; align-items: center; padding: 0 14px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--ink-mute); background: rgba(255,255,255,0.65);
  border-left: 1px solid var(--glass-edge); white-space: nowrap;
}
.pt-calc__output {
  flex: 1; display: flex; align-items: center; padding: 13px 14px;
  font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--blue-deep);
}

.pt-calc__syringe { margin-top: 22px; }
.pt-calc__syringe-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-head); font-size: 9px; font-weight: 700;
  color: var(--ink-mute); margin-bottom: 6px; padding: 0 2px;
}
.pt-calc__syringe-body {
  position: relative; height: 46px; border-radius: 10px;
  border: 2px solid rgba(20,58,94,.22);
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  overflow: hidden;
}
.pt-calc__syringe-fill {
  position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(180deg, #57a0e8 0%, var(--blue-deep) 100%);
  border-radius: 8px 0 0 8px; transition: width .25s ease;
}
.pt-calc__syringe-ticks {
  position: absolute; inset: 0;
  background-image: linear-gradient(270deg, rgba(20,58,94,.25) 1px, transparent 1px);
  background-size: 10% 100%; opacity: .55; pointer-events: none;
}
.pt-calc__syringe-plunger-wrap { display: flex; justify-content: flex-end; margin-top: 8px; }
.pt-calc__syringe-plunger {
  height: 6px; width: 40%; background: var(--navy);
  border-radius: 2px; transition: width .25s ease;
}
.pt-calc__syringe-caption {
  margin: 8px 0 0; font-size: 11px; font-weight: 600; color: var(--ink-mute); text-align: center;
}

.pt-calc__result { padding: 20px 22px; background: rgba(255,255,255,0.58) !important; }
.pt-calc__result-line {
  margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 1.65; color: var(--ink-soft);
}
.pt-calc__result-line:last-child { margin-bottom: 0; }
.pt-calc__result-line strong { font-weight: 800; color: var(--navy); }
.pt-calc__result-line--muted { color: var(--ink-mute); font-size: 13px; }
.pt-calc__result.is-placeholder .pt-calc__result-line:not(.pt-calc__result-line--muted) { display: none; }
.pt-calc__result.is-placeholder .pt-calc__result-line--muted { display: block !important; }
.pt-calc__result:not(.is-placeholder) .pt-calc__result-line--muted { display: none; }

.pt-calc__warn {
  padding: 18px 20px;
  background: rgba(255,246,232,0.72) !important;
  border-color: rgba(244,180,58,0.45) !important;
}
.pt-calc__warn p {
  margin: 0; font-size: 13px; font-weight: 600; line-height: 1.7; color: var(--ink-soft);
}

.pt-calc__actions { display: flex; justify-content: center; }
.pt-calc__about {
  margin: 0; font-size: 13px; font-weight: 600; line-height: 1.7;
  color: var(--ink-mute); text-align: center; padding: 0 4px;
}

@media (max-width: 480px) {
  .pt-calc__control { flex-wrap: wrap; }
  .pt-calc__select {
    max-width: 100%; width: 100%; border-left: none;
    border-top: 1px solid var(--glass-edge);
  }
}

@media (max-width: 760px) {
  .pt-calc__sub { font-size: 15px; font-weight: 700; }
  .pt-calc__label { font-size: 14px; }
  .pt-calc__result-line { font-size: 15px; font-weight: 700; }
  .pt-calc__warn p { font-size: 14px; font-weight: 700; }
  .pt-calc__about { font-size: 14px; font-weight: 700; }
}
