.dpl-calc-page {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dpl-calc-header {
  text-align: center;
  margin-bottom: 32px;
}

.dpl-calc-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: #0D0D0D;
  margin: 0 0 8px;
}

.dpl-calc-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: #6B6B6B;
  margin: 0;
}

/* Card */
.dpl-calc-card {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  padding: 36px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Field */
.dpl-calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dpl-calc-label {
  font-size: 14px;
  font-weight: 500;
  color: #0D0D0D;
}

/* Input */
.dpl-calc-input-wrap {
  display: flex;
  align-items: center;
  background: #F7F7F7;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 0 16px;
  height: 52px;
  transition: border-color 0.15s;
}

.dpl-calc-input-wrap:focus-within {
  border-color: #FF9A01;
}

.dpl-calc-input-wrap--with-select {
  padding-right: 0;
}

.dpl-calc-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0D0D0D;
  min-width: 0;
  -moz-appearance: textfield;
}

.dpl-calc-input::-webkit-outer-spin-button,
.dpl-calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.dpl-calc-unit {
  font-size: 14px;
  font-weight: 400;
  color: #ADADAD;
  flex-shrink: 0;
}

/* Unit select (mcg/mg) */
.dpl-calc-unit-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-left: 1px solid #E5E5E5;
  padding: 0 12px 0 12px;
  height: 100%;
}

.dpl-calc-unit-select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  outline: none;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B6B6B;
  padding-right: 20px;
  cursor: pointer;
}

.dpl-calc-select-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #ADADAD;
  display: flex;
  align-items: center;
}

/* Syringe selector */
.dpl-calc-syringes {
  display: grid;
  /* One syringe, 1 mL U-100 (owner, 2026-09-25): the width one of live's three tiles had. */
  grid-template-columns: minmax(0, 200px);
  gap: 12px;
}

.dpl-calc-syringe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: #FFFFFF;
  border: 1.5px solid #E5E5E5;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'Geist', sans-serif;
}

.dpl-calc-syringe:hover {
  border-color: #ADADAD;
}

.dpl-calc-syringe.active {
  border-color: #0D0D0D;
  background: #FAFAFA;
}

.dpl-calc-syringe__img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpl-calc-syringe__ml {
  font-size: 14px;
  font-weight: 500;
  color: #0D0D0D;
}

.dpl-calc-syringe__units {
  font-size: 12px;
  font-weight: 300;
  color: #6B6B6B;
}

/* Calculate button */
.dpl-calc-btn {
  width: 100%;
  height: 52px;
  background: #FF9A01;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.dpl-calc-btn:hover {
  background: #D97F00;
}

/* Results */
.dpl-calc-results {
  border-top: 1px solid #E5E5E5;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dpl-calc-results[hidden] {
  display: none;
}

.dpl-calc-results__title {
  font-size: 16px;
  font-weight: 500;
  color: #0D0D0D;
  margin: 0;
}

.dpl-calc-results__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dpl-calc-result-item {
  background: rgba(255, 154, 1, 0.07);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dpl-calc-result-item__label {
  font-size: 12px;
  font-weight: 400;
  color: #6B6B6B;
}

.dpl-calc-result-item__value {
  font-size: 18px;
  font-weight: 500;
  color: #0D0D0D;
}

.dpl-calc-results__disclaimer {
  font-size: 12px;
  font-weight: 300;
  color: #ADADAD;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* Mobile */
@media screen and (max-width: 600px) {
  .dpl-calc-page {
    padding: 40px 0;
  }

  .dpl-calc-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .dpl-calc-syringes {
    gap: 8px;
  }

  .dpl-calc-syringe {
    padding: 12px 8px;
  }

  .dpl-calc-results__grid {
    grid-template-columns: 1fr;
  }
}

/* Shown when the dose needs more units than the chosen barrel holds. */
.dpl-calc-results__fit {
  font-size: 13px;
  font-weight: 400;
  color: #0D0D0D;
  background: #FFF4E5;
  border: 1px solid #FF9A01;
  border-radius: 20px;
  padding: 12px 16px;
  margin: 0 0 16px;
  line-height: 1.5;
  text-align: center;
}
