html {
  scroll-behavior: smooth;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #e9f1fa;
  color: #444;
}

header {
  background: #00abe4;
  padding: 15px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Poppins", sans-serif;
  margin-bottom: 30px;
}

header h1 {
  font-size: 1.7rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 450;
  font-size: 20px;
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2.5px;
  background: white;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  opacity: 0.85;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

nav a:hover,
nav a.active {
  color: #ffe066;
  transition: color 0.2s;
}

@media (max-width: 1045px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #00abe4;
    display: none;
    padding: 10px 0 0 0;
    gap: 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s, color 0.2s;
    color: white;
  }

  nav a:hover,
  nav a.active {
    background: transparent;
    color: #ffe066;
  }

  nav a::after {
    content: none;
  }
}

.intro {
  max-width: 80%;
  margin: 0px auto 40px auto;
  padding: 25px;
  background-color: rgb(197, 224, 248);
  border-radius: 15px;
}

.intro h1 {
  font-size: 2.3rem;
  color: #1d3453;
  text-align: center;
  margin-bottom: 15px;
}

.intro p,
.section-subtitle {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

.section-title {
  margin-top: 50px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.8rem;
  color: #1d3453;
  text-align: center;
}

.top-flex {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: auto;
  max-width: 90%;
  flex-wrap: nowrap;
  border: 2px solid #1d3453;
}

.feedback-img {
  width: 45%;
  flex-shrink: 0;
}

.feedback-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#feedback-form {
  width: 55%;
  display: flex;
  align-items: center;
  background-color: #d6e7f4;
  padding: 20px 32px 32px 32px;
}

#feedback-form h2 {
  border-bottom: 2px solid #6fbcf3;
  padding-bottom: 15px;
  color: #113051;
}

form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #222;
  display: block;
  letter-spacing: 0.01em;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: #ecf3f8;
  border: 1px solid #6fbcf3;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #0357b7dc;
  box-shadow: 0 0 5px rgba(26, 134, 188, 0.3);
}

.problems {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill-checkbox {
  display: none;
}

.pill-label {
  display: inline-block;
  padding: 8px 26px;
  border-radius: 999px;
  background-color: #ecf3f8;
  border: 1px solid #6fbcf3;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  color: #444;
  font-size: 1rem;
  font-weight: 500;
}

.pill-label:hover {
  background-color: #b8daf5;
}

.pill-checkbox:checked + .pill-label {
  background: #48a9ee;
  color: #fff;
}

button[type="submit"] {
  background: #48a9ee;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s ease-in-out;
}

button[type="submit"]:hover {
  background-color: #0077b6;
}

button[type="submit"]:active {
  transform: scale(0.97);
}

.form-message {
  margin-top: 0px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
}

.form-message.success {
  background: #d1f7d6;
  color: #217a2c;
  border: 1.5px solid #6be48c;
}

.form-message.error {
  background: #ffe0e0;
  color: #b30000;
  border: 1.5px solid #ffb3b3;
}

#feedbacks {
  margin: 40px auto;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.feedback-card {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feedback-card:hover {
  transform: scale(1.02);
}

.icon-bar {
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #6fbcf3;
}

.feedback-icon {
  font-size: 2rem;
  color: #1d3453;
}

.feedback-card-content {
  padding: 18px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.feedback-name {
  font-size: 1.1rem;
  font-weight: 550;
  color: #222;
}

.feedback-date {
  font-size: 0.99rem;
  color: #808080;
}

.feedback-problem {
  font-size: 1rem;
  color: #0f57a4;
  font-weight: 530;
  margin-bottom: 2px;
}

.feedback-solution {
  font-size: 1rem;
  margin-bottom: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: #c6dffd;
  transition: color 0.2s;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.like-btn.liked {
  color: #e33724;
}

.like-btn:hover {
  color: #e74c3c;
}

@media (max-width: 900px) {
  .top-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .feedback-img {
    display: none;
  }

  #feedback-form {
    max-width: 100%;
    padding: 24px;
  }

  #feedbacks {
    padding: 0;
  }

  .feedback-solution {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  #feedback-form {
    width: 100%;
  }
}

@media (max-width: 1000px) {
  #feedback-form {
    width: 100%;
  }

  .feedback-img {
    display: none;
  }
}

@media (max-width: 600px) {
  #feedback-form {
    width: 100%;
  }

  .feedback-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
  }

  .feedback-card-content {
    padding: 16px;
  }

  .feedback-solution {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .like-btn {
    margin-left: auto;
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  #feedback-form {
    max-width: 100%;
  }

  .feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .feedback-name-date {
    display: flex;
    flex-direction: column;
  }

  .feedback-name,
  .feedback-date {
    font-size: 0.95rem;
  }

  .like-btn {
    margin-left: 8px;
    font-size: 1.3rem;
    align-self: flex-start;
  }

  .stroke {
    display: none;
  }
}

.site-footer {
  background-color: #1d3453;
  color: #ddd;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-container p {
  margin: 0;
  font-size: 16px;
}

.footer-divider {
  color: #888;
  font-size: 16px;
}

.footer-container strong {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .footer-divider {
    display: none;
  }
}
