/* ============================================
   CONTACT FORM 7 — Dark Forest Theme
   ============================================ */

.wpcf7 {
  background-color: #0b183e;
  padding: 48px 40px;
}

.wpcf7-form {
  margin-bottom: 0;
}

/* Layout helpers */
.cf7-field-full {
  margin-bottom: 24px;
}

.cf7-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.cf7-col {
  flex: 1;
  min-width: 0;
}

/* Labels */
.wpcf7 label {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wpcf7 .req {
  color: #e05252;
  margin-left: 2px;
}

/* Inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
  width: 100%;
  background-color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 15px;
  color: #1a1a1a;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
  font-family: inherit;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus {
  box-shadow: 0 0 0 3px rgba(230, 190, 80, 0.5);
}

/* Span bọc field của CF7 — cần full width */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Textarea */
.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

/* Submit */
.wpcf7 input[type="submit"] {
  background-color: #fff !important;
  color: #2b2b1a !important;
  box-shadow: none !important;
  border: none;
  padding: 5px 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin-top: 8px;
  margin-bottom: 0;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #d4b438;
  transform: translateY(-1px);
}

/* Lỗi validation */
.wpcf7 .wpcf7-not-valid-tip {
  color: #e05252;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.wpcf7 .wpcf7-mail-sent-ok {
  border: 1px solid #e8c84a;
  color: #e8c84a;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 14px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 640px) {
  .wpcf7 {
    padding: 32px 20px;
  }

  .cf7-row {
    flex-direction: column;
    gap: 16px;
  }
}