/* Phần thêm cho website chạy thật: ô nhập, nút, menu điện thoại. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

input.field-box,
select.field-box {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: #1B2420;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}

input.field-box::placeholder {
  color: #8A938C;
}

input.field-box:focus,
select.field-box:focus {
  border-color: #0E9F4F;
  box-shadow: 0 0 0 3px rgba(14, 159, 79, 0.18);
}

.field-box.is-error {
  border-color: #E3262F;
  box-shadow: 0 0 0 3px rgba(227, 38, 47, 0.15);
}

label.field-label {
  display: block;
}

button.btn-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

button.btn-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-msg {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.form-msg:empty {
  display: none;
}

.form-msg.is-ok {
  color: #0A5C33;
  font-weight: 700;
}

.form-msg.is-err {
  color: #C21C24;
  font-weight: 600;
}

.form-msg a {
  color: inherit;
  text-decoration: underline;
}

select.calc-select {
  max-width: 100%;
  cursor: pointer;
}

button.menu-icon {
  background: transparent;
  border: 0;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .site-header.nav-open .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 6px 24px 18px;
    background-color: #FFFFFF;
    box-shadow: 0 12px 24px rgba(10, 92, 51, 0.18);
  }
  .site-header.nav-open .nav-link,
  .site-header.nav-open .nav-link-active,
  .site-header.nav-open .nav-drop-label,
  .site-header.nav-open .nav-drop-label-active {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid #EEF2EF;
    font-size: 15px;
  }
  .site-header.nav-open .drop-panel {
    position: static;
    width: auto;
    padding: 4px 0 8px 14px;
    border-top: 0;
    box-shadow: none;
  }
}

/* Trang 404 */
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Menu 7 mục trên laptop nhỏ: không cho chữ xuống dòng */
.nav-link, .nav-link-active, .nav-drop-label, .nav-drop-label-active { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1280px) {
  .site-header { padding-left: 24px; padding-right: 24px; }
  .main-nav { gap: 12px; }
  .nav-link, .nav-link-active, .nav-drop-label, .nav-drop-label-active { font-size: 12px; }
  .header-cta { padding: 10px 14px; font-size: 12px; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .site-header { padding-left: 16px; padding-right: 16px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .brand-small { font-size: 11px; white-space: nowrap; }
  .main-nav { gap: 10px; }
  .nav-link, .nav-link-active, .nav-drop-label, .nav-drop-label-active { font-size: 11px; }
  .header-cta { padding: 9px 12px; font-size: 11px; white-space: nowrap; }
}
