* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #e0f7fa, #ffffff);
  margin: 0;
}

/* Navbar */
.navbar {
  background-color: #d0ebe6;
  padding: 15px 40px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: teal;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: teal;
}

/* Rating Section */
.rating-container {
  max-width: 800px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 30px;
}

.section {
  margin-bottom: 25px;
}

.section label {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

.stars {
  display: flex;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.star {
  font-size: 1.8rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star.selected,
.star:hover,
.star:hover ~ .star {
  color: #fbc02d;
}

textarea {
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: none;
  margin-bottom: 10px;
}

button {
  padding: 12px 20px;
  background-color: teal;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  transition: background 0.3s;
}

button:hover {
  background-color: #00796b;
}

#submitMsg {
  text-align: center;
  margin-top: 15px;
  color: green;
}

.hidden {
  display: none;
}

/* Footer */
footer {
  background-color: #00a88e;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

.footer-container {
  max-width: 1000px;
  margin: auto;
}

.social-icons {
  margin-bottom: 15px;
}

.social-icon {
  font-size: 1.5rem;
  margin: 0 8px;
  color: #555;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  color: teal;
}

.contact-info p {
  font-size: 0.95rem;
  color: #555;
  margin: 3px 0;
}

/* Modal Overlay */
.custom-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal Content */
.custom-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.custom-modal-content h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.custom-modal-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.custom-modal-content input {
  padding: 10px;
  width: 90%;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  background: teal;
  color: white;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 100px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  .rating-container {
    margin: 30px 15px;
    padding: 20px;
  }

  .custom-modal-content {
    padding: 20px;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons button {
    width: 100%;
  }

  .footer-container {
    padding: 0 10px;
  }

  .social-icon {
    font-size: 1.3rem;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .section label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .custom-modal-content h3 {
    font-size: 1.2rem;
  }

  .custom-modal-content p {
    font-size: 0.95rem;
  }

  .custom-modal-content input {
    width: 100%;
    font-size: 0.95rem;
  }

  .modal-buttons button {
    font-size: 0.95rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav-links li a {
    font-size: 0.95rem;
  }

  button {
    font-size: 0.95rem;
  }

  textarea {
    font-size: 0.9rem;
  }
}
