/* ============================================ */
/* SHARE BOX ENHANCEMENTS                       */
/* ============================================ */
/* ===== SHARE BOX ENHANCEMENTS ===== */
/* ===== SHARE BOX HEADLINE ENHANCEMENTS ===== */

.share-headline {
  font-size: 1.3rem;
  color: #15803d;
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
  display: inline-block;     /* IMPORTANT: needed for underline + hover */
  cursor: default;
  position: relative;
}

/* Leaf icon (moved to BEFORE actual text for alignment) */
.share-headline::before {
  content: "🍃 ";
  font-size: 1.3rem;
  position: relative;
  top: -1px;
}

/* Underline hover animation */
.share-headline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: #15803d;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.share-headline:hover::after {
  transform: scaleX(1);
}

/* Glow effect on hover */
.share-headline:hover {
  text-shadow: 0 0 8px rgba(34,197,94,0.5);
}

/* Optional leaf icon before the headline */
.share-headline::before {
  content: "🍃 ";
  font-size: 1.1rem;
  position: relative;
  top: -1px;
}

/* Button hover and focus refinements */
#shareWithJamesBtn:hover {
  background:#15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

#shareWithJamesBtn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.45); /* green glow */
}/* Simple tooltip icon for field labels */
/* Simple custom tooltip for field labels */
.tooltip-icon {
  position: relative;
  display: inline-block;
  margin-left: 4px;
  cursor: help;
  font-size: 0.85rem;
  color: #6b7280;
}

/* The bubble */
.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: 125%;
  transform: translateX(0);
  background: #111827;
  color: #f9fafb;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: normal;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  min-width: 180px;
  max-width: 260px;
  z-index: 20;
}

/* The little arrow */
.tooltip-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 115%;
  transform: translateX(0);
  border-width: 6px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.tooltip-icon:hover {
  color: #111827;
}

/* Show tooltip on hover */
.tooltip-icon:hover::after,
.tooltip-icon:hover::before {
  opacity: 1;
}
/* Contact box styling under input cards */
/* Contact box styling under the 3 main sections */
.contact-box {
  margin: 32px auto 28px auto;     
  max-width: 600px;
  padding: 14px 22px;
  border: 2px solid #1e3a8a;        /* keep the blue border */
  border-radius: 14px;
  text-align: center;
  background: #d4af37;              /* SAME GOLD AS GOLD STANDARD */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  animation: contactPop 0.7s ease-out 1;
}

.contact-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #000;                      /* BLACK TEXT */
  line-height: 1.25;
}

.contact-email {
  color: #000;                      /* BLACK EMAIL TEXT */
  font-weight: 700;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-email-icon {
  margin-right: 4px;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-email-icon {
  margin-right: 4px;
}

/* Animation for contact box on page load */
@keyframes contactPop {
  0%   { transform: translateY(10px); opacity: 0; }
  60%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
  background-size: 200% auto;
  color: transparent;               /* text is "cut out" of the gradient */
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.25);  /* soft glow around letters */
  animation: goldShimmer 2.5s linear infinite;
}

  40% {
    opacity: 0.9;
    transform: translateX(120%) skewX(-20deg);
  }
  60% {
    opacity: 0;
    transform: translateX(140%) skewX(-20deg);
  }
  100% {
    opacity: 0;
    transform: translateX(140%) skewX(-20deg);
  }
}
}
/* FINAL GOLD STANDARD STYLE – big, sharp, readable */
/* GOLD STANDARD – bold, readable, and sized to avoid wrapping */
/* GOLD STANDARD – slightly bigger, wider spacing, still fits one line */
.gold-standard {
  display: inline-block;
  font-weight: 900;
  font-size: 1.78rem;        /* increased but still safe from wrapping */
  letter-spacing: 0.085em;  /* noticeably wider spacing */
  color: #d4af37;           
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000;
}
/* Tagline under the header */
.gold-tagline {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 28px;
  font-size: 1.55rem;      /* larger so it spans the page */
  font-weight: 700;
  color: #222;
  line-height: 1.25;
  max-width: 1100px;       /* wider than before */
  margin-left: auto;
  margin-right: auto;
}

/* GOLD STANDARD – big, spaced, solid gold with crisp black outline */
.gold-standard {
  display: inline-block;
  font-weight: 900;
  font-size: 2.1rem;        /* larger than the rest of the line */
  letter-spacing: 0.10em;   /* clear spacing between letters */
  color: #d4af37;           /* solid gold */
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000;       /* black outline */
}
/* ─────────── BUTTON SYSTEM ─────────── */

/* Base button reset */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease-out;
  text-align: center;
  text-decoration: none;
  user-select: none;
}

/* Hover lift */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Focus highlight (same as your current system) */
.btn:focus,
.btn:focus-visible {
  outline: none;
  background-color: #fff8b3 !important;
  color: #000 !important;
  border-color: #b91c1c !important;
  border-width: 4px !important;
  box-shadow: 0 0 0 4px rgba(248,113,113,0.7);
}

/* PRIMARY (Calculate) */
.btn-primary {
  background-color: #2563eb;
  color: white;
}

/* SECONDARY (Load Sample / Clear Inputs / Detail View / Top) */
.btn-secondary {
  background-color: #f2f2f2;
  color: #222;
  border: 2px solid #999;
}

/* SUCCESS / CTA (Share My ) */
.btn-success {
  background-color: #16a34a;
  color: white;
}

/* PDF / SPECIAL */
.btn-danger {
  background-color: #b91c1c;
  color: white;
}
/* Wobble animation for entry fields on focus */

  15%  { transform: translateX(-3px); }
  30%  { transform: translateX(3px); }
  45%  { transform: translateX(-2px); }
  60%  { transform: translateX(2px); }
  75%  { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

/* Apply wobble to all text/number inputs inside the main cards */
.card input[type="text"]:focus,
.card input[type="text"]:focus-visible,
.card input[type="number"]:focus,
.card input[type="number"]:focus-visible {
  animation: wobbleInput 0.35s ease-out;
}
/* Full-width clean slider under Annuity rows */
.slider-row {
  margin-top: -4px;        /* pulls closer to Annuity 1 row */
  margin-bottom: 10px;     /* spacing before Start Age row */
}

.slider-row input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  appearance: none;
  background: #ddd;
  outline: none;
}

/* Blue thumb like Apple sliders */
.slider-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.slider-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
