body {
  margin: 0;
  padding: 0;
}
.mainpic-home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.mainpic-feedback img {
  width: 100%;
  height: 100%; 
  object-fit: cover; 
}
.mainpic-feedback:first-child {
  opacity: 1;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5); 
}
#content-wrapper {
  width: 80%;
  margin: 0 auto;
}
.container {
  padding: 0px 20px;
  margin: 0px 50px;
}
h1 {
  text-align: center;
  color: #3B3B3B;
  font-size: 32px;
}

.subheadings p {
  color: #555555;
  text-align: center;
}
.mainpic-feedback img {
  width: 100%;
  height: auto;
}
.feedback-section {
  flex: 1;
  padding-left: 50px;
}
#feedbackForm {
  width: 100%;
  padding: 40px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: white;
  box-sizing: border-box;
}

#feedbackForm label {
  display: block;
  margin-top: 10px;
  font-size: 16px;
}
span.required {
  color: red;
  font-weight: bold;
  margin-left: 5px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px; 
  font-size: 14px;
  box-sizing: border-box;
}

button {
  padding: 10px;
  margin-top: 10px;
  background-color: #213E9E;
  color: white;
  border: none;
  border-radius: 10px; 
  cursor: pointer;
  width: 80px;
  text-align: center;
}

#feedbackForm button:hover {
  background-color: #0056b3;
}

#imagePreview {
  width: 100%;
  margin-top: 10px;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup img {
  width: 50px;
  height: 50px;
}

.popup p {
  margin-top: 10px;
  color: #4caf50;
  font-weight: bold;
}
.rating-submit{
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.rating-star {
  font-size: 30px;
  margin-top: 5px;
  margin-bottom: 10px;
}
#customers-say {
  padding: 20px;
  background-color: rgb(238, 238, 238);
}
.card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-right: 10px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
}

.client-card {
  padding: 1rem;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-direction: column;
  height: auto;
  width: auto;
  overflow: auto;
}
.client-card h2,
.client-card p {
  text-align: center;
  color: #3B3B3B;
}
.client-card h2{
  font-size: 18px;
  margin-bottom: 0; 
  order: 1;
}
.client-card p {
  flex-grow: 1;
  order: 2;
}
#customers-say .subheadings p {
  text-align: center;
  color: #555555;
}
.client-card.rating-container {
  color: #d3d3d3; 
  position: fixed;
  color: #333;
}
.rating-container{
  color: #fdd835;
  font-size: 30px;
}
.star {
  display: inline-block;
  cursor: pointer;
}

.star:hover,
.star.active {
  color: gold;
}
@media screen and (max-width: 770px) {
  .card-grid {
    display: block;
  }
  .client-card{
    margin-bottom: 15px;
  }
}
@media screen and (max-width: 395px) {
  .card{
    padding: 0px;
    margin-right: 0px;
  }
  .container {
    padding: 0px;
    margin: 5px;
  }
}