/* static/css/components/investment-flow.css */
.investment-flow {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.investment-flow__header {
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.investment-flow__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

/* Investment Details Container - Exact Specs */
.investment-details {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.investment-details__container {
  display: flex;
  width: 960px;
  height: 755px;
  max-width: 960px;
  padding: 20px 0px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* Header Section - Exact Specs */
.investment-details__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.investment-details__title {
  color: #FFF;
  font-feature-settings: 'dlig' on;
  font-family: Inter;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 125% */
  margin: 0;
}

/* Form Fields */
.investment-details__field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.investment-details__label {
  color: #FFF;
  font-feature-settings: 'dlig' on;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
}

/* Amount Input with Currency Picker */
.investment-details__amount-wrapper {
  display: flex;
  align-self: stretch;
  position: relative;
}

.currency-picker {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.currency-picker__text {
  color: #EB1260;
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.6px;
  pointer-events: none;
}

.currency-picker__select {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.currency-picker__arrow {
  width: 12px;
  height: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.investment-details__input {
  display: flex;
  height: 56px;
  padding: 16px 16px 16px 60px; /* Left padding for currency */
  align-items: center;
  align-self: stretch;
  border-radius: 12px;
  background: #FFF;
  border: none;
  outline: none;
  
  color: #000;
  font-feature-settings: 'dlig' on;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 150% */
}

.investment-details__input::placeholder {
  color: #000;
  font-weight: 700;
}

/* Duration Input */
.investment-details__duration-wrapper {
  position: relative;
  align-self: stretch;
}

.investment-details__duration-input {
  display: flex;
  height: 56px;
  padding: 16px;
  align-items: center;
  align-self: stretch;
  border-radius: 12px;
  background: #FFF;
  border: none;
  outline: none;
  
  color: #000;
  font-feature-settings: 'dlig' on;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 150% */
  cursor: pointer;
}

.duration-selector {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  height: 30.27px;
  padding: 6.811px 10.595px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 11.351px;
  border-radius: 18.162px;
  border: 0.757px solid #EB1260;
  background: white;
  pointer-events: none;
}

/* Investment Summary */
.investment-summary {
  align-self: stretch;
  margin-top: 20px;
}

.investment-summary__title {
  color: #FFF;
  font-feature-settings: 'dlig' on;
  font-family: Inter;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 127.273% */
  margin: 0 0 20px 0;
}

.investment-summary__item {
  display: flex;
  padding: 20px 0px;
  align-items: flex-start;
  flex: 1 0 0;
  border-top: 1px solid #E5E8EB;
  justify-content: space-between;
  align-items: center;
}

.investment-summary__label,
.investment-summary__value {
  color: #FFF;
  font-feature-settings: 'dlig' on;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px; /* 150% */
}

/* Status Section - Exact Specs */
.investment-status {
  display: flex;
  width: 860px;
  height: 72px;
  min-height: 72px;
  padding: 8px 16px;
  align-items: center;
  gap: 59px;
  background: #040825;
}

.investment-status__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.investment-status__icon {
  display: flex;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #040825;
  background: #090A2B;
}

.investment-status__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.investment-status__title {
  color: #FFF;
  font-feature-settings: 'dlig' on;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
}

.investment-status__status {
  color: #EB1260;
  font-feature-settings: 'dlig' on;
  font-family: Manrope;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px; /* 150% */
  align-self: stretch;
}

/* Submit Button - Exact Specs */
.investment-details__submit {
  display: flex;
  height: 40px;
  min-width: 84px;
  max-width: 480px;
  padding: 0px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #EB1260;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  
  overflow: hidden;
  color: #FFF;
  text-align: center;
  font-feature-settings: 'dlig' on;
  text-overflow: ellipsis;
  font-family: Manrope;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 21px; /* 150% */
  white-space: nowrap;
}

.investment-details__submit:hover {
  background: #C10E52;
  transform: translateY(-1px);
}

.investment-details__submit:active {
  transform: translateY(0);
}

/* Duration Picker */
.investment-details__duration-wrapper {
  position: relative;
  align-self: stretch;
}

.duration-picker {
  position: relative;
  width: 100%;
}

.investment-details__duration-input {
  display: flex;
  height: clamp(3rem, 6vw, 56px);
  padding: clamp(0.75rem, 3vw, 16px);
  padding-right: clamp(3rem, 6vw, 60px); /* Space for buttons */
  align-items: center;
  align-self: stretch;
  border-radius: clamp(0.5rem, 2vw, 12px);
  background: #FFF;
  border: none;
  color: #000;
  font-feature-settings: 'dlig' on;
  font-family: Inter, var(--font-family);
  font-size: clamp(0.875rem, 3vw, 16px);
  font-weight: 700;
  line-height: 1.5;
  width: 100%;
  cursor: pointer;
}

.duration-selector {
  position: absolute;
  right: clamp(0.75rem, 3vw, 16px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: clamp(0.125rem, 0.5vw, 2px);
  align-items: center;
  justify-content: center;
}

.duration-btn {
  display: flex;
  width: clamp(1.5rem, 3vw, 24px);
  height: clamp(0.75rem, 2vw, 12px);
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.duration-btn:hover {
  transform: scale(1.1);
}

.duration-btn:hover svg path {
  stroke: #C10E52;
}

.duration-btn svg {
  width: clamp(0.75rem, 2vw, 12px);
  height: clamp(0.4375rem, 1.5vw, 7px);
}

/* Duration Dropdown */
.duration-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFF;
  border: 1px solid #E5E8EB;
  border-radius: clamp(0.5rem, 2vw, 12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-height: clamp(12rem, 25vh, 200px);
  overflow-y: auto;
  margin-top: clamp(0.25rem, 1vw, 4px);
  display: none;
}

.duration-dropdown.show {
  display: block;
}

.duration-option {
  padding: clamp(0.5rem, 2vw, 12px) clamp(0.75rem, 3vw, 16px);
  cursor: pointer;
  font-family: Inter, var(--font-family);
  font-size: clamp(0.875rem, 3vw, 16px);
  font-weight: 400;
  color: #000;
  border-bottom: 1px solid #F5F5F5;
  transition: background-color var(--transition-base);
}

.duration-option:last-child {
  border-bottom: none;
}

.duration-option:hover {
  background-color: #F8F9FA;
}

.duration-option.selected {
  background-color: #EB1260;
  color: #FFF;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .duration-selector {
      right: clamp(0.5rem, 2vw, 12px);
  }
  
  .investment-details__duration-input {
      padding-right: clamp(2.5rem, 5vw, 48px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .investment-details__container {
      width: 100%;
      max-width: 100%;
      height: auto;
      min-height: 755px;
      padding: 20px;
  }
  
  .investment-status {
      width: 100%;
      max-width: 860px;
  }
}

@media (max-width: 768px) {
  .investment-details__title {
      font-size: clamp(24px, 5vw, 32px);
      line-height: clamp(30px, 6vw, 40px);
  }
  
  .investment-details__label {
      font-size: clamp(14px, 3vw, 16px);
      line-height: clamp(20px, 4vw, 24px);
  }
  
  .investment-details__input,
  .investment-details__duration-input {
      height: clamp(48px, 8vw, 56px);
      font-size: clamp(14px, 3vw, 16px);
      padding: clamp(12px, 3vw, 16px);
  }
  
  .investment-details__input {
      padding-left: clamp(50px, 12vw, 60px);
  }
  
  .investment-summary__title {
      font-size: clamp(18px, 4vw, 22px);
      line-height: clamp(24px, 5vw, 28px);
  }
  
  .investment-status {
      flex-direction: column;
      height: auto;
      gap: 20px;
      padding: 16px;
  }
  
  .investment-status__item {
      width: 100%;
      justify-content: flex-start;
  }
  
  .investment-details__submit {
      width: 100%;
      height: clamp(40px, 8vw, 48px);
      font-size: clamp(12px, 3vw, 14px);
  }
}

@media (max-width: 480px) {
  .investment-details__container {
      gap: 20px;
      padding: 16px;
  }
  
  .currency-picker {
      left: 12px;
  }
  
  .investment-details__input {
      padding-left: clamp(45px, 15vw, 55px);
  }
  
  .investment-summary__item {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
  }
}

/* Dark Theme Adjustments */
[data-theme="light"] .investment-details__title,
[data-theme="light"] .investment-details__label,
[data-theme="light"] .investment-summary__title,
[data-theme="light"] .investment-summary__label,
[data-theme="light"] .investment-summary__value,
[data-theme="light"] .investment-status__title {
  color: #1a202c;
}

[data-theme="light"] .investment-status {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .investment-status__icon {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .investment-summary__item {
  border-color: #e2e8f0;
}