/* start section hero kontak kami */
.contact-section {
  background-color: #0056D2;
  color: white;
  margin-top: 30px;
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  gap: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.contact-text {
  flex: 1;
  padding: 20px;
}

.contact-text h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.contact-image {
  flex: 1;
  padding: 12px; /* padding dikurangi supaya lebih pas */
  text-align: center;
}

.contact-image img {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 50px;
  padding: 12px; /* padding dalam gambar */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.contact-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.contact-subtitle {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* Media query untuk tampilan responsif */
@media (max-width: 768px) {
  .contact-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0px;
  }

  .contact-image, .contact-text{
    padding: 0px 20px;
  }

  .contact-subtitle {
    display: none;
  }

  .contact-text p {
    font-size: 16px;
  }

  .btn-hubungi-admin{
    display: inline;
  }
}

.btn-kontak {
  display: inline-block;
  background-color: white;
  color: #006eff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.btn-kontak i {
  margin-right: 8px;
  font-size: 24px;
  vertical-align: middle;
}

.btn-kontak:hover {
  background-color: #e0e0e0;
}

/* start section hero kontak kami */



/* start section kontak kami */
.kontak-section {
  padding: 2rem;
  font-family: sans-serif;
  background-color: #fff;
}

.kontak-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1150px;
  margin: 0 auto;
  align-items: flex-start;
}

.kontak-left,
.kontak-right {
  flex: 1;
  min-width: 300px;
}

.kontak-left iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.kontak-left h3 {
  margin-bottom: 0.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.kontak-info p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #333;
  padding-bottom: 10px;
}

.kontak-info i {
  margin-right: 8px;
  color: #2f4eb1;
}

.kontak-right h3 {
  margin-bottom: 0.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.kontak-right p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 0.95rem;
}

.kontak-form input,
.kontak-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  margin: 5px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.kontak-form .form-row {
  display: flex;
  justify-content: space-between;
  gap: 0; /* hilangkan gap agar space-between bekerja sesuai harapan */
}

.kontak-form .form-row > div {
  width: 48%; /* Biar ada jeda di tengah dan tidak kepotong */
  display: flex;
  flex-direction: column;
}


.kontak-form .form-row input {
  flex: 1;
}

.kontak-form textarea {
  resize: vertical;
  min-height: 100px;
}
.invalid-feedback {
  color: #dc3545;              
  font-size: 0.85rem;         
  display: none;               
  font-weight: 500;           
  padding: 5px;
  line-height: 1.3;
}

/* Tampilkan feedback jika form sudah divalidasi dan input invalid */
.kontak-form.was-validated input:invalid + .invalid-feedback,
.kontak-form.was-validated textarea:invalid + .invalid-feedback {
  display: block;
}

/* Tambahan opsional agar input yang salah juga terlihat jelas */
.kontak-form.was-validated input:invalid,
.kontak-form.was-validated textarea:invalid {
  border-color: #dc3545;
  background-color: #fff0f0; /* Background sedikit merah muda (optional) */
}


.kontak-form button {
  background-color: #0056D2;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  width: 100%;
}

.kontak-form button:hover {
  background-color: #0349ab;
}

/* Responsif */
@media (max-width: 768px) {
  .kontak-form .form-row {
    flex-direction: column;
  }

  .kontak-form .form-row > div {
    width: 100%;
  }
}
