/* ===== DWR Inquiry — Contact Page Layout ===== */

@import url("https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ── Hero Banner (plugin-managed) ── */
.dwr-contact-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 3.4375rem 1.25rem 2.8125rem;
  text-align: center;
}

.dwr-contact-hero-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 2.375rem !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
  font-family: "Prompt", sans-serif;
}

/* ── Divider ── */
.dwr-divider {
  width: 100%;
  max-width: 100rem;
  margin: 0rem auto 0 auto;
  border-top: 0.125rem solid #dfe8ef;
}

/* ขยาย layout ให้กว้างเต็มหน้า (break ออกจาก WP content width) */
.dwr-contact-layout {
  display: grid;
  grid-template-columns: minmax(764px, 1fr) 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 1.25rem 0;
  padding-bottom: 8rem;
  /* width: 100vw; */
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ===== Left: Form ===== */
.dwr-contact-form-section {
  background: rgba(223, 232, 239, 0.85);
  border-radius: 1rem;
  padding: 2rem 3rem;
  padding-bottom: 2.35rem;
}
.dwr-contact-form-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9375rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}
.dwr-contact-form-title .dwr-icon-circle {
  width: 3.75rem;
  height: 3.75rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dwr-contact-form-title .dwr-icon-circle img {
  width: 2.375rem;
  height: 2.375rem;
}
.dwr-contact-form-title h2 {
  font-family: "Prompt", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #2a5f9e;
  margin: 0;
  line-height: 1.4;
}

/* Override form wrap styles inside this layout */
.dwr-contact-form-section .dwr-inquiry-form-wrap {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}
.dwr-contact-form-section .dwr-form-header {
  display: none !important;
}

/* ===== Right: Contact Info ===== */
.dwr-contact-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.dwr-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9375rem;
  margin-bottom: 0.625rem;
}
.dwr-info-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dwr-info-title-group .dwr-separator {
  width: 0.9375rem;
  height: 3.8125rem;
  object-fit: contain;
}
.dwr-info-title-group h2 {
  font-family: "Prompt", sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

.dwr-phone-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #fff;
  padding: 0.5rem 2rem 0.5rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.04);
  height: 4.0625rem;
}
.dwr-phone-badge img {
  width: 2.0625rem;
  height: 2.0625rem;
}
.dwr-phone-badge span {
  font-family: "Prompt", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a5276;
  white-space: nowrap;
}

/* Info cards */
.dwr-info-card {
  background: #dfe8ef;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
}
.dwr-info-card.dwr-card-with-logo {
  padding-top: 1rem;
}
.dwr-info-card-logo img {
  height: 4.375rem;
  width: auto;
  padding-bottom: 1rem;
}
.dwr-info-card-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-left: 0.5rem;
}

.dwr-info-icon-circle {
  width: 3.125rem;
  height: 3.125rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dwr-info-icon-circle img {
  width: 1.75rem;
  height: 1.75rem;
}
.dwr-info-card-text {
  font-family: "Prompt", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #2a5f9e;
  line-height: 1.5;
  /* padding-top: 0.5rem; */
}

/* Google Maps */
.dwr-map-container {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 0.0625rem solid #e1e8f0;
  box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.05);
  height: 25rem;
}
.dwr-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.g-recaptcha {
  display: flex !important;
  justify-content: center !important; /* จัดให้อยู่กลางหน้าฟอร์ม */
  background-color: #ffffff !important; /* พื้นหลังสีขาวตามรูป */
  padding: 12px !important; /* ระยะห่างระหว่างขอบกับตัวเลือก */
  border-radius: 15px !important; /* ขอบโค้งมนตาม Design */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important; /* เงาบางๆ ให้ดูมีมิติ */
  margin: 20px auto !important; /* ระยะห่างบน-ล่าง */
  margin-top: 0 !important;
  width: fit-content !important; /* ให้ขนาดกล่องพอดีกับตัว reCAPTCHA */
}

/* ===== Responsive ===== */
@media (max-width: 60rem) {
  .dwr-contact-layout {
    grid-template-columns: 1fr;
    gap: 1.875rem;
    padding: 0.625rem;
  }
  .dwr-contact-form-section {
    padding: 1.5rem 1.5rem;
  }
  .dwr-info-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dwr-info-title-group h2 {
    font-size: 1.6rem;
  }
}
