/* =================================================================================================
   Form "Get your personalised trip quote" - trang /contact-us, dung chung web + mobi.
   Markup: themes/web/views/site/_contact_quote_form.php (dang ky file nay bang registerCssFile).
   Chi dung token --izi-* (themes/web/css/izi-tokens.css, AGENTS2 v3.0); moi rule nam duoi .contact-quote.
   Desktop/mobile khac nhau qua token (izi-tokens.css doi gia tri o <=767.98px).
   ================================================================================================= */
.contact-quote {
  display: grid;
  gap: var(--izi-space-24);
  font-family: var(--izi-font-family);
  color: var(--izi-color-text);
}
.contact-quote *,
.contact-quote *::before,
.contact-quote *::after {
  box-sizing: border-box;
}

/* Tieu de: H1 -> mo ta 12px. */
.contact-quote .contact-quote__header {
  display: grid;
  gap: var(--izi-space-12);
  text-align: center;
}
.contact-quote .contact-quote__title {
  margin: 0;
  font-family: inherit;
  font-size: var(--izi-font-h1);
  line-height: var(--izi-line-h1);
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
  color: var(--izi-color-text);
}
.contact-quote .contact-quote__intro {
  margin: 0;
  font-size: var(--izi-font-body);
  line-height: var(--izi-line-body);
  font-weight: 400;
  color: var(--izi-color-muted);
}

/* Nhom: giua hai nhom 32/24 + duong phan cach, ten nhom -> truong dau 12, giua hai truong 16. */
.contact-quote .contact-quote__form {
  display: grid;
  gap: var(--izi-section-gap);
  margin: 0;
}
.contact-quote .contact-quote__section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-quote .contact-quote__section + .contact-quote__section {
  padding-top: var(--izi-section-gap);
  border-top: 1px solid var(--izi-color-divider);
}
/* legend float de thoat che do "rendered legend" (nam de len vien tren cua fieldset): nho vay
   border-top + padding-top cua nhom sau ve dung duong phan cach, legend la khoi binh thuong. */
