@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    padding: 0;

}

/* หัวข้อใหญ่ */
.page-title-section {
  padding: 100px 20px 20px;
  text-align: center;
  color: #34495e; /* เทาเข้ม */
  margin-bottom: 50px;
  border-radius: 0 0 32px 32px;
  user-select: none;
}

.page-title {
  font-weight: 900;
  font-size: 3.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  text-shadow:
    1px 1px 5px rgba(44, 62, 80, 0.3);
}

/* Container หลัก */
.contact-info-section {
  max-width: 1140px;
  margin: 0 auto 90px;
  padding: 0 20px;
  padding-top: 20px;
}

/* การ์ดข้อมูลติดต่อ */
.contact-info-cards {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 50px;
}

.contact-card {
  flex: 1;
  text-align: center;
  padding: 28px 24px;
  background: linear-gradient(145deg, #f5f7fa, #d7dde5); /* สีฟ้าเทาอ่อน */
  border-radius: 20px;
  box-shadow:
    6px 6px 20px rgba(44, 62, 80, 0.15),
    -6px -6px 20px #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow:
    8px 12px 35px rgba(52, 73, 94, 0.3),
    -8px -8px 30px #e4e9f0;
}

.contact-card .icon {
  font-size: 38px;
  color: #3498db; /* ฟ้าโมเดิร์น */
  margin-bottom: 18px;
  filter: drop-shadow(0 2px 3px rgba(52, 152, 219, 0.25));
}

.contact-card h3 {
  font-weight: 800;
  margin-bottom: 14px;
  color: #2c3e50; /* น้ำเงินเข้ม */
  text-shadow: 0 0 6px rgba(52, 152, 219, 0.4);
}

.contact-card p {
  font-size: 1.05rem;
  color: #7f8c8d; /* เทากลาง */
  line-height: 1.6;
  white-space: pre-line;
}

/* แผนที่ */
.map-container {
  position: relative;
  margin-bottom: 24px;
}

.map-image {
  width: 100%;
  border-radius: 24px;
  box-shadow:
    0 16px 48px rgba(52, 152, 219, 0.25),
    inset 0 0 30px rgba(52, 152, 219, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: block;
}

.map-image:hover {
  transform: scale(1.04);
  box-shadow:
    0 20px 60px rgba(52, 152, 219, 0.35),
    inset 0 0 35px rgba(52, 152, 219, 0.15);
}

.map-link-text {
  margin-top: 10px;
  text-align: center;
  color: #3498db;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 0 4px rgba(52, 152, 219, 0.7);
  transition: color 0.3s ease;
}

.map-link-text:hover {
  color: #2980b9;
  text-decoration: underline;
}

.map-wrapper {
  position: relative;
  display: inline-block;
}

.map-hover-text {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(52, 152, 219, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.map-wrapper:hover .map-hover-text {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ปุ่ม Q&A และ ข้อร้องเรียน */
.qa-buttons {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-qa {
  padding: 18px 60px;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  box-shadow:
    0 8px 22px rgba(52, 152, 219, 0.35);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
  font-family: 'Kanit', sans-serif;
  min-width: 200px;
  letter-spacing: 0.04em;
  border: none;
}

/* ปุ่มถาม-ตอบ (Q&A) - ฟ้าโมเดิร์น */
.btn-qa:nth-child(1) {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #ecf0f1;
  border-color: #3498db;
  box-shadow:
    0 6px 18px #3498dbaa,
    inset 0 0 8px #3498dbcc;
}

.btn-qa:nth-child(1):hover,
.btn-qa:nth-child(1):focus {
  background: linear-gradient(135deg, #2980b9, #3498db);
  border-color: #1c3d5a;
  box-shadow:
    0 10px 30px #1c3d5aee,
    inset 0 0 14px #3498dbdd;
  outline: none;
  color: #dce6f1;
  transform: translateY(-3px);
}

/* ปุ่มข้อร้องเรียน - สีแดงอมเทาโมเดิร์น */
.btn-qa:nth-child(2) {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fbeaea;
  border-color: #e74c3c;
  box-shadow:
    0 6px 18px #e74c3caa,
    inset 0 0 8px #e74c3ccc;
}

.btn-qa:nth-child(2):hover,
.btn-qa:nth-child(2):focus {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  border-color: #7a1a18;
  box-shadow:
    0 10px 30px #7a1a18ee,
    inset 0 0 14px #e74c3cdd;
  outline: none;
  color: #f8d7d6;
  transform: translateY(-3px);
}

/* ลิงก์ด้านล่าง */
.bottom-links {
  display: flex;
  justify-content: center;
  gap: 60px;
  max-width: 400px;
  margin: 0 auto 60px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bottom-links a {
  color: #e74c3c;
  text-decoration: none;
  user-select: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.bottom-links a:hover {
  text-decoration: underline;
  color: #c0392b;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow-y: auto;
    background-color: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(8px);
    padding: 48px 20px;
}

/* Modal Content */
.modal-content {
    background-color: #ecf0f1;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 28px;
    padding: 40px 48px;
    box-shadow: 0 24px 60px rgba(44, 62, 80, 0.35);
    position: relative;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.05rem;
}

/* ปุ่มปิด modal */
.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #3498db;
}

.modal-content h2 {
    margin-bottom: 32px;
    font-size: 2.2rem;
    font-weight: 900;
    color: #2980b9;
    text-shadow: 0 0 12px rgba(52, 152, 219, 0.6);
}

/* Form styles */
form .form-group {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

form .form-group input[type="text"],
form .form-group input[type="email"] {
    flex: 1 1 100%;
    padding: 16px 20px;
    border: 2px solid #bdc3c7;
    border-radius: 16px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form .form-group input[type="text"]:focus,
form .form-group input[type="email"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px #3498dbaa;
}

form textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px 20px;
    border: 2px solid #bdc3c7;
    border-radius: 16px;
    font-size: 1.1rem;
    resize: vertical;
    outline: none;
    margin-bottom: 28px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px #3498dbbb;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    font-size: 1rem;
    color: #2c3e50;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Submit button */
.btn-submit {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    box-shadow: 0 6px 20px #2471a3cc;
}

.btn-submit:hover,
.btn-submit:focus {
    background: linear-gradient(135deg, #2471a3, #1b4f72);
    box-shadow: 0 10px 32px #1b4f72dd;
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-info-cards {
    flex-direction: column;
    gap: 28px;
  }
  .qa-buttons {
    flex-direction: column;
    gap: 20px;
  }
  .bottom-links {
    max-width: 100%;
    padding: 0 20px;
  }
  .bottom-links a {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .contact-card p {
    font-size: 1rem;
  }
  .btn-qa {
    padding: 16px 40px;
    font-size: 1.1rem;
    min-width: auto;
  }
  .modal-content {
    padding: 32px 24px;
    font-size: 1rem;
  }
}
