/* Basic tab styling */
.tabs {
  display: flex;
  margin-bottom: 30px;
}
.tabButton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 10px;
  cursor: pointer;
  font-size: 20px;
  color: #7b8b7b;
  position: relative;
  margin-right: 10px;
  transition: all 0.3s ease-in-out;
  background: #ffffff;
  box-shadow: 0px 0px 3px #ccc;
  border-radius: 10px;
}
.tabButton img {
  margin-bottom: 4px;
  max-width: 60px;
}
.active {
  color: #7ba2e1;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}
.tabButton .activeLogo {
  display: none;
}
.tabButton.active .activeLogo {
  display: block;
}
.logoText {
  font-size: 18px;
}

.activeLogo img {
  max-width: 20px;
  margin-bottom: -4px;
}
.calculatorSummary {
  width: 100%;
}
h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #1a2e1a;
}
.steps {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  font-size: 1rem;
}
.step {
  display: flex;
  align-items: center;
  margin-right: 18px;
  color: #7b8b7b;
}
.step.active .stepNum {
  background: #7ba2e1;
  color: #fff;
}
.step.active .stepLabel {
  color: #1a2e1a;
}
.step .stepNum {
  width: 40px;
  height: 40px;
  background: #e6eaf3;
  color: #7ba2e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-right: 8px;
  font-size: 1.1rem;
  border-radius: 10px;
}
.stepLabel {
  font-weight: 500;
}
.step:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  background: #e6eaf3;
  margin-left: 12px;
  vertical-align: middle;
}
.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.formGroup {
  display: flex;
  flex-direction: column;
}
.formGroup label {
  font-size: 1rem;
  margin-bottom: 0px;
  color: #555;
}
.formGroup input,
.formGroup select {
  width: 100%;
  min-width: 0; 
  box-sizing: border-box;

  padding: 14px 16px 14px 10px;
  border: 1px solid #e6eaf3;
  border-radius: 8px;
  font-size: 15px;
  color: #1a2e1a;
  background: #fff;
  /* min-width: 48%; */
}
.formGroup input::placeholder {
  color: #aeb4c0;
}
.formGroup input:focus,
.formGroup select:focus {
  outline: none;
  border-color: #7ba2e1;
}

/* Submit button */
.calculateBtn {
  margin-top: 20px;
  padding: 16px 40px;
  background: #7ba2e1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

#resetBtn:disabled {
  background-color: #dfe5f5;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

#resetBtn:disabled:hover {
  background-color: #bbbbbb;
  color: #444;
}

.premiumCard {
  flex: 1;
  background: #e6eaf3;
  border-radius: 10px;
  padding: 20px;
  color: #1a2e1a;
  margin-bottom: 20px;
}

.premiumCard h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 20px 0;
  text-align: center;
}
.premiumValue {
  text-align: center;
  margin-bottom: 20px;
}
.premiumValue .rupee-symbol {
  font-size: 2.5rem;
  font-weight: 500;
}
.premiumValue .amount {
  font-size: 3rem;
  font-weight: 600;
}
.premiumProductName {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 30px;
}

.premiumbox {
  padding: 20px;
  background: #fff;
  margin-bottom: 30px;
  border-radius: 10px;
}

.detailItem {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

.detailImage img {
  width: 50px;
  background: #fff;
  padding: 5px;
  border-radius: 5px;
}
.detailItem .icon {
  font-size: 1.5rem;
  color: #7ba2e1;
}

.detailLabel {
  font-weight: 500;
  color: #555;
  font-size: 14px;
  line-height: normal;
}

.calculatorFlex {
  display: grid;
  gap: 20px;
}

.detailValue {
  margin: 5px 0px 5px 0px;
  font-size: 15px;
  line-height: normal;
  font-weight: 500;
}

.premiumDetailsGrid {
  display: grid;
  gap: 20px;
}

.kshemaproduct-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cropdurationcontainer {
  max-width: 100%;
  padding: 10px 20px 25px 20px;
  border-radius: 5px;
  border: 1px solid #e6eaf3;
}
.cropdurationcontainer p {
  text-align: center;
}

.durationslider:hover {
  opacity: 1;
}
.calculator-submit .form-group {
  display: flex;
  justify-content: end;
  margin-top: 20px;
}
.calculator-submit input {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px !important;
  font-size: 20px;
  cursor: pointer;
}
.calculator-submit input:hover {
  opacity: 0.7;
}
.logoImg {
  display: grid;
  background: #e8ecf6;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
}

.calculator-loader.modal-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

.calculator-loader .loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}
#premium-output {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 30px;
  min-height: 120px;
}

