/* ==================================================
   AIA Modern Comment Form - Final Clean
================================================== */

.comments-area {
  max-width: 960px;
  margin: 3rem auto 100px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.comment-respond {
  max-width: 1120px;
  margin: 0 auto !important;
  padding: clamp(1.5rem, 4vw, 3rem) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at top left, rgba(211, 17, 69, 0.08), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fff7f9 52%, #f8fafc 100%) !important;
  border: 1px solid rgba(211, 17, 69, 0.12) !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08) !important;
}

/* หัวข้อ */
.comment-reply-title {
  font-size: 0 !important;
  margin: 0 0 1rem !important;
}

.comment-reply-title::before {
  content: "สอบถามเพิ่มเติม" !important;
  display: block;
  color: #0f172a;
  font-family: "Prompt Primary", "Prompt", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.comment-reply-title::after {
  content: "";
  display: block;
  width: 78px;
  height: 5px;
  margin-top: 14px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d31145, #ff6b8a);
}

/* Layout */
.comment-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-top: 1.5rem;
}

.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
  grid-column: 1 / -1;
}

.comment-form-contact {
  grid-column: 1 / 2;
}

/* ซ่อน label เฉพาะ input แต่ไม่ซ่อน checkbox */
.comment-form-comment > label,
.comment-form-author > label,
.comment-form-email > label,
.comment-form-url > label,
.comment-form-contact > label {
  display: none !important;
}

/* Input / textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.comment-form-contact input[type="text"] {
  width: 100% !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  padding: 14px 16px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.comment-form textarea {
  min-height: 180px !important;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.comment-form-contact input[type="text"]:focus {
  outline: none !important;
  border-color: rgba(211, 17, 69, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(211, 17, 69, 0.10) !important;
}

/* Checkbox */
.comment-form-cookies-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0.6rem 0 0 !important;
  color: #334155 !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.comment-form-cookies-consent input[type="checkbox"] {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  margin: 4px 0 0 !important;
  accent-color: #d31145;
}

.comment-form-cookies-consent label {
  display: inline !important;
  margin: 0 !important;
  color: #334155 !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

/* ปุ่มส่งข้อความ */
.form-submit {
  margin: 0.75rem 0 0 !important;
}

.comment-form input[type="submit"],
.form-submit .submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px !important;
  width: auto !important;
  min-height: 48px !important;
  padding: 0 28px !important;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #d31145, #b80f3a) !important;
  color: #ffffff !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-indent: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 14px 28px rgba(211, 17, 69, 0.24) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.comment-form input[type="submit"]:hover,
.form-submit .submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 36px rgba(211, 17, 69, 0.32) !important;
}

/* ห้ามใช้ pseudo กับ input submit */
.comment-form input[type="submit"]::before,
.comment-form input[type="submit"]::after,
.form-submit .submit::before,
.form-submit .submit::after {
  content: none !important;
  display: none !important;
}

/* Mobile */
@media (max-width: 767px) {
  .comments-area {
    margin-top: 2rem !important;
  }

  .comment-respond {
    padding: 1.25rem !important;
    border-radius: 22px !important;
  }

  .comment-form {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .comment-form-contact {
    grid-column: 1 / -1;
  }

  .comment-form textarea {
    min-height: 150px !important;
  }

  .comment-form input[type="submit"],
  .form-submit .submit {
    width: 100% !important;
  }
}
/* ==================================================
   FIX Mobile Comment Form
   เพิ่มระยะซ้าย-ขวา ไม่ให้ชิดขอบจอเกินไป
================================================== */

@media (max-width: 767px) {
  /* พื้นที่ครอบฟอร์ม */
  .comments-area {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2rem !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  /* กล่องฟอร์มหลัก */
  .comment-respond {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 22px 18px !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
  }

  /* ช่องกรอกข้อความ */
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea,
  .comment-form-contact input[type="text"] {
    border-radius: 14px !important;
    padding: 13px 15px !important;
    box-sizing: border-box !important;
  }

  /* หัวข้อ */
  .comment-reply-title::before {
    font-size: clamp(1.65rem, 7vw, 2.1rem) !important;
  }

  /* ปุ่ม */
  .comment-form input[type="submit"],
  .form-submit .submit {
    width: 100% !important;
    max-width: 100% !important;
  }
}