/* Rates & Terms Page Specific Styles */

/* Page Header */
.page-header {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "$";
  position: absolute;
  font-size: 400px;
  bottom: -150px;
  right: -50px;
  font-weight: bold;
  opacity: 0.05;
  color: var(--white);
  line-height: 0.8;
}

.page-header::after {
  content: "%";
  position: absolute;
  font-size: 300px;
  top: -80px;
  left: -50px;
  font-weight: bold;
  opacity: 0.05;
  color: var(--white);
  line-height: 0.8;
}

/* Rates Introduction Section */
.rates-intro {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.rates-intro::before {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(161, 193, 129, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.rates-intro .intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.rates-intro h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.rates-intro h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
}

.rates-intro p {
  font-size: 1.2rem;
  color: var(--mid);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Services Section with Cards */
.our-services {
  padding: 100px 0;
  background-color: var(--light);
  position: relative;
}

.our-services h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: var(--primary);
  position: relative;
}

.our-services h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--primary));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-header {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-header::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(
    to right top,
    var(--primary) 0%,
    var(--primary) 50%,
    transparent 50%
  );
}

.service-card.featured .service-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  padding: 40px 20px;
}

.service-card.featured .service-header::after {
  background: linear-gradient(
    to right top,
    var(--accent) 0%,
    var(--accent) 50%,
    transparent 50%
  );
}

.service-header h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.service-price {
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
}

.service-content {
  padding: 40px 30px 30px;
  text-align: center;
}

.service-features {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  text-align: left;
}

.service-features li {
  padding: 15px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  color: var(--mid);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li i {
  color: var(--accent);
  margin-right: 12px;
  font-size: 1.1rem;
}

.service-card .btn {
  width: 100%;
  margin-top: 10px;
}

/* Loan Types Section with Interactive Tabs */
.loan-types {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
}

.loan-types::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(122, 78, 139, 0.03) 0%,
    rgba(232, 159, 113, 0.03) 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.loan-types h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: var(--primary);
  position: relative;
}

.loan-types h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.tabs-container {
  position: relative;
  z-index: 2;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: var(--light);
  border-radius: 0;
  margin-bottom: 40px;
}

.tab {
  padding: 20px 30px;
  cursor: pointer;
  font-weight: 700;
  color: var(--mid);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  min-width: 180px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--white);
}

.tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.tab.active {
  color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 1;
  transform: translateY(-5px);
}

.tab.active::after {
  transform: scaleX(1);
}

.tab:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--secondary);
}

.tab-content {
  background-color: var(--white);
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  position: relative;
}

.tab-content.hidden {
  display: none;
}

.tab-content h3 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--primary);
  text-align: center;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.tab-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
}

.loan-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.detail-item {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  text-align: center;
  background-color: var(--light);
  margin: 10px;
  border-left: 4px solid var(--secondary);
}

.detail-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--mid);
}

.detail-item p {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.tab-content p:not(.detail-item p) {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--mid);
}

/* Factors Section with Animated Icons */
.factors {
  padding: 100px 0;
  background-color: var(--light);
  position: relative;
}

.factors::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    to right,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
}

.factors h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: var(--primary);
  position: relative;
}

.factors h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--primary));
}

.factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.factor-card {
  background-color: var(--white);
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.factor-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.factor-card:hover {
  transform: translateY(-15px);
}

.factor-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.factor-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.factor-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px dashed var(--primary);
  opacity: 0.2;
  animation: spin 15s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.factor-card:hover .factor-icon {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.factor-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: color 0.3s ease;
}

.factor-card:hover h3 {
  color: var(--secondary);
}

.factor-card p {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.7;
}

/* Fees Table Section */
.additional-fees {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
}

.additional-fees::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h10v10H0V0zm10 10h10v10H10V10z' fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.additional-fees h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: var(--primary);
  position: relative;
}

.additional-fees h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--mid);
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.fees-table {
  max-width: 1000px;
  margin: 0 auto 40px;
  background-color: var(--white);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.fee-row {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.fee-row:hover:not(.header) {
  background-color: rgba(240, 240, 240, 0.5);
}

.fee-row.header {
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  color: var(--white);
  font-weight: 700;
}

.fee-type,
.fee-description {
  padding: 20px;
}

.fee-type {
  width: 30%;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.fee-row.header .fee-type {
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.fee-description {
  width: 70%;
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.7;
}

.fee-row.header .fee-description {
  color: var(--white);
}

.fee-note {
  text-align: center;
  font-size: 1rem;
  color: var(--mid);
  max-width: 800px;
  margin: 30px auto 0;
  font-style: italic;
}

/* Disclaimer Section */
.disclaimer-section {
  padding: 100px 0;
  background-color: var(--light);
  position: relative;
}

.disclaimer-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    to right,
    var(--accent),
    var(--secondary),
    var(--primary)
  );
}

.disclaimer-section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: var(--primary);
  position: relative;
}

.disclaimer-section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--primary));
}

.disclaimer-content {
  background-color: var(--white);
  padding: 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  border-left: 5px solid var(--secondary);
}

.disclaimer-content p {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 20px;
  line-height: 1.7;
}

.disclaimer-content p strong {
  color: var(--primary);
  font-weight: 700;
}

.disclaimer-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .factors-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .tab-content {
    padding: 30px 20px;
  }
}

@media screen and (max-width: 768px) {
  .rates-intro h2,
  .our-services h2,
  .loan-types h2,
  .factors h2,
  .additional-fees h2,
  .disclaimer-section h2 {
    font-size: 2.2rem;
  }

  .loan-details {
    flex-direction: column;
  }

  .detail-item {
    margin: 5px 0;
  }

  .fee-row {
    flex-direction: column;
  }

  .fee-type,
  .fee-description {
    width: 100%;
    border-right: none;
  }

  .fee-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .disclaimer-content {
    padding: 30px 20px;
  }
}

@media screen and (max-width: 576px) {
  .tab {
    padding: 15px;
    min-width: auto;
    font-size: 0.9rem;
  }

  .factor-card {
    padding: 30px 20px;
  }
}
