/* AXIOM_INVEST_REDIGN_V1 — premium investment form */

#invest.section {
  width: 100%;
  max-width: 940px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px) clamp(14px, 3vw, 28px);
  color: #edf3fc;
}

#invest .section-title {
  margin: 0 0 10px;
  color: #f7f9ff;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-align: center;
}

#invest .section-sub {
  max-width: 580px;
  margin: 0 auto 24px;
  color: #9aaac0;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

#invest .invest-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 20px auto 0;
  padding: clamp(17px, 3.2vw, 29px);
  color: #eaf0fa;
  background:
    radial-gradient(ellipse at 95% 0%, rgba(50, 93, 151, .13), transparent 38%),
    linear-gradient(145deg, #111d30 0%, #0c1524 60%, #101b2b 100%);
  border: 1px solid rgba(135, 160, 194, .20);
  border-radius: 23px;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .035);
}

#invest .invest-trust {
  margin-bottom: 21px;
  padding: 13px 15px;
  color: #b9c8db;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(157, 178, 206, .12);
  border-radius: 13px;
}

#invest .invest-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  margin: 18px 0;
}

#invest .invest-row label,
#invest label[for="investAmount"] {
  display: block;
  margin: 0;
  color: #b5c3d7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .015em;
}

#invest input[type="text"],
#invest input[type="password"],
#invest input[type="number"],
#invest select,
#invest #investAsset,
#invest #investDuration,
#invest #investAmount {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  color: #edf4ff;
  background-color: #172337;
  border: 1px solid #2a3b55;
  border-radius: 11px;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .10);
  transition: border-color .18s ease, box-shadow .18s ease,
              background-color .18s ease;
}

#invest input::placeholder {
  color: #75869d;
}

#invest input:focus,
#invest select:focus {
  background-color: #192941;
  border-color: #579dff;
  box-shadow: 0 0 0 3px rgba(65, 145, 255, .14);
}

#invest select {
  cursor: pointer;
}

#invest .amount-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 10px 0 13px;
}

#invest .amount-presets .amount-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  color: #d7e1ef;
  background: #172337;
  border: 1px solid #2a3b55;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease,
              background .16s ease, color .16s ease;
}

#invest .amount-presets .amount-preset:hover {
  color: #fff;
  background: #20324b;
  border-color: #557ba8;
  transform: translateY(-1px);
}

#invest .amount-presets .amount-preset-limit {
  color: #e6c681;
  border-color: rgba(210, 170, 94, .30);
  text-transform: none !important;
}

/* Asset selection: retain the existing asset buttons and click behavior. */
#invest :is(
  .asset-grid,
  .crypto-grid,
  .coin-grid,
  .asset-options,
  .crypto-assets,
  .crypto-assets-grid,
  .asset-selector-grid,
  [class*="asset-grid"],
  [class*="crypto-grid"],
  [class*="coin-grid"]
) {
  gap: 10px !important;
}

#invest :is(
  .asset-grid,
  .crypto-grid,
  .coin-grid,
  .asset-options,
  .crypto-assets,
  .crypto-assets-grid,
  .asset-selector-grid,
  [class*="asset-grid"],
  [class*="crypto-grid"],
  [class*="coin-grid"]
) button,
#invest button[class*="asset"],
#invest button[class*="coin"],
#invest button[class*="crypto"] {
  box-sizing: border-box;
  min-width: 0;
  min-height: 75px;
  padding: 10px 6px;
  color: #dbe6f5;
  background: linear-gradient(145deg, #1a2940, #152237);
  border: 1px solid #2a3c56;
  border-radius: 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  transition: transform .18s ease, border-color .18s ease,
              background .18s ease, box-shadow .18s ease;
}

#invest :is(
  .asset-grid,
  .crypto-grid,
  .coin-grid,
  .asset-options,
  .crypto-assets,
  .crypto-assets-grid,
  .asset-selector-grid,
  [class*="asset-grid"],
  [class*="crypto-grid"],
  [class*="coin-grid"]
) button:hover,
#invest button[class*="asset"]:hover,
#invest button[class*="coin"]:hover,
#invest button[class*="crypto"]:hover {
  background: linear-gradient(145deg, #213653, #192b43);
  border-color: #6287b7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

#invest :is(
  .asset-grid,
  .crypto-grid,
  .coin-grid,
  .asset-options,
  .crypto-assets,
  .crypto-assets-grid,
  .asset-selector-grid,
  [class*="asset-grid"],
  [class*="crypto-grid"],
  [class*="coin-grid"]
) button:is(.active, .selected, [aria-pressed="true"], [aria-selected="true"]),
#invest button[class*="asset"].active,
#invest button[class*="coin"].active,
#invest button[class*="crypto"].active {
  background: linear-gradient(145deg, rgba(16, 185, 129, .18), #142a2b);
  border: 1px solid #13d58a;
  box-shadow:
    0 0 0 1px rgba(19, 213, 138, .12),
    0 0 20px rgba(19, 213, 138, .07);
}

#invest .invest-warning {
  color: #ffb3b3;
  font-size: 12px;
  line-height: 1.5;
}

#invest .invest-status {
  margin-top: 12px;
  color: #a8bad1;
  font-size: 13px;
  line-height: 1.55;
}

/* Strong, centered crypto CTA with typography matching a primary payment button. */
#invest .invest-container .invest-btn {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 61px;
  margin-top: 16px;
  padding: 16px 20px;
  overflow: hidden;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(110deg, #16b86a 0%, #079764 50%, #087e60 100%) !important;
  background-size: 180% 100% !important;
  border: 1px solid rgba(114, 255, 190, .35) !important;
  border-radius: 14px !important;
  box-shadow:
    0 9px 26px rgba(0, 185, 115, .18),
    inset 0 1px 0 rgba(255, 255, 255, .17);
  font-family: inherit !important;
  font-size: clamp(18px, 2.7vw, 22px) !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -.015em;
  text-align: center !important;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

#invest .invest-container .invest-btn:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px rgba(0, 185, 115, .26),
    inset 0 1px 0 rgba(255, 255, 255, .20);
}

#invest .invest-container .invest-btn:active {
  transform: translateY(0);
}

#invest .invest-container .invest-btn:focus-visible {
  outline: 3px solid rgba(95, 180, 255, .9);
  outline-offset: 4px;
}

#invest button[class*="credit-card"],
#invest a[class*="credit-card"],
#invest button[id*="creditCard"] {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
}

@media (max-width: 600px) {
  #invest .invest-container {
    border-radius: 18px;
    padding: 17px;
  }

  #invest .amount-presets {
    gap: 7px;
  }

  #invest .amount-presets .amount-preset {
    min-height: 39px;
    padding: 9px 10px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  #invest .invest-container {
    padding: 13px;
  }

  #invest .amount-presets .amount-preset {
    flex: 1 1 calc(50% - 8px);
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  #invest *,
  #invest *::before,
  #invest *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
