.steps-tab-content,
.tab-handle {
  font-family: 'Poppins', sans-serif;
}

.steps-tab-content {
  font-size: 18px;
  font-weight: 600;
  color: #1d2c4d;
}

.steps-tab-content p,
.steps-tab-content li {
  font-size: 15px;
  color: #444;
}

.steps-tab-container {
  position: relative;
  width: 100%;
  min-height: 550px;
  margin: 0 auto;
}

/* Tabs */
.homepage-tab{
  position: absolute;
  top: 30px;
  width: 700px;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
  cursor: pointer;
}

#steps-tab1 { left:   0;    z-index: 1;}
#steps-tab2 { left: 280px;  z-index: 2; }
#steps-tab3 { left: 760px;  z-index: 3; }

@media (max-width: 1440px) {
  .steps-tab-container .homepage-tab {
    width: 500px !important;
  }
    #steps-tab1 {
    left: 50px;
  }

  #steps-tab2 {
    left: 280px;
  }
  #steps-tab3 {
    left: 660px !important;
  }
  #steps-tab3.front {
	left: 660px !important;
  }
}

.front {
  z-index: 4;
  transform: scale(0.90);
  background-color: #f3f5fd;
}

.homepage-tab:not(.front) {
  transform: scale(0.85);
}

/* Tab handle */
.tab-handle {
  position: absolute;
  top: -30px;
  left: 0;
  padding: 6px 18px;
  border-radius: 12px 12px 0 0;
  background: #4b7bec;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

/* Content inside each tab */
.steps-tab-content {
  padding: 30px;
  text-align: left;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 3 columns */
  grid-auto-rows: auto;
  gap: 1rem;
}

.homepage-tab:not(.front) .steps-tab-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;

}

.homepage-tab:not(.front) .steps-tab-content:hover {
  display: block;
}
  /* Container to allow horizontal scroll on small screens */
  .quotation-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
  }

  .quotation-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
  }

  .quotation-table thead th {
    background: #f5f5f5;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #ddd;
  }

  .quotation-table th,
  .quotation-table td {
    border: 1px solid #ddd;
    padding: 0.6rem;
    vertical-align: top;
	font-size: 15px;
	font-weight: 400;
  }

  .quotation-table tbody tr:nth-child(even) {
    background: #fafafa;
  }

  .quotation-table tbody tr:hover {
    background: #f1f1f1;
  }

  /* make info‐icons smaller */
  .info-icon {
    font-style: normal;
    color: #888;
    cursor: help;
    margin-left: 0.2rem;
  }


  .mobile-steps-container {
  padding: 1rem;
}

/* Tab buttons */
.mobile-step-tabs {
  display: flex;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  background: #e8ebf3;
  border-radius: 8px;
  overflow: visible;
  color: #1d2c4d;
}
.mobile-step-tabs .step-tab {
	position: relative;
	z-index: 1;
	flex: 1;
	text-align: center;
	padding: 0.75rem 0;
	cursor: pointer;
	font-weight: 600;
	color: #1d2c4d;
	transition: background 0.3s, color 0.3s , transform 0.3s;
	transform-origin: center bottom;
	border-bottom: 2px solid transparent;
}
.mobile-step-tabs .step-tab.active {
	background: #dce4f4;
	border-bottom: 2px solid #1DB24C;
	transform: scale(1.15);
	border-radius: 8px;
	z-index: 1; 
}

/* Content panels */
.mobile-step-contents .step-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1rem;
}
.mobile-step-contents .step-content + .step-content {
  margin-top: 1rem;
}

#loan-type-next #loan-type-prev {
  background-color: white;
}
#loan-type-next #loan-type-prev:hover{
  background-color: red;
}

#loan-type-next,
#loan-type-prev {
  border-radius:50%;
  width:50px;
  height:50px;
  margin-top: 1.5rem;
    background: #fff;
  border: 2px solid #1DB24C;
  color: #1DB24C;
  transition: all 0.3s ease;

}
#loan-type-next i,
#loan-type-prev i {
  color: #1DB24C;
  transition: color 0.3s ease;
}

#loan-type-next:hover,
#loan-type-prev:hover {
  background: #1DB24C;
}

#loan-type-next:hover i,
#loan-type-prev:hover i {
  color: white;
}


.step-number {
  position: absolute;
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
  font-size: 80px;
  font-weight: 800;
  color: #43A047;
  opacity: 0.12;
  z-index: -1;
}

@media (max-width: 768px) {
  .step-number {
    position: static;
    transform: none;
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
    left: 0;
    opacity: 1;
  }
  .step-circle {
    width: 150px !important;
    height: 150px !important;
  }
  .step-circle svg {
    width: 150px !important;
    height: 125px !important;
  }
}
