/* ============================================================
   Retirement Savings Longevity Calculator
   How Long Will Retirement Savings Last Calculator
   Scenic IT Solutions Theme Styling
   ============================================================ */

.retire-calc-wrapper {
  width: 100%;
  color: #f0f0f8;
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Two-column responsive layout */
.retire-grid-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 32px;
  align-items: start;
  margin-bottom: 45px;
}

@media (max-width: 1080px) {
  .retire-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Primary Card Styling */
.retire-card {
  background: rgba(16, 17, 24, 0.95);
  border: 1px solid #282a3c;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.retire-card-header {
  border-bottom: 1px solid #252738;
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.retire-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.retire-card-subtitle {
  font-size: 14px;
  color: #9494ab;
  margin: 0;
  line-height: 1.5;
}

/* Form Groups & Inputs */
.retire-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 650px) {
  .retire-form-row {
    grid-template-columns: 1fr;
  }
}

.retire-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.retire-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #d6d6e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retire-field-hint {
  font-size: 11.5px;
  color: #7f7f98;
  font-weight: 400;
}

.retire-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.retire-input-prefix,
.retire-input-suffix {
  position: absolute;
  font-size: 13.5px;
  font-weight: 600;
  color: #0099E5;
  pointer-events: none;
  z-index: 1;
}

.retire-input-prefix {
  left: 14px;
}

.retire-input-suffix {
  right: 14px;
  color: #8c8ca5;
}

.retire-input {
  width: 100%;
  background: #11121a;
  border: 1.5px solid #2b2d40;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.retire-input:focus {
  border-color: #F68B1F;
  background: #151624;
  box-shadow: 0 0 0 3px rgba(246, 139, 31, 0.15);
}

.retire-input.has-prefix {
  padding-left: 32px;
}

.retire-input.has-suffix {
  padding-right: 58px;
}

.retire-helper-text {
  font-size: 11.5px;
  color: #7a7a92;
  margin-top: 3px;
  line-height: 1.4;
}

/* Quick Selection Presets */
.retire-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.retire-preset-btn {
  background: #181924;
  border: 1px solid #2f3146;
  color: #a7a7c0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.retire-preset-btn:hover {
  background: #252738;
  color: #F68B1F;
  border-color: #F68B1F;
}

/* Sliders */
.retire-slider {
  width: 100%;
  height: 6px;
  accent-color: #F68B1F;
  margin-top: 8px;
  cursor: pointer;
}

/* Sticky Results Sidebar */
.retire-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.retire-hero-card {
  background: linear-gradient(180deg, #171825 0%, #0d0e16 100%);
  border: 1px solid #32354c;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.retire-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F68B1F 0%, #0099E5 50%, #00ffaa 100%);
}

.retire-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #0099E5;
  background: rgba(0, 153, 229, 0.12);
  border: 1px solid rgba(0, 153, 229, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.retire-hero-headline {
  text-align: center;
  padding: 8px 0 20px 0;
  border-bottom: 1px solid #26283b;
}

.retire-hero-number {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.retire-hero-number span.num-highlight {
  background: linear-gradient(135deg, #00ffaa 0%, #0099E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.retire-hero-number.warning span.num-highlight {
  background: linear-gradient(135deg, #F68B1F 0%, #ff5555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.retire-hero-age {
  font-size: 15px;
  font-weight: 600;
  color: #0099E5;
}

.retire-status-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 10px;
}

.status-solvent {
  background: rgba(0, 255, 170, 0.15);
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, 0.3);
}

.status-caution {
  background: rgba(246, 139, 31, 0.15);
  color: #F68B1F;
  border: 1px solid rgba(246, 139, 31, 0.3);
}

.status-danger {
  background: rgba(255, 77, 77, 0.15);
  color: #ff5555;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

/* Key Metrics 2x2 Grid */
.retire-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.retire-stat-card {
  background: #11121b;
  border: 1px solid #25273b;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.retire-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #8f8fa8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.retire-stat-val {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.retire-stat-sub {
  font-size: 10.5px;
  color: #63637e;
  margin-top: 3px;
}

/* Action Buttons */
.retire-btn-primary {
  background: linear-gradient(135deg, #F68B1F 0%, #d87311 100%);
  color: #000000;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(246, 139, 31, 0.3);
}

.retire-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(246, 139, 31, 0.45);
}

.retire-btn-secondary {
  background: #181924;
  color: #cfcfe2;
  border: 1px solid #2d2f44;
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 8px;
}

.retire-btn-secondary:hover {
  background: #232536;
  color: #ffffff;
  border-color: #3f425f;
}

/* Interactive Chart Container */
.retire-chart-container {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 20px 0;
}

/* Stress Test Scenarios Bar */
.retire-stress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.retire-stress-card {
  background: #12131e;
  border: 1px solid #26273c;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.retire-stress-card:hover {
  border-color: #F68B1F;
  background: #171828;
  transform: translateY(-2px);
}

.retire-stress-card.active {
  border-color: #0099E5;
  background: rgba(0, 153, 229, 0.1);
  box-shadow: 0 4px 15px rgba(0, 153, 229, 0.15);
}

.retire-stress-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.retire-stress-desc {
  font-size: 11.5px;
  color: #8c8ca8;
  line-height: 1.4;
  margin: 0;
}

/* Amortization Table */
.retire-table-wrapper {
  max-height: 440px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #27283c;
  border-radius: 12px;
  margin-top: 20px;
}

.retire-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.retire-table th {
  background: #141522;
  color: #a4a4be;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid #282a3e;
  position: sticky;
  top: 0;
  z-index: 2;
}

.retire-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #1f202e;
  color: #ddd;
}

.retire-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Callout Formulas & Key Takeaways */
.retire-callout-box {
  background: linear-gradient(135deg, rgba(2, 120, 168, 0.12) 0%, rgba(246, 139, 31, 0.08) 100%);
  border: 1px solid rgba(0, 153, 229, 0.35);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.retire-callout-icon {
  font-size: 36px;
}

.retire-callout-content {
  flex: 1;
}

.retire-callout-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0099E5;
  font-weight: 700;
  margin-bottom: 6px;
}

.retire-callout-text {
  font-size: 15px;
  color: #e5e5f5;
  line-height: 1.6;
  margin: 0;
}

.retire-callout-text strong {
  color: #F68B1F;
}

/* Educational Feature Cards */
.retire-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.retire-feature-card {
  background: #13141f;
  border: 1px solid #242637;
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.25s, border-color 0.25s;
}

.retire-feature-card:hover {
  transform: translateY(-3px);
  border-color: #3b3d58;
}

.retire-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 8px 0;
}

.retire-feature-card p {
  font-size: 13.5px;
  color: #9393a8;
  line-height: 1.6;
  margin: 0;
}

.retire-feature-icon {
  font-size: 28px;
}

/* Toast Notification */
.retire-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1c1d29;
  border: 1px solid #F68B1F;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.retire-toast.show {
  transform: translateY(0);
  opacity: 1;
}