.contact-quote .contact-quote__legend {
  float: left;
  width: 100%;
  margin: 0 0 var(--izi-space-12);
  padding: 0;
  font-size: var(--izi-font-label);
  line-height: var(--izi-line-label);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--izi-color-muted);
}
.contact-quote .contact-quote__fields {
  clear: both;
  display: grid;
  gap: var(--izi-space-16);
}
.contact-quote .contact-quote__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--izi-space-16);
}
@media (max-width: 479.98px) {
  .contact-quote .contact-quote__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Danh xung | Ho ten: giu 2 cot o moi kho, cot danh xung rong theo lua chon dai nhat. */
.contact-quote .contact-quote__row--name {
  grid-template-columns: auto minmax(0, 1fr);
}

/* Truong nhap: label -> o nhap -> goi y/loi, cach nhau 8px. */
.contact-quote .contact-quote__field {
  display: grid;
  align-content: start;
  gap: var(--izi-space-8);
  margin: 0;
  padding: 0;
}
.contact-quote .contact-quote__label {
  display: block;
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: var(--izi-font-label);
  line-height: var(--izi-line-label);
  font-weight: 600;
  color: var(--izi-color-text);
}
/* Yii gan class .required cho field bat buoc (input da co aria-required). */
.contact-quote .contact-quote__field.required > .contact-quote__label::after {
  content: " *";
}
.contact-quote .contact-quote__input {
  display: block;
  width: 100%;
  height: var(--izi-control-standard);
  margin: 0;
  padding: 0 var(--izi-space-16);
  font-family: inherit;
  font-size: var(--izi-font-body);
  line-height: var(--izi-line-body);
  font-weight: 400;
  color: var(--izi-color-text);
  background: var(--izi-color-surface);
  border: 1px solid var(--izi-color-divider); /* vien nhat luc chua focus, hover dam hon, focus xanh (Minh chot 04/12/2026) */
  border-radius: var(--izi-radius-control);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease;
}
.contact-quote .contact-quote__input--textarea {
  height: auto;
  min-height: 144px;
  padding: var(--izi-space-12) var(--izi-space-16);
  resize: vertical;
}
.contact-quote .contact-quote__input--short {
  min-height: 96px;
}
/* Select (danh xung, quoc tich): an mui ten mac dinh, dung icon chevron cua UIkit. */
.contact-quote .contact-quote__select {
  position: relative;
}
.contact-quote .contact-quote__input--select {
  padding-right: var(--izi-space-40);
  text-overflow: ellipsis;
  cursor: pointer;
}
.contact-quote .contact-quote__select-chevron {
  position: absolute;
  top: 50%;
  right: var(--izi-space-12);
  display: inline-flex;
  color: var(--izi-color-muted);
  transform: translateY(-50%);
  pointer-events: none;
}
/* Chu goi y: mo hon chu khach nhap (Minh chot 04/12/2026). Select chua chon (prompt) cung mo nhu vay. */
.contact-quote .contact-quote__input::placeholder {
  color: var(--izi-color-muted);
  opacity: .65;
}
.contact-quote .contact-quote__input--select:has(option[value=""]:checked) {
  color: color-mix(in srgb, var(--izi-color-muted) 65%, transparent); /* mo 65% nhu placeholder */
}
.contact-quote .contact-quote__input--select option {
  color: var(--izi-color-text);
}
.contact-quote .contact-quote__input:hover {
  border-color: var(--izi-color-control-border);
}
/* O dang nhap: chi doi mau vien, khong ve vong outline ngoai (Minh chot 04/12/2026). */
.contact-quote .contact-quote__input:focus {
  border-color: var(--izi-color-focus);
  outline: none;
}
.contact-quote .contact-quote__field.has-error .contact-quote__input {
  border-color: var(--izi-color-danger);
}
.contact-quote .contact-quote__hint,
.contact-quote .contact-quote__error,
.contact-quote .contact-quote__dial-error {
  margin: 0;
  font-size: var(--izi-font-small);
  line-height: var(--izi-line-small);
}
.contact-quote .contact-quote__hint {
  color: var(--izi-color-muted);
}
.contact-quote .contact-quote__error,
.contact-quote .contact-quote__dial-error {
  color: var(--izi-color-danger);
}
.contact-quote .contact-quote__error:empty,
.contact-quote .contact-quote__dial-error:empty {
  display: none;
}

/* WhatsApp: o ma vung + o so. Select that (trong suot) nam tren khung hien "GB +44":
   danh sach mo ra van la ten nuoc day du, ban phim/trinh doc man hinh dung select goc. */
.contact-quote .contact-quote__phone {
  display: flex;
  gap: var(--izi-space-8);
}
.contact-quote .contact-quote__phone .contact-quote__input {
  flex: 1 1 auto;
  min-width: 0;
}
.contact-quote .contact-quote__dial {
  position: relative;
  flex: 0 0 auto;
  min-width: 112px;
}
.contact-quote .contact-quote__dial-select {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px; /* iOS khong zoom khi cham */
  opacity: 0;
  cursor: pointer;
}
.contact-quote .contact-quote__dial-display {
  display: flex;
  align-items: center;
  gap: var(--izi-space-8);
  height: var(--izi-control-standard);
  padding: 0 var(--izi-space-12) 0 var(--izi-space-16);
  font-size: var(--izi-font-body);
  line-height: var(--izi-line-body);
  white-space: nowrap;
  color: var(--izi-color-text);
  background: var(--izi-color-surface);
  border: 1px solid var(--izi-color-divider);
  border-radius: var(--izi-radius-control);
  transition: border-color .15s ease;
}
.contact-quote .contact-quote__dial-iso {
  font-size: var(--izi-font-caption);
  line-height: var(--izi-line-caption);
  font-weight: 600;
}
.contact-quote .contact-quote__dial-chevron {
  display: inline-flex;
  margin-left: auto;
  color: var(--izi-color-muted);
}
.contact-quote .contact-quote__dial:hover .contact-quote__dial-display {
  border-color: var(--izi-color-control-border);
}
.contact-quote .contact-quote__dial-select:focus + .contact-quote__dial-display {
  border-color: var(--izi-color-focus);
}

/* How did you find us: lua chon radio, vung bam cao 44px. */
.contact-quote .contact-quote__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--izi-space-16);
}
.contact-quote .contact-quote__choice {
  display: inline-flex;
  align-items: center;
  gap: var(--izi-space-8);
  width: auto;
  min-height: var(--izi-control-standard);
  margin: 0;
  font-size: var(--izi-font-body);
  line-height: var(--izi-line-body);
  font-weight: 400;
  color: var(--izi-color-text);
  cursor: pointer;
}
.contact-quote .contact-quote__choice input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--izi-color-primary);
  cursor: pointer;
}
.contact-quote .contact-quote__choice input[type="radio"]:focus-visible {
  outline: 2px solid var(--izi-color-focus);
  outline-offset: 2px;
}

/* reCaptcha v3 chi la input an: chi hien khi server bao loi. Honeypot luon an. */
.contact-quote .contact-quote__field--captcha:not(.has-error),
.contact-quote .contact-quote__trap {
  display: none;
}

/* Nut Send giu nhu form cu: .uk-button.uk-button-default cua UIkit, can giua (Minh chot 04/12/2026). */
.contact-quote .contact-quote__actions {
  display: flex;
  justify-content: center;
}