.premium-values {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

.priceDisplay {
  font-size: 30px;
  line-height: normal;
  font-weight: 500;
  margin: 10px 0px;
}

.premium-values.ValueBox {
  padding: 0;
  background: none;
}

.detailItem:nth-child(1),
.detailItem:nth-child(2),
.detailItem:nth-child(6) {
  grid-column: 1/3;
}

div#noteSection {
  font-size: 14px;
  line-height: 20px;
}

.calculateBtn:hover,
.calculateBtn:active,
.calculateBtn:focus {
  background: #000 !important;
}

.cropdurationcontainer #minDurationLabel,
.cropdurationcontainer #minSumLabel {
  border: 1px solid #e6eaf3;
  border-bottom: 0;
  border-radius: 5px 5px 0px 0px;
  padding: 10px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.cropdurationcontainer #maxDurationLabel,
.cropdurationcontainer #maxSumLabel {
  border: 1px solid #e6eaf3;
  border-top: 0;
  border-radius: 0px 0px 5px 5px;
  font-size: 13px;
  padding: 10px;
  font-weight: 600;
}

.cropdurationcontainer input {
  width: 100% !important;
  border-radius: 0px;
  border-left: 1px solid #e6eaf3;
  border-right: 1px solid #e6eaf3;
}
.tabContent {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
}
#bckGrnd {
  background-color: #e6eaf3;
  margin: 5px 5px;
}

select {
  border-right: 10px solid #ffffff !important;
  outline: 1px solid #e6eaf3 !important;
  appearance: auto;
}

@media (min-width: 1280px) {
  .calculatorFlex {
    grid-template-columns: 60% 38%;
  }

  .premiumDetailsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}
@media (max-width: 1279px) {
  .calculatorFlex {
    flex-direction: column;
  }
  .formGrid {
    display: -ms-inline-grid;
  }

}

@media (max-width: 786px) {
  .formGrid {
    grid-template-columns: 1fr;
    display: contents;
  }
  .premiumDetailsGrid {
    display: block;
    gap: 20px;
  }
  .button-container {
    flex-direction: column;
    align-items: stretch;
  }
  .calculateBtn,
  #resetBtn {
    width: 100%;
    margin-top: 10px;
  }

  .logoText {
    font-size: 0; 
  }
  .logoText::after {
    content: "☰"; 
    font-size: 18px;
  }
  .form-control{
    margin: 8px 0;
  }
}

@media (max-width: 480px) {
  .formGrid {
    grid-template-columns: 1fr;
    display: contents;
  }
  h1 {
    font-size: 1.5rem;
  }
  .formGroup label {
    font-size: 0.9rem;
  }
  .formGroup input,
  .formGroup select {
    font-size: 14px;
    padding: 12px;
  }
  .calculateBtn,
  #resetBtn {
    font-size: 1rem;
    padding: 14px;
  }
  .tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .tabButton {
    width: 100%;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    box-sizing: border-box;
  }

  .tabButton .logoImg img {
    max-width: 40px;
    height: auto;
  }

  .logoText {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logoText::before { 
    font-size: 18px;
  }

  .tabButton .activeLogo img {
    max-width: 18px;
  }
}

.button-container {
  display: inline-flex;
  justify-content: space-between;
  width: 100%;
}

.button-container {
  display: inline-flex;
  justify-content: space-between;
  grid-column: 1/3;
}