/* ==================================================
= Contact Page Layout =
================================================== */

/* ==========================================
= 2 Cột: Form bên trái (70%), Info bên phải (30%)
  Khoảng cách giữa 2 cột: 30px
========================================== */
.contact-columns {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
}

/* Cột trái – 70% (trừ nửa khoảng cách) */
.contact-form {
  width: calc(70% - 15px);
  flex: 0 0 calc(70% - 15px);
  max-width: calc(70% - 15px);
}

/* Cột phải – 30% (trừ nửa khoảng cách) */
.contact-info {
  width: calc(30% - 15px);
  flex: 0 0 calc(30% - 15px);
  max-width: calc(30% - 15px);
  line-height: 1.7;
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.contact-form h4 {
  margin-top: 0;
}

/* ==========================================
= Form Elements
========================================== */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius-3);
  font-family: var(--font-body);
  font-size: 1.125rem;
}


/* ==========================================
= Form Response Message (AJAX)
========================================== */
.contact-response {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-5);
  font-weight: 500;
  display: none;
}

.contact-response.success {
  display: block;
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.contact-response.error {
  display: block;
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}


/* ==========================================
= Contact information
========================================== */

.info-icon {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}

.info-icon li {
  color: #333;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--color-2);
}

.info-icon li:last-child {
  border-bottom: none;
}

.info-icon li i {
  color: var(--primary-color);
  margin-right: 0.25rem;
}

/* ==========================================
= Contact Image Thanks
========================================== */

.background-contact {
  background-image: url('../images/background-contact.png'); /* hoặc dùng get_template_directory_uri() nếu PHP */
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 260px;
  margin-top: 2.25rem;
  border-radius: var(--border-radius-5);
  position: relative;
  overflow: hidden;
}

/* Ảnh cảm ơn nằm chính giữa + hiệu ứng nhấp nháy */
.background-contact img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blinkOpacity 2s infinite ease-in-out;
  max-width: 100%;
  height: auto;
}

@keyframes blinkOpacity {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ==========================================
= Responsive: Mobile (1 cột)
========================================== */
@media (max-width: 1024px) {
  .contact-columns {
    flex-direction: column;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}
