/* ===============================
   FOOTER BASE STYLES
================================= */
.footer {
  padding: 80px 0 40px;
  margin-top: 80px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
}

.footer-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Info */
.footer-info h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-info p {
  font-size: 16px;
  max-width: 360px;
  opacity: 0.7;
}

/* Form */
.footer-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.btn-submit {
  width: fit-content;
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  margin-top: 45px;
  opacity: 0.6;
}

/* Info */
.footer-info h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-info p {
  font-size: 16px;
  max-width: 360px;
  opacity: 0.7;
  margin-bottom: 20px; /* Tambahkan margin agar ada jarak dengan ikon */
}

/* Ikon sosial di Footer */
.footer-social-links {
  display: flex;
  gap: 15px;
}

.footer-social-links a .social-icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: 0.3s ease;
}

.footer-social-links a:hover .social-icon {
  opacity: 1;
  /* Karena Footer memiliki background transparan, kita beri shadow sederhana saat hover */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

/* ===============================
   RESPONSIVE FOOTER
================================= */

/* Tablet & Mobile (max 768px) */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 35px;
    max-width: 600px; /* Membatasi lebar agar rapi di tengah */
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-social-links {
    justify-content: center; /* Pusatkan ikon sosial di mobile */
  }

  .footer-info p {
    margin: 0 auto 20px; /* Tengah secara horizontal, jaga jarak bawah */
  }

  .footer-info p {
    margin: 0 auto; /* Tengah secara horizontal */
  }

  .footer-form {
    width: 100%;
    max-width: 500px;
  }

  .btn-submit {
    width: 100%; /* Tombol jadi full width di mobile */
    text-align: center;
  }
}

/* Small Mobile (max 430px) */
@media (max-width: 430px) {
  .footer-wrapper {
    padding: 0 15px;
  }

  .footer-info h2 {
    font-size: 26px;
  }

  .footer-form input,
  .footer-form textarea {
    padding: 12px;
    font-size: 14px;
  }
}
