body {
  /* background-color: black; */
}

.header--wrapper {
  background-color: black;
}
.container--calc {
  max-width: 1300px;
  margin: 20px auto 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.header {
  background-color: black;
  padding: 30px;
  text-align: center;
  color: white;
}

.header h1 {
  font-size: 40px !important;
  margin-bottom: 10px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.tab-container {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  overflow-x: auto;
  padding-left: 0 !important;
}

.tab {
  flex: 1;
  padding: 15px 20px !important;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  left: 0px !important;
  font-weight: 500;
  color: #535353;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tab.active {
  color:  #ff5d0a;
  border-bottom-color:  #ff5d0a;
  background: white;
}

.tab:hover {
  background: #e9ecef;
}

.calculator-content {
  display: flex;
  /* min-height: 600px; */
}

.input-section {
  flex: 1;
  padding: 30px;
  background: #f8f9fa;
}

.results-section {
  flex: 1;
  padding: 10px 20px;
  background: white;
  border-left: 1px solid #dee2e6;
}


.input-group {
  margin-bottom: 8px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px !important;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: white;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color:  #ff5d0a;
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.results-header {
  text-align: center;
}

.goal-icon {
  width: 60px;
  height: 60px;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.goal-title {
  font-size: 22px;
  color:  #ff5d0a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.target-amount {
  color:  #ff5d0a;
  font-size: 19.2px;
  font-weight: 800;
}

.investment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 4px 0;
}

.investment-option {
  text-align: center;
  padding: 10px 10px;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.investment-option:hover {
  border-color: #ff6a00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #ff6a0055;
}

.investment-option.selected {
  border-color:  #ff5d0a;
  background: #ff6a006a;
}

.investment-option .period {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.investment-option .amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

.shortfall {
  background: #ffebee;
  border: 2px solid  #ff5d0a;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.shortfall-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color:  #ff5d0a;
}

.surplus {
  background: #e8f5e8;
  border: 2px solid  #ff5d0a;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.surplus-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color:  #ff5d0a;
}

.calculation-breakdown {
  margin-top: 30px;
  padding: 10px 10px 0 10px;
  background: #f8f9fa;
  border-radius: 15px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 0;
}

.breakdown-item:last-child {
  border-top: 2px solid #dee2e6;
  padding-top: 10px;
  margin-bottom: 10px;
  font-weight: 700;
}

.currency {
  font-weight: 600;
  color:  #ff5d0a;
}

@media (max-width: 1260px) {
  .container--calc {
    margin: 0 1rem !important;
  }
}

@media (max-width: 768px) {
  .container--calc {
    margin: 0 4rem !important;
  }
  .calculator-content {
    flex-direction: column;
  }
  .tab-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .results-section {
    border-left: none;
    border-top: 1px solid #dee2e6;
  }

  .header h1 {
    font-size: 2rem;
  }

  .investment-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container--calc {
    margin: 0 1.4rem !important;
  }
}

@media (max-width: 432px) {
  .container--calc {
    margin: 0 0.7rem !important;
  }
  .tab-container {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .header h1 {
    font-size:30px !important;
  }
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.animate-number {
  transition: all 0.3s ease;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
