/* Ẩn label hiển thị, vẫn cho screen reader đọc */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.th-contact-form,
.th-contact-form * {
  box-sizing: border-box;
}

/* Lưới các hàng */
.th-contact-form {
  display: grid;
  gap: clamp(12px, calc(10.15px + 0.12vw), 20px);
  margin-block: clamp(12px, calc(7.85px + 1.16vw), 30px)
    clamp(24px, calc(6.46px + 4.87vw), 100px);
}

/* Hàng 2 cột cho Họ tên + SĐT (desktop) */
.thcf-row--2 {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .thcf-row--2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Trường nhập cơ bản */
.thcf-field input,
.thcf-field textarea {
  width: 100%;
  display: block;
  border: none;
  background: #f2f2f2;
  color: #0b1726;
  border-radius: 30px;
  /* pill */
  padding: 16px 20px;
  font-size: 16px;
  /* bạn có thể đổi; đây là min16→max40 */
  line-height: 1.3;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

/* Textarea riêng: bo góc lớn nhưng không phải pill hoàn toàn */
.thcf-field--message textarea {
  border-radius: 30px;
  min-height: 180px;
  resize: none;
  /* không cho chỉnh kích thước */
}

/* Placeholder màu xám nhạt */
.thcf-field input::placeholder,
.thcf-field textarea::placeholder {
  color: #8a8a8a;
}

/* Focus */
.thcf-field input:focus,
.thcf-field textarea:focus {
  background: #fff;
  border-color: #c9ced6;
  box-shadow: 0 0 0 3px rgba(5, 94, 169, 0.12);
}

/* Nút gửi */
.thcf-submit {
  display: inline-flex;
  /* co theo nội dung */
  align-items: center;
  padding-block: clamp(4px, calc(0.0641vw + 3.77px), 5px);
  padding-inline: clamp(12px, calc(1.154vw + 7.85px), 30px) /* trái */
    clamp(4px, calc(0.0641vw + 3.77px), 5px);
  /* phải */
  /* trái/phải */
  gap: clamp(8px, calc(0.513vw + 6.15px), 16px);
  border: none;
  border-radius: 30px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: auto;
  /* bỏ chiều rộng cố định */
  inline-size: fit-content;
  /* co theo nội dung (fallback: width:auto đã đủ) */
  white-space: nowrap;
  /* tránh xuống dòng icon/text */
  justify-self: start;
}

.thcf-submit:hover {
  opacity: 0.9;
  background: #000;
  color: #fff;
}

/* Lỗi */
.thcf-error {
  margin-top: 6px;
  font-size: 12px;
  color: #c0392b;
}

/* Alert */
.thcf-alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.thcf-alert.success {
  background: #e8f8ef;
  color: #20794b;
}

.thcf-alert.error {
  background: #fdecea;
  color: #a12622;
}

.btn__knob {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0b5aa3;
  /* xanh như bản vẽ */
  color: #fff;
  /* để SVG nhận màu trắng (currentColor) */
  display: grid;
  place-items: center;
}


.btn__knob svg {
  color: #fff;
}
