/* Market Buttons (Green Theme) */
.market-butn {
  cursor: pointer;
  padding: 8px 14px;
  border: 2px solid #4CAF50;
  background: transparent;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: #28a745;
  transition: all 0.25s ease-in-out;
  margin: 0 6px 6px 0;
}
.market-butn:hover {
  background: rgba(40, 167, 69, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.25);
}
.market-butn.active {
  background: #28a745;
  color: #fff;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
/* Search wrapper keeps input & results aligned */
.search-wrap {
  position: relative;
  margin-top: 10px;
  max-width: 360px;
}
/* Search box */
#stockSearch {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #d6d6d6;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}
#stockSearch:focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.12);
}
/* Search results dropdown */
#searchResults {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  z-index: 999;
  display: none;
  max-height: 280px;
  overflow-y: auto;
}
.search-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.15s;
  line-height: 1.2;
}
.search-item:last-child { border-bottom: 0; }
.search-item:hover { background-color: #f7faff; }
.search-item .meta {
  font-size: 12px;   /* medium font for segment + exchange */
  color: #667085;
  margin-left: 6px;
  font-weight: bold;
}
.search-item .company {
  font-size: 11px;   /* smaller font for company name */
  color: #888;
  margin-top: 2px;
}
.empty-state {
  padding: 12px;
  color: #7a7a7a;
  text-align: center;
  font-size: 13px;
}

/* Toggle Buttons (Blue Theme) */
/* Button group wrapper: keep them inline with spacing */
.option-groups {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 10px;
}

/* Base style for all toggle buttons */
.toggle-btn {
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
  border: 2px solid transparent;
  min-width: 90px;
  text-align: center;
}

/* Trade Type Buttons (Blue Theme) */
#tradeTypeGroup .toggle-btn {
  border-color: #AFD275;
  color: #AFD275;
  background: transparent;
}
#tradeTypeGroup .toggle-btn.active {
  background: #AFD275;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,123,255,0.25);
}

/* Exchange Buttons (Green Theme) */
#exchangeGroup .toggle-btn {
  border-color: #7091E6;
  color: #7091E6;
  background: transparent;
}
#exchangeGroup .toggle-btn.active {
  background: #7091E6;
  color: #fff;
  box-shadow: 0 3px 8px rgba(40,167,69,0.25);
}

/* Disabled state (common) */
.toggle-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: #f1f1f1 !important;
  color: #999 !important;
  border-color: #ccc !important;
  box-shadow: none !important;
}

.brokerage-plans {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-btn {
  flex: 1;
  min-width: 100px;
  max-width: 200px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  background: #fff;
}

.plan-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.plan-btn.active {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.plan-btn.discount {
  border-color: #B6E2D3;
}
.plan-btn.discount.active {
  
  background-color: #B6E2D3;
  color: black;
}

.plan-btn.traditional {
  border-color: #4297A0;
}
.plan-btn.traditional.active {
  
  background-color: #4297A0;
  color: #fff;
}

.plan-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.plan-charge {
  font-size: 13px;
  color: inherit;
  opacity: 0.85;
}

 .TxtField {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
  color: #041670;
  
  text-align: center;
  background-color: #fff;
  background-clip: padding-box;
  border: none;
  border-bottom: 1px solid #0080FF;
}
#ChargeBreakup {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.9s ease, opacity 0.9s ease;
}
#ChargeBreakup.show {
  max-height: 1000px; /* enough for content */
  opacity: 1;
}
#toggleBreakupText
{
    color: white;
    font-size: 14px;
    position: relative;
    top: -1px;
}