/* ===========================================
   AppSheet Contact Form – (Theme Adaptive Final)
   =========================================== */

.appsheet-contact.container {
  max-width: 720px !important;
  margin: 20px auto !important;
  padding: 20px 28px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: inherit !important; 
  background: transparent !important; 
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
  line-height: 1.4 !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

/* Nhóm form */
.appsheet-contact .form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important; 
  margin-bottom: 1px !important;
}

/* Label */
.appsheet-contact label {
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: inherit !important;
  line-height: 1.3 !important;
}

.appsheet-contact .required {
  color: #ff6b6b !important;
}

/* Input + Textarea */
.appsheet-contact input,
.appsheet-contact textarea {
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  border: 1px solid var(--adv-border-color, rgba(0, 0, 0, 0.2)) !important;
  background: var(--adv-bg-input, rgba(255, 255, 255, 0.05)) !important;
  color: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  transition: all 0.25s ease !important;
  margin-top: -1px !important; /* giúp ô gần nhau hơn */
}

.appsheet-contact input:focus,
.appsheet-contact textarea:focus {
  outline: none !important;
  border-color: var(--adv-primary, #8a2be2) !important;
  box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.25) !important;
  background: var(--adv-bg-hover, rgba(255, 255, 255, 0.1)) !important;
}

/* Textarea */
.appsheet-contact textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

/* Nút gửi */
.appsheet-contact button {
  background: var(--adv-primary, #8a2be2) !important;
  color: var(--adv-txt-accent, #fff) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Icon emoji / spinner */
.appsheet-contact button .icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(1px);
}

/* Text trong nút */
.appsheet-contact button span {
  display: inline-block !important;
  line-height: 1 !important;
  position: relative;
  top: 0.5px;
}

/* Hiệu ứng hover */
.appsheet-contact button:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

/* Trạng thái disabled */
.appsheet-contact button[disabled] {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Hộp thông báo */
.appsheet-contact .status {
  margin-top: 14px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  display: none !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.appsheet-contact .success {
  background: rgba(50, 200, 80, 0.1) !important;
  border: 1px solid rgba(50, 200, 80, 0.3) !important;
  color: #37d46b !important;
  display: block !important;
}

.appsheet-contact .error {
  background: rgba(255, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 0, 0, 0.3) !important;
  color: #ff5c5c !important;
  display: block !important;
}
