/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* ===== CARD WRAPPER ===== */
.duhoc-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 520px;
  font-family: 'Be Vietnam Pro', sans-serif;
  box-sizing: border-box;
	 margin: 0 auto; /* thêm dòng này */
}

/* ===== FIELD GROUP ===== */
.duhoc-field-group {
  margin-bottom: 20px;
	
}

/* ===== LABEL ===== */
.duhoc-card .duhoc-label,
.duhoc-card label.duhoc-label {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  position: static !important;
  clip: auto !important;
  overflow: visible !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #222222 !important;
  margin-bottom: 8px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
}

.duhoc-label .req {
  color: #e74c3c;
  margin-left: 2px;
}

/* ===== 2 CỘT ===== */
.duhoc-row-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.duhoc-row-2 > div {
  min-width: 0;
}

.duhoc-row-2 span.wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

/* ===== INPUT TEXT / TEL / EMAIL ===== */
.duhoc-card .wpcf7-form-control.wpcf7-text,
.duhoc-card .wpcf7-form-control.wpcf7-tel,
.duhoc-card .wpcf7-form-control.wpcf7-email {
  width: 100% !important;
  border: 1.5px solid #cccccc;
  border-radius: 6px;
  padding: 9px 13px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.9rem;
  color: #333333;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box !important;
}

.duhoc-card .wpcf7-form-control.wpcf7-text:focus,
.duhoc-card .wpcf7-form-control.wpcf7-tel:focus,
.duhoc-card .wpcf7-form-control.wpcf7-email:focus {
  border-color: #e8a020;
}

.duhoc-card .wpcf7-form-control.wpcf7-text::placeholder,
.duhoc-card .wpcf7-form-control.wpcf7-tel::placeholder,
.duhoc-card .wpcf7-form-control.wpcf7-email::placeholder {
  color: #bbbbbb;
}

/* ===== SELECT DROPDOWN (thời gian) ===== */
.duhoc-card .wpcf7-select {
  width: 100% !important;
  border: 1.5px solid #cccccc;
  border-radius: 6px;
  padding: 9px 38px 9px 13px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.9rem;
  color: #333333;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-sizing: border-box !important;
  transition: border-color 0.2s;
}

.duhoc-card .wpcf7-select:focus {
  border-color: #e8a020;
}

/* ===== CHOICES.JS CUSTOM STYLE ===== */
.duhoc-card .choices {
  margin-bottom: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.duhoc-card .choices__inner {
  border: 1.5px solid #cccccc !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 6px 10px !important;
  min-height: 42px !important;
  font-size: 0.9rem !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  transition: border-color 0.2s !important;
}

.duhoc-card .choices.is-focused .choices__inner,
.duhoc-card .choices__inner:focus {
  border-color: #e8a020 !important;
  box-shadow: none !important;
}

/* Tag chip */
.duhoc-card .choices__list--multiple .choices__item {
  background-color: #144796 !important;
  border: 1px solid #dddddd !important;
  border-radius: 4px !important;
  color: #f9f9f9 !important;
  font-size: 0.82rem !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  padding: 3px 8px !important;
  margin: 2px 4px 2px 0 !important;
}

/* Nút x trên tag */

.duhoc-card .choices__list--multiple .choices__item .choices__button {
  border-left: 1px solid #cccccc !important;
  margin-left: 6px !important;
  padding-left: 8px !important;
  opacity: 0.6 !important;
  filter: none !important;
	
}

.duhoc-card .choices__list--multiple .choices__item .choices__button:hover {
  opacity: 1 !important;
}

/* Input gõ tìm kiếm */
.duhoc-card .choices__input {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 0.88rem !important;
  color: #333333 !important;
  background: transparent !important;
  padding: 2px 4px !important;
}

.duhoc-card .choices__input::placeholder {
  color: #bbbbbb !important;
}

/* Dropdown list */
.duhoc-card .choices__list--dropdown {
  border: 1.5px solid #e8a020 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
}

.duhoc-card .choices__list--dropdown .choices__item {
  font-size: 0.88rem !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  padding: 9px 14px !important;
  color: #333333 !important;
}

.duhoc-card .choices__list--dropdown .choices__item--highlighted {
  background-color: #fff4e0 !important;
  color: #e8a020 !important;
}

.duhoc-card .choices__list--dropdown .choices__item.is-selected {
  background-color: #fef9f0 !important;
  color: #e8a020 !important;
  font-weight: 600 !important;
}

/* Search input trong dropdown */
.duhoc-card .choices__list--dropdown .choices__input {
  border-bottom: 1.5px solid #eeeeee !important;
  padding: 8px 14px !important;
  font-size: 0.88rem !important;
}

/* ===== CONSENT CHECKBOX ===== */
.duhoc-consent {
  margin-bottom: 20px;
}

.duhoc-consent .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.duhoc-consent .wpcf7-acceptance input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: #e8a020;
  cursor: pointer;
}

.duhoc-consent .wpcf7-list-item {
  margin: 0;
}

