/**
 * Estimate Loan Calculator Styles
 * Shortcode: [estimate_loan]
 */

/* Main Container */
.estimate-loan-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #fff;
}

.estimate-loan__title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
}

/* Products Slider Section */
.estimate-products-section {
  margin-bottom: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #f5f9f7 0%, #e8f5f0 100%);
  border-radius: 16px;
}

.estimate-products__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
  text-align: center;
}

.estimate-products-slider-wrapper {
  position: relative;
  padding: 0 50px;
}

.estimate-products-slider .swiper-slide {
  height: auto;
  overflow: visible;
}

.estimate-products-slider .swiper-wrapper {
  overflow: visible;
}

.estimate-product-card {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.estimate-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(56,159,112,0.15);
  border-color: #389F70;
  z-index: 10;
}

.estimate-product-card.active {
  border-color: #389F70;
  border-width: 3px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(56,159,112,0.25);
  transform: none;
  z-index: 5;
}

.estimate-product-card .product-logo-wrapper {
  width: 100%;
  height: 100px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}

.estimate-product-card .product-logo {
  width: 100%;
  height: 100%;
}

.estimate-product-card .product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  gap: 8px;
}

.estimate-product-card .product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.estimate-product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.85rem;
  color: #389F70;
  flex-shrink: 0;
}

.estimate-product-card .rating-star {
  color: #FFB800;
  font-size: 0.9rem;
}

.estimate-product-card .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 12px;
}

.estimate-product-card .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.estimate-product-card .info-label {
  font-size: 0.8rem;
  color: #888;
}

.estimate-product-card .info-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.estimate-slider-prev,
.estimate-slider-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #389F70;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.estimate-slider-prev:hover,
.estimate-slider-next:hover {
  background-color: #2d8560;
  transform: scale(1.05);
}

.estimate-slider-prev::after,
.estimate-slider-next::after {
  font-size: 18px;
  font-weight: bold;
}

.estimate-slider-prev {
  left: 0;
}

.estimate-slider-next {
  right: 0;
}

/* Form Section */
.estimate-loan-form {
  background: linear-gradient(135deg, #f5f9f7 0%, #e8f5f0 100%);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-row-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.form-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.amount-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #389F70;
  text-align: center;
  margin: 8px 0;
}

.interest-display {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
}

.term-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.term-btn {
  min-width: 60px;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.term-btn:hover {
  border-color: #389F70;
  color: #389F70;
}

.term-btn.active {
  background: #389F70;
  border-color: #389F70;
  color: #fff;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  margin-top: 8px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #389F70;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #389F70;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #888;
}

.form-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.result-main {
  text-align: center;
  padding: 20px 0;
}

.result-main .result-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.result-value-main {
  font-size: 2rem;
  font-weight: 700;
  color: #389F70;
}

.btn-register {
  width: 100%;
  background: linear-gradient(135deg, #389F70 0%, #386E7C 100%);
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(56,159,112,0.25);
}

.btn-register:hover {
  background: linear-gradient(135deg, #2d8560 0%, #2d5a66 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56,159,112,0.35);
}

/* Responsive Design */
@media only screen and (max-width: 992px) {
  .form-row-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-right {
    max-width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .estimate-products-section {
    padding: 20px 16px;
  }

  .estimate-products-slider-wrapper {
    padding: 0 40px;
  }

  .estimate-slider-prev,
  .estimate-slider-next {
    width: 32px;
    height: 32px;
  }

  .estimate-slider-prev::after,
  .estimate-slider-next::after {
    font-size: 14px;
  }

  .estimate-product-card .product-logo-wrapper {
    height: 80px;
    padding: 0;
  }

  .estimate-loan-form {
    padding: 24px 16px;
  }

  .amount-display {
    font-size: 1.3rem;
  }

  .result-value-main {
    font-size: 1.6rem;
  }

  .term-btn {
    min-width: 50px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 480px) {
  .estimate-products-section {
    padding: 16px 12px;
  }

  .estimate-products__title {
    font-size: 1.2rem;
  }

  .estimate-products-slider-wrapper {
    padding: 0 35px;
  }

  .estimate-product-card .product-logo-wrapper {
    height: 70px;
    padding: 0;
  }

  .estimate-product-card .product-title {
    font-size: 0.85rem;
  }

  .estimate-product-card .product-rating {
    font-size: 0.75rem;
  }

  .estimate-loan-form {
    padding: 20px 12px;
  }

  .form-left {
    gap: 20px;
  }

  .amount-display {
    font-size: 1.2rem;
  }

  .result-value-main {
    font-size: 1.4rem;
  }

  .term-btn {
    flex: 1;
    min-width: auto;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
