﻿#testimonialCarousel {
  position: relative;
  padding: 0 50px;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border-radius: 50%;
  opacity: 1;
  transition: none;
}

#testimonialCarousel .carousel-control-prev {
  left: 0;
}

#testimonialCarousel .carousel-control-next {
  right: 0;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

.carousel-indicators-custom {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 24px;
}

.carousel-indicators-custom button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0.5;
}

.carousel-indicators-custom button:hover {
  opacity: 0.8;
}

.carousel-indicators-custom button.active {
  background: var(--primary);
  width: 32px;
  border-radius: 20px;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.testimonial-card .stars {
  color: var(--warning);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card .author h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-card .author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 50%,
    #ec4899 100%
  );
  background-size: 200% 200%;
  animation: shimmerGradient 6s ease-in-out infinite;
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #fff;
  color: var(--primary-hover);
}

.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
  padding: 10px 18px;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-hover);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.custom-select-wrapper select {
  display: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 11px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  background-color: var(--bg-white);
  cursor: pointer;
  font-weight: 500;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
  user-select: none;
}

.custom-select-trigger:hover {
  border-color: var(--primary);
  background-color: var(--primary-ultra-light);
}

.custom-select-trigger.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  border-radius: 16px 16px 0 0;
}

.custom-select-trigger .arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--primary);
  transition: transform 0.2s;
  margin-left: 10px;
  flex-shrink: 0;
}

.custom-select-trigger.open .arrow {
  transform: rotate(180deg);
}

.custom-select-trigger .selected-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger .placeholder {
  color: var(--text-muted);
}

.custom-select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1.5px solid var(--primary);
  border-top: none;
  border-radius: 0 0 16px 16px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1050;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.custom-select-options.show {
  display: block;
}

.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.custom-select-option {
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  font-weight: 400;
}

.custom-select-option:hover {
  background: var(--primary-ultra-light);
  color: var(--primary);
}

.custom-select-option.selected {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.custom-select-option:last-child {
  border-radius: 0 0 14px 14px;
}

/* Custom select inside floating label groups */
.floating-label-group .custom-select-wrapper {
  width: 100%;
}

.floating-label-group .custom-select-trigger {
  border-radius: var(--radius);
  padding: 20px 16px 8px;
  border-width: 1px;
}

.floating-label-group .custom-select-trigger.open {
  border-radius: var(--radius) var(--radius) 0 0;
}

.floating-label-group .custom-select-options {
  border-width: 1px;
  border-radius: 0 0 var(--radius) var(--radius);
}