.duhoc-consent .wpcf7-list-item-label {
  font-size: 0.8rem;
  color: #555555;
  line-height: 1.6;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.duhoc-consent .wpcf7-list-item-label a {
  color: #e8a020;
  text-decoration: none;
  font-weight: 600;
}

.duhoc-consent .wpcf7-list-item-label a:hover {
  text-decoration: underline;
}

/* ===== NÚT SUBMIT ===== */
.duhoc-card .wpcf7-submit {
  width: 100%;
  background: #e8a020;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  display: block;
  transition: background 0.2s, transform 0.15s;
}

.duhoc-card .wpcf7-submit:hover {
  background: #d4911a;
  transform: translateY(-2px);
}

.duhoc-card .wpcf7-submit:active {
  transform: translateY(0);
}

/* ===== VALIDATION LỖI ===== */
.duhoc-card .wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 0.76rem;
  margin-top: 4px;
  display: block;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.duhoc-card .wpcf7-form-control.wpcf7-not-valid {
  border-color: #e74c3c !important;
}

.duhoc-card .wpcf7-response-output {
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 540px) {
  .duhoc-card {
    padding: 24px 16px;
  }
  .duhoc-row-2 {
    grid-template-columns: 1fr !important;
  }
}
/* Ẩn ô input con bên trong Choices.js */
.duhoc-card .choices__input--cloned {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 2px 4px !important;
  width: 100% !important;
}

/* Khi chưa có tag nào, placeholder full width */
.duhoc-card .choices__inner {
  padding: 9px 13px !important;
}

/* Bỏ viền/nền thừa do Choices.js tạo */
.duhoc-card .choices__inner input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Dấu × màu đen */
.duhoc-card .choices__list--multiple .choices__item .choices__button::before {
  color: #000000 !important;
  opacity: 1 !important;
}

.duhoc-card .choices__list--multiple .choices__item .choices__button {
  color: #000000 !important;
  opacity: 1 !important;
}

/* ── CF7 Form ElitePass lien he  ── */
/* ══════════════════════════════
   ElitePass - Contact Form 7 CSS
   ══════════════════════════════ */

/* Reset CF7 default */
.wpcf7 br,
.wpcf7-form br { display: none !important; }
.wpcf7 p { margin: 0 !important; }
.wpcf7-form-control-wrap { display: block !important; }

/* Title & Subtitle */
.wpcf7 .ep-form-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #144449;
  letter-spacing: .05em;
  margin-bottom: 8px !important;
}
.wpcf7 .ep-form-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 24px !important;
}

/* Layout - 2 cột */
.wpcf7 .ep-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px;
  margin-bottom: 16px;
}
.wpcf7 .ep-col {
  flex: 1 1 0;
  min-width: 0;
}
.wpcf7 .ep-full {
  margin-bottom: 16px;
}

/* Labels */
.wpcf7 .ep-label {
  display: block !important;
  font-size: 13px;
  font-weight: 600;
  color: #144449;
  margin-bottom: 6px;
}
.wpcf7 .ep-required {
  color: #e53e3e;
  margin-left: 2px;
}

/* Fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  display: block !important;
  width: 100% !important;
  border: 1.5px solid #dde8e6 !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #222 !important;
  background: #fff !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color .2s;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: #144449 !important;
}
.wpcf7 textarea {
  min-height: 130px;
  resize: vertical;
}

/* Acceptance / Checkbox */
.wpcf7 .ep-accept {
  margin-bottom: 20px;
}
.wpcf7 .ep-accept .wpcf7-list-item {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
}
.wpcf7 .ep-accept .wpcf7-list-item input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #144449;
}
.wpcf7 .ep-accept .wpcf7-list-item label {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}
.wpcf7 .ep-accept a {
  color: #e8a020 !important;
  font-weight: 700;
  text-decoration: none;
}
.wpcf7 .ep-accept a:hover {
  text-decoration: underline;
}

/* Submit button */
.wpcf7 input[type="submit"] {
  display: block !important;
  width: 100% !important;
  background: #144449 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 15px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  cursor: pointer;
  transition: background .2s;
}
.wpcf7 input[type="submit"]:hover {
  background: #1d9e75 !important;
}

/* Mobile */
@media (max-width: 600px) {
  .wpcf7 .ep-row {
    flex-direction: column !important;
  }
}

/*
------------------------------------------------------------
CSS tùy chỉnh (thêm vào Appearance > Customize > Additional CSS
hoặc file CSS của theme):
------------------------------------------------------------
  */
/* CF7 Form Layout */
.cf7-row {
  margin-bottom: 20px;
}
.cf7-row.cf7-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cf7-row.cf7-col-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.cf7-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}
.cf7-field label .required {
  color: red;
}
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field input[type="date"],
.cf7-field select,
.cf7-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.cf7-field textarea {
  min-height: 120px;
  resize: vertical;
}
.cf7-consent {
  font-size: 13px;
  color: #555;
}
.wpcf7-submit {
  background-color: #e8a000;
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  text-transform: uppercase;
}
.wpcf7-submit:hover {
  background-color: #c98900;
}
h3.cf7-section-title,
.wpcf7-form h3 {
  color: #144449;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-top: 30px;
  margin-bottom: 20px;
	text-align: center;
}
 
@media (max-width: 768px) {
  .cf7-row.cf7-col-2,
  .cf7-row.cf7-col-3 {
    grid-template-columns: 1fr;
  }
}
 