/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Poppins";
  /* src: url("assets/Fonts/Poppins-Regular.ttf") format("truetype"); */
  src: url("../utils/assets/Fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Poppins-SemiBold";
  src: url("../utils/assets/Fonts/Poppins-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins-Bold";
  src: url("../utils/assets/Fonts/Poppins-Bold.ttf") format("truetype");
}

body {
  background-color: #f3f4f6;
  height: 100%;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: auto;
  text-align: center;
}

.container {
  background-color: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  background: linear-gradient(to right, #1e4275, #01d9e4);
  text-align: center;
  color: #fff;
  position: relative;
  height: 12em;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.header-top {
  background-color: white;
  display: flex;
  align-items: center;
  height: 5em;
  padding: 0 20px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  justify-content: start;
}

.header-top img {
  height: 100%;
  max-height: 4em;
  width: auto;
}

.header-top .bajaj-logo {
  height: 50%;
  max-height: 4em;
  width: 70%;
  margin-left: 50px;
}

.header-bottom {
  height: 7em;
  display: flex;
  align-items: start;
  justify-content: flex-start;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(to right, #1e4275, #01d9e4);
  font-family: "Poppins-SemiBold", sans-serif;
  text-align: left;
}

.header-bottom .title {
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.content {
  font-family: "Poppins", Arial, sans-serif;
  flex-grow: 1;
}

.userInput {
  border-radius: 10px;
  padding: 10px;
  max-width: 70%;
  margin: 20px auto 0;
}

.userInput .form-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
}

.userInput .form-group input:focus {
  outline: none;
  border: 1px solid #d1d5db;
}

.userInput .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #034796;
  font-size: 14px;
  width: 45%;
  font-family: "Poppins-Bold", Arial, sans-serif;
  font-size: 12px;
}

.userInput .form-group input {
  width: 50%;
  padding: 5px 16px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background-color: #f3f4f6;
  font-size: 12px;
  font-family: "Poppins", sans-serif;
  color: #034796;
}

.btn {
  width: 30%;
  padding: 10px;
  background-color: #add8e6;
  color: #003366;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin: 0 auto 20px;
  text-align: center;
  display: block;
  transition: background-color 0.3s ease;
  font-family: "Poppins-Bold", Arial, sans-serif;
}

.btn:hover {
  background-color: #044696;
  color: #ffffff;
}

.loan-amount-outer {
  background-color: #c0dcfc;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.loan-amount-div {
  background-color: white;
  padding-bottom: 10px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.loan-amount {
  margin-top: 10px;
  padding: 10px;
  background-color: #5dbc46;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
  width: 80%;
  margin: 10px auto 0;
  padding: 2px 2px;
}

.loan-amount .loan-amount-title {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 5px;
  font-family: "Poppins-Bold", Arial, sans-serif;
}

.loan-amount-value {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

.loan-amount p {
  font-size: 27px;
  font-weight: bold;
  color: #ffffff;
}

.output {
  margin-top: 20px;
  padding: 20px;
  background-color: #f0fff4;
  border-radius: 5px;
}

.options-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  flex-direction: column;
}

.options-container {
  width: 80%;
  justify-content: center;
  box-sizing: border-box;
}

.option-heading {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: #e51a4c;
  margin-bottom: 10px;
  font-family: "Poppins-Bold", Arial, sans-serif;
}

.option-content {
  background-color: #e0ecfc;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 300px;
}

.option-content h3 {
  font-size: 18px;
  font-weight: bold;
  color: #174063;
  margin-bottom: 10px;
  font-family: "Poppins-Bold", Arial, sans-serif;
  text-decoration: underline;
  text-align: center;
}

.option-content p {
  font-size: 14px;
  margin: 5px 0;
  color: #034796;
  text-align: center;
  word-wrap: break-word;
  align-items: center;
  align-content: center;
}

.chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.tree li {
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 20px 5px 0 5px;
  display: inline-block;
  vertical-align: top;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  width: 100%;
  color: #034796;
}

/* Draw connectors */
.tree li::before,
.tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1.5px solid #034796;
  width: 50%;
  height: 20px;
}
.tree li::after {
  right: auto;
  left: 50%;
  border-left: 1.5px solid #034796;
}

/* Remove connectors for single child */
.tree li:only-child::after,
.tree li:only-child::before {
  display: none;
}

/* Adjust padding for single child */
.tree li:only-child {
  padding-top: 0;
}

/* Remove side connectors for first and last child */
.tree li:first-child::before,
.tree li:last-child::after {
  border: 0 none;
}
.tree li:last-child::before {
  border-right: 1.5px solid #034796;
  border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
}
.tree li:first-child::after {
  border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
}

/* Downward connectors */
/* .tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1.5px solid #034796;
  width: 0;
  height: 20px;
} */

.tree li span {
  /* border: 1px solid #ccc; */

  text-align: center;
  font-size: 16px;
  display: inline-block;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  word-wrap: break-word; /* Allow text to wrap */
  max-width: 100px; /* Ensure max width */
}

/* Adjustments for text classes */
.bold-text {
  font-weight: bold;
}

.regular-text {
  font-weight: normal;
}

.outlined {
  border: 1px solid #ccc;
  padding: 2px;
  display: inline-block;
  border-radius: 5px;
  width: 100%;
  background-color: #fff;
}

/* Handle child elements */
.tree ul ul {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.tree ul ul li {
  width: auto;
  padding: 0 10px;
}

.tree ul ul li::before,
.tree ul ul li::after {
  top: -20px;
}

.tree ul ul li:first-child::before {
  border-top: none;
}

.tree ul ul li:last-child::after {
  border-top: none;
}

.emi-value {
  width: 70px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.EMI-heading {
  font-family: "Poppins-Bold", Arial, sans-serif;
}

.EMI-sub-heading {
  font-family: "Poppins", Arial, sans-serif;
}

.overdraft-content {
  overflow: hidden;
}

.overdraft-content .bold-text {
  font-size: 18px;
  margin-top: 10px;
}

.overdraft-content p {
  font-size: 16px;
  margin: 10px 0;
}

.overdraft-content .outlined {
  margin-top: 15px;
  font-size: 18px;
}

.outlined {
  /* border: solid 0.1em #666; */
  border-radius: 0.2em;
  display: inline-block;
  margin: 0 0.2em 0.2em;
  padding: 0.2em 0.2em;
  position: relative;
  color: #034796;
  background-color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  word-wrap: break-word; /* Allow text to wrap */
  max-width: 100px;
}

.loan-amount-outer .disclaimer {
  width: 90%;
  margin: 10px auto;
  background-color: #c0dcfc;
  font-size: 10px;
  color: #024696;
  padding: 10px;
  border-radius: 5px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  align-items: center;
  justify-content: center;
  display: flex;
  max-width: 500px;
  text-align: center;
}

.loan-amount-outer .disclaimer .diclaimer-content {
  padding-bottom: 10px;
}

.info-section {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #ffffff;
  max-width: 650px;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

.info-section h2,
.info-section h3,
.info-section h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  
}

.info-section h2 {
  font-size: 1.4rem;
  text-align: left;
  color: #034796;
}

.info-section h3 {
  font-size: 1.3rem;
}

.info-section h4 {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
}

.info-section p {
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.5;
  font-size: 10px;
}

.info-section ul,
.info-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-section ul li,
.info-section ol li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 10px;
}


.footer {
  text-align: center;
  color: #4a5568;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  width: 90%;
  margin: 0 auto 10px;
}

.footer-content {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  color: #034796;
  font-size: 10px;
}

.regular-text {
  font-family: "Poppins", Arial, sans-serif;
}

.bold-text {
  font-family: "Poppins-Bold", Arial, sans-serif;
}

.hidden {
  display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
  .title {
    font-size: 20px;
  }

  .header-top .bajaj-logo {
    height: 100%;
    max-height: 2em;
    width: 80%;
    margin-left: 10px;
  }

  .btn {
    font-size: 14px;
  }

  .loan-amount-title,
  .loan-amount-value {
    font-size: 16px;
  }

  .benefit h3 {
    font-size: 16px;
  }

  .option h4,
  .option h5 {
    font-size: 14px;
  }

  .option .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .option .form-group label,
  .option .form-group input {
    width: 100%;
  }

  .userInput .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .userInput .form-group label,
  .userInput .form-group input {
    width: 100%;
  }

  .options-container {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .option-content {
    width: 100%;
    padding: 10px;
    overflow: hidden;
  }

  .overdraft-content {
    overflow: hidden;
  }
  /* .chart .tree ul ul::before {
    left: 108.5px;
  } */
}
