/* ==== Nhã Uyên Form 2 Cột ==== */
.nyfb-form {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px 30px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-family: "Arial", sans-serif;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
}

/* Mặc định mỗi field chiếm 1 cột */
.nyfb-form .nyfb-field {
  display: flex;
  flex-direction: column;
}

/* Label */
.nyfb-form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
}

.nyfb-form .required {
  color: red;
  font-weight: bold;
}

/* Input, Select, Textarea */
.nyfb-form input[type="text"],
.nyfb-form input[type="email"],
.nyfb-form input[type="number"],
.nyfb-form input[type="date"],
.nyfb-form input[type="file"],
.nyfb-form textarea,
{
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.nyfb-form select {
	  width: 100%;
  padding: 1px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.nyfb-form input:focus,
.nyfb-form textarea:focus,
.nyfb-form select:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

/* Checkbox */
.nyfb-form input[type="checkbox"] {
  margin-right: 6px;
  transform: scale(1.1);
}
.nyfb-form label input[type="checkbox"] {
  display: inline-block;
  width: auto;
}

/* Các trường cần full width */
.nyfb-form textarea,
.nyfb-form input[type="file"],
.nyfb-form .nyfb-field:last-of-type, /* nút gửi */
.nyfb-form .nyfb-error {
  grid-column: 1 / 3; /* Trải rộng cả 2 cột */
}

/* Button */
.nyfb-form button {
  background: #4CAF50;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nyfb-form button:hover {
  background: #43a047;
  transform: translateY(-2px);
}

.nyfb-form button:active {
  transform: translateY(0);
}

/* Error message */
.nyfb-form .nyfb-error {
  margin-top: 15px;
  padding: 10px 15px;
  border: 1px solid red;
  border-radius: 6px;
  background: #ffe5e5;
  color: red;
  font-size: 14px;
}

/* Responsive cho mobile: về 1 cột */
@media (max-width: 768px) {
  .nyfb-form {
    grid-template-columns: 1fr;
  }
}