/* Main Container */
.mainform-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  font-family: "Segoe UI", Roboto, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mainform-section h2 {
  font-size: 2rem;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
}

.text-primary {
  color: #4e73df;
}

/* Two Column Layout */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.justify-content-center {
  justify-content: center;
}

.align-items-start {
  align-items: flex-start;
}

.col-lg-5,
.col-lg-7 {
  padding: 0 15px;
  position: relative;
  width: 100%;
}

@media (min-width: 992px) {
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
}

/* Left Side Content */
.col-lg-5 h5 {
  font-size: 1.25rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
}

.col-lg-5 p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Brand Logos */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 2rem;
}

.brand-logos img {
  max-width: 80px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.brand-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Testimonial Viewport */
.testimonial-viewport {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  position: absolute;
  width: 100%;
  animation: scrollTestimonials 30s linear infinite;
}

/* Testimonial Cards */
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 50px;
  color: rgba(78, 115, 223, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card p {
  color: #555;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.testimonial-card strong {
  display: block;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card span {
  color: #777;
  font-size: 0.8rem;
  display: block;
}

/* Form Styles */
.mainform {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.mainform label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
}

.mainform input[type="text"],
.mainform input[type="email"],
.mainform input[type="tel"],
.mainform select,
.mainform textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.mainform input:focus,
.mainform select:focus,
.mainform textarea:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
  outline: none;
}

.mainform textarea {
  min-height: 100px;
  resize: vertical;
}

.mainform input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

.text-muted {
  color: #999;
  font-size: 0.8rem;
  display: block;
  margin-top: 5px;
}

/* Checkboxes */
.form-check {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 10px;
}

.form-check-label {
  font-size: 0.9rem;
  color: #555;
}

/* Submit Button */
.btn-submit {
  background-color: #000;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  width: 100%;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-submit:hover {
  background-color: #cb3e3e;
}

/* Animation */
@keyframes scrollTestimonials {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-100% + 300px));
  }
}

/* Pause on hover */
.testimonial-viewport:hover .testimonial-track {
  animation-play-state: paused;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .testimonial-viewport {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .mainform-section {
    padding: 40px 0;
  }

  .col-lg-5,
  .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .testimonial-viewport {
    height: 200px;
    margin-bottom: 30px;
  }
}
