/* ==========================================================================
   THAI TONGUE — Contact / Quotation Form Styles
   Matches the site theme: white background, green accents, gray text.
   ========================================================================== */

.tt-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 24px;
  font-family: 'Sarabun', sans-serif;
}

.tt-form .form-group { margin-bottom: 20px; }

.tt-form label {
  display: block;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

/* Required-field asterisk in red */
.tt-form .required::after { content: " *"; color: #F00; font-weight: 700; }

/* Text / tel / email inputs + textarea */
.tt-form input[type="text"],
.tt-form input[type="tel"],
.tt-form input[type="email"],
.tt-form textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: 'Sarabun', sans-serif;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.tt-form input:focus,
.tt-form textarea:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40,167,69,0.15);
}
.tt-form textarea { min-height: 110px; resize: vertical; }

/* Checkbox groups */
.tt-form .tt-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tt-form .tt-checks label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Sarabun', sans-serif; font-weight: 400; cursor: pointer; margin-bottom: 0;
}
.tt-form .tt-checks input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: #28a745; cursor: pointer;
}

/* Drag-and-drop upload zone */
.tt-dropzone {
  border: 2px dashed #ddd;
  border-radius: 5px;
  background: #F2F2F2;
  padding: 28px 18px;
  text-align: center;
  color: #333;
  cursor: pointer;
}
.tt-dropzone:hover { border-color: #28a745; }
.tt-dropzone.is-dragover { border-color: #28a745; background: rgba(40,167,69,0.07); }
.tt-dropzone strong { font-family: 'Prompt', sans-serif; color: #099; }
.tt-dropzone small  { display: block; margin-top: 6px; color: #777; }
.tt-dropzone input[type="file"] { display: none; }

/* Selected-file list with remove buttons */
.tt-file-list { list-style: none; margin: 14px 0 0; padding: 0; }
.tt-file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; margin-bottom: 8px;
  background: #fff; border: 1px solid #ddd; border-radius: 5px; font-size: 14px;
}
.tt-file-list .tt-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-file-list .tt-file-size { color: #888; font-size: 13px; white-space: nowrap; }
.tt-file-remove {
  border: none; background: transparent; color: #c0392b;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.tt-file-remove:hover { color: #922b21; }

/* Helper / error messages */
.tt-form .tt-error { color: #c0392b; font-size: 13px; margin-top: 5px; }
.tt-form .tt-hint  { color: #777;    font-size: 13px; }

/* Status banner (after submit / on error redirect) */
.tt-form-status { padding: 14px 16px; border-radius: 5px; margin-bottom: 20px; display: none; }
.tt-form-status.success {
  display: block; background: rgba(40,167,69,0.12); border: 1px solid #28a745; color: #1e7e34;
}
.tt-form-status.error {
  display: block; background: rgba(192,57,43,0.1); border: 1px solid #c0392b; color: #922b21;
}

/* Submit button (full width) */
.tt-form .tt-btn-submit { width: 100%; padding: 14px; font-size: 17px; }

/* Responsive */
@media (max-width: 768px) {
  .tt-form { padding: 18px; }
  .tt-form .tt-checks { flex-direction: column; gap: 10px; }
}
/* Stacked checkbox list (one per line) — for Document Types */
.tt-form .tt-checks--stack { flex-direction: column; gap: 10px; }
