/* May An Việt - Popup Báo Giá */
.mavq-shortcode-wrap {
  display: inline-flex;
  min-width: 0;
}

.mavq-open {
  cursor: pointer;
}


.mavq-shortcode-wrap > .mavq-open {
  margin: 0;
}


.mavq-modal,
.mavq-modal * {
  box-sizing: border-box;
}

.mavq-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mavq-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mavq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 24, 43, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mavq-dialog {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.22s ease;
  outline: none;
}

.mavq-modal.is-open .mavq-dialog {
  transform: translateY(0) scale(1);
}

.mavq-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(11, 53, 99, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0b3563;
  font: 400 27px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 7px 24px rgba(7, 39, 67, 0.1);
}

.mavq-close:hover {
  background: #f5a900;
  color: #072743;
}

.mavq-dialog-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.mavq-panel {
  position: relative;
  min-height: 100%;
  padding: 54px 42px;
  overflow: hidden;
  border-radius: 22px 0 0 22px;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 169, 0, 0.22), transparent 28%),
    linear-gradient(145deg, #072743 0%, #0b3563 58%, #174c7d 100%);
  color: #ffffff;
}

.mavq-panel::after {
  position: absolute;
  right: -85px;
  bottom: -95px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.mavq-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #f5a900;
  font-family: "Lato", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.mavq-kicker::before {
  width: 27px;
  height: 3px;
  border-radius: 20px;
  background: #f5a900;
  content: "";
}

.mavq-panel h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.mavq-panel > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Lato", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.mavq-support-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 11px;
  margin-top: 34px;
}

.mavq-support-list > div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.mavq-support-list span,
.mavq-support-list a {
  display: block;
  font-family: "Lato", Arial, sans-serif;
}

.mavq-support-list span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.mavq-support-list a {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.mavq-form-area {
  padding: 52px 44px 42px;
  background: #ffffff;
}

.mavq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin: 0;
}

.mavq-field-full {
  grid-column: 1 / -1;
}

.mavq-field label {
  display: block;
  margin-bottom: 7px;
  color: #0b3563;
  font-family: "Lato", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.mavq-field label em {
  color: #d58f00;
  font-style: normal;
}

.mavq-field input,
.mavq-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dbe5ed;
  border-radius: 9px;
  background: #fbfcfd;
  color: #202833;
  font-family: "Lato", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  outline: none;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mavq-field textarea {
  min-height: 105px;
  resize: vertical;
}

.mavq-field input:focus,
.mavq-field textarea:focus {
  border-color: #0b3563;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 53, 99, 0.09);
}

.mavq-field input[aria-invalid="true"],
.mavq-field textarea[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.mavq-form-footer {
  margin-top: 2px;
}

.mavq-submit {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  background: #f5a900;
  color: #072743;
  font-family: "Lato", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.mavq-submit:hover {
  background: #dc9700;
  transform: translateY(-1px);
}

.mavq-submit:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.mavq-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(7, 39, 67, 0.24);
  border-top-color: #072743;
  border-radius: 50%;
  animation: mavq-spin 0.7s linear infinite;
}

.mavq-form.is-loading .mavq-spinner {
  display: inline-block;
}

.mavq-privacy {
  margin: 10px 0 0;
  color: #657384;
  font-family: "Lato", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.mavq-status {
  display: none;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  font-family: "Lato", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.mavq-status.is-success,
.mavq-status.is-error {
  display: block;
}

.mavq-status.is-success {
  background: #eaf7ee;
  color: #176b35;
}

.mavq-status.is-error {
  background: #fff0ee;
  color: #a4261d;
}

.mavq-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.mavq-no-scroll {
  overflow: hidden !important;
}

@keyframes mavq-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 780px) {
  .mavq-modal {
    padding: 15px;
  }

  .mavq-dialog {
    max-height: calc(100vh - 30px);
    border-radius: 17px;
  }

  .mavq-dialog-grid {
    grid-template-columns: 1fr;
  }

  .mavq-panel {
    min-height: auto;
    padding: 34px 27px 29px;
    border-radius: 17px 17px 0 0;
  }

  .mavq-panel h3 {
    padding-right: 34px;
    font-size: 27px;
  }

  .mavq-support-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 23px;
  }

  .mavq-form-area {
    padding: 29px 25px 28px;
  }
}

@media (max-width: 540px) {
  .mavq-shortcode-wrap {
    width: 100%;
  }

  .mavq-shortcode-wrap > .mavq-open {
    width: 100%;
  }

  .mavq-modal {
    align-items: flex-end;
    padding: 0;
  }

  .mavq-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }

  .mavq-panel {
    padding: 30px 20px 24px;
    border-radius: 18px 18px 0 0;
  }

  .mavq-panel > p {
    font-size: 13px;
  }

  .mavq-support-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mavq-form-area {
    padding: 24px 18px 25px;
  }

  .mavq-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mavq-field-full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mavq-modal,
  .mavq-dialog,
  .mavq-submit,
  .mavq-field input,
  .mavq-field textarea {
    transition: none !important;
  }
}
