/* ============================================
   MOUNJARO WEIGHT LOSS CALCULATOR
   [mounjaro_calculator] shortcode — standalone styles
   Loaded on any page that uses the shortcode
   ============================================ */

.mj-calc {
  margin: 3rem 0;
  border-radius: 20px;
  background: #f0f5fa;
  border: 1px solid rgba(63, 115, 174, 0.12);
  box-shadow: 0 8px 40px rgba(63, 115, 174, 0.10),
              0 2px 8px rgba(63, 115, 174, 0.06);
  overflow: hidden;
}

/* --- Header --- */

.mj-calc-header {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
}

.mj-calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(63, 115, 174, 0.15);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(63, 115, 174, 0.08);
}

.mj-calc-badge i {
  font-size: 0.75rem;
  color: var(--brand-primary);
}

.mj-calc-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.25;
  margin: 0 0 0.625rem;
}

/* "You" — the one word that should pop */
.mj-calc-title-accent {
  color: #3f73ae;
  font-style: italic;
}

.mj-calc-subtitle {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--text-gray);
  margin: 0;
}

/* --- Form --- */

.mj-calc-form {
  padding: 0 2rem 2rem;
}

.mj-calc-input-group {
  margin-bottom: 1.5rem;
}

.mj-calc-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.mj-calc-unit-toggle {
  display: inline-flex;
  background: rgba(63, 115, 174, 0.06);
  border: 1px solid rgba(63, 115, 174, 0.12);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 1rem;
}

.mj-calc-unit {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mj-calc-unit.active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(63, 115, 174, 0.35);
}

.mj-calc-unit:hover:not(.active) {
  background: rgba(63, 115, 174, 0.1);
  color: var(--brand-primary);
}

/* Weight input fields */

.mj-calc-weight-fields {
  position: relative;
}

.mj-calc-field {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.mj-calc-field.active {
  display: flex;
}

.mj-calc-input {
  width: 120px;
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  border: 2px solid rgba(63, 115, 174, 0.18);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
}

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

.mj-calc-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(63, 115, 174, 0.12);
}

.mj-calc-input-suffix {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-slate);
}

/* Stone field has two inputs */

.mj-calc-field-st .mj-calc-input {
  width: 80px;
}

/* Submit button */

.mj-calc-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(63, 115, 174, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  justify-content: center;
}

.mj-calc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(63, 115, 174, 0.45);
}

.mj-calc-submit:active {
  transform: translateY(0);
}

/* --- Results (hidden until calculated) --- */

.mj-calc-results {
  display: none;
  padding: 0 2rem 2rem;
}

.mj-calc-results.visible {
  display: block;
  animation: mjCalcFadeIn 0.5s ease;
}

@keyframes mjCalcFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Results header — accent bar + cool background */

.mj-calc-results-header {
  position: relative;
  text-align: center;
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(135deg, rgba(63, 115, 174, 0.06), rgba(63, 115, 174, 0.02));
  border: 1px solid rgba(63, 115, 174, 0.1);
  border-radius: 16px;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.mj-calc-results-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-primary), var(--brand-dark));
  border-radius: 16px 16px 0 0;
}

.mj-calc-results-eyebrow {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.mj-calc-results-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.2;
}

/* The big number — bold, unmissable */

.mj-calc-highlight {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Before -> After weight row */

.mj-calc-results-weight-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
}

.mj-calc-from-weight {
  color: var(--text-slate);
  text-decoration: line-through;
  text-decoration-color: rgba(63, 115, 174, 0.4);
}

.mj-calc-from-weight i {
  color: var(--brand-primary);
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.mj-calc-arrow {
  color: rgba(63, 115, 174, 0.4);
  font-size: 1rem;
}

.mj-calc-to-weight {
  color: #1e3a5f;
  font-weight: 700;
}

.mj-calc-to-weight i {
  color: var(--brand-primary);
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

.mj-calc-results-subtext {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  color: var(--text-slate);
  margin: 0.75rem 0 0;
}

/* --- Timeline (3 milestones) --- */

.mj-calc-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.mj-calc-timeline-item {
  position: relative;
  background: #fff;
  border: 1px solid rgba(63, 115, 174, 0.1);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mj-calc-timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(63, 115, 174, 0.12);
}

/* Featured "Your Goal" card — dark navy, larger */

.mj-calc-timeline-featured {
  background: linear-gradient(160deg, #1e3a5f, #2d5070);
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.25);
  padding: 1.75rem 1rem;
}

.mj-calc-timeline-featured .mj-calc-timeline-week {
  color: rgba(255, 255, 255, 0.7);
}

.mj-calc-timeline-featured .mj-calc-timeline-value {
  color: #fff;
  font-size: 2rem;
}

.mj-calc-timeline-featured .mj-calc-timeline-sublabel {
  color: rgba(255, 255, 255, 0.6);
}

.mj-calc-timeline-featured:hover {
  box-shadow: 0 12px 36px rgba(30, 58, 95, 0.35);
}

.mj-calc-timeline-peak {
  font-family: var(--font-primary);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  background: rgba(63, 115, 174, 0.15);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.mj-calc-timeline-peak i {
  font-size: 0.5625rem;
}

.mj-calc-timeline-week {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
}

.mj-calc-timeline-value {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0.5rem 0 0.125rem;
}

.mj-calc-timeline-sublabel {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--text-slate);
}

/* --- Social proof bar (single line) --- */

.mj-calc-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(63, 115, 174, 0.08);
  border: 1px solid rgba(63, 115, 174, 0.15);
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  color: #1e3a5f;
  line-height: 1.4;
  text-align: center;
}

.mj-calc-proof-bar i {
  color: var(--brand-primary);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.mj-calc-proof-bar strong {
  color: #1e3a5f;
  font-weight: 700;
}

/* --- CTA button — solid white text, always readable --- */

.mj-calc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  border-radius: 14px;
  padding: 1.125rem 2rem;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(63, 115, 174, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mj-calc-cta:hover,
.mj-calc-cta:focus,
.mj-calc-cta:visited {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(63, 115, 174, 0.45);
  background: linear-gradient(135deg, var(--brand-dark), #1d3d5f);
}

.mj-calc-cta:active {
  transform: translateY(0);
}

.mj-calc-cta i {
  color: #fff !important;
  transition: transform 0.2s ease;
}

.mj-calc-cta:hover i {
  transform: translateX(3px);
}

/* --- Disclaimer --- */

.mj-calc-disclaimer {
  margin: 0;
  padding: 1.25rem 2rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-slate);
  border-top: 1px solid rgba(63, 115, 174, 0.08);
}

.mj-calc-disclaimer i {
  color: var(--brand-primary);
  margin-right: 0.25rem;
}

/* --- Mobile --- */

@media (max-width: 768px) {
  .mj-calc-header {
    padding: 2rem 1.5rem 1.25rem;
  }

  .mj-calc-title {
    font-size: 1.5rem;
  }

  .mj-calc-form {
    padding: 0 1.5rem 1.5rem;
  }

  .mj-calc-results {
    padding: 0 1.5rem 1.5rem;
  }

  .mj-calc-timeline {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .mj-calc-timeline-featured .mj-calc-timeline-value {
    font-size: 1.625rem;
  }

  .mj-calc-highlight {
    font-size: 2.25rem;
  }

  .mj-calc-timeline-value {
    font-size: 1.25rem;
  }

  .mj-calc-proof-bar {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .mj-calc-disclaimer {
    padding: 1.25rem 1.5rem;
  }

  .mj-calc-results-weight-row {
    font-size: 0.8125rem;
  }
}
