/*
 * MSB Mosquito Consultation Modal — WindowRepair visual frontend
 * Version: 1.7.6-front-only
 *
 * Backend names/endpoints are not changed:
 * - AJAX action: msb_mosquito_consult_send
 * - JS object: window.MSB_MOSQUITO_CONSULT
 * - Main modal ID: #msb-mosquito-consult-modal
 */

html.msb-send-modal-lock,
html.msb-send-modal-lock body,
body.msb-consult-modal-open,
body.msb-thanks-open {
  overflow: hidden !important;
}

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

.msb-send-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vw, 18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.msb-send-modal.is-visible,
.msb-send-modal.is-active,
#msb-mosquito-consult-modal.is-visible,
#msb-mosquito-consult-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.msb-send-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 206, 111, .18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(65, 135, 255, .14), transparent 34%),
    rgba(2, 7, 15, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== MODAL BODY ===== */

.msb-send-modal__body {
  position: relative;
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 216, 130, .13), transparent 32%),
    linear-gradient(135deg, #07111f 0%, #0b203a 48%, #07111f 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .09),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: translateY(14px) scale(.97);
  transition:
    transform .25s ease,
    opacity .25s ease,
    visibility .25s ease,
    filter .25s ease;
}

.msb-send-modal.is-visible .msb-send-modal__body,
.msb-send-modal.is-active .msb-send-modal__body {
  transform: translateY(0) scale(1);
}

.msb-send-modal__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .14);
  pointer-events: none;
}

.msb-send-modal__body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7, 17, 31, .98) 0%,
      rgba(7, 17, 31, .92) 34%,
      rgba(7, 17, 31, .62) 51%,
      rgba(7, 17, 31, .20) 72%,
      rgba(7, 17, 31, .08) 100%
    );
}

/* ===== CLOSE ===== */

.msb-send-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(4, 12, 23, .55);
  color: #fff !important;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
  transition: transform .2s ease, background .2s ease;
  padding: 0;
}

.msb-send-modal__close:hover {
  transform: rotate(90deg) scale(1.04);
  background: rgba(255, 255, 255, .16);
}

/* ===== CONTENT ===== */

.msb-send-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 360px;
}

.msb-send-modal-columns,
.msb-send-modal .columns {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(320px, 1.05fr);
  min-height: 360px;
}

/* ===== LEFT SIDE ===== */

.msb-send-modal-left {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 32px);
}

.msb-send-modal-header {
  margin-bottom: 16px;
}

.msb-send-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 10px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: rgba(255, 216, 130, .13);
  border: 1px solid rgba(255, 216, 130, .25);
  color: #ffd978;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.msb-send-modal-header h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.045em;
  text-shadow: 0 14px 36px rgba(0, 0, 0, .38);
}

.msb-send-modal-header h2 span {
  color: #ffd978;
}

.msb-send-modal-header p {
  max-width: 390px;
  margin: 0;
  color: rgba(242, 247, 255, .82);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 550;
}

.msb-send-modal-form-area {
  width: 100%;
}

.msb-send-modal__panel {
  max-width: 390px;
  padding: 0;
}

.msb-send-modal__form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.msb-send-modal__hidden,
.msb-send-modal .msb-consult-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

.msb-send-modal .webform__field,
.msb-send-modal__field {
  margin: 0;
}

.msb-send-modal__control,
.msb-send-modal .webform__control {
  position: relative;
}

/* ===== INPUTS ===== */

.msb-send-modal__field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 3;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #b98522;
  transform: translateY(-50%);
  pointer-events: none;
}

.msb-send-modal__field-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

.msb-send-modal__phone-prefix {
  position: absolute;
  left: 43px;
  top: 50%;
  z-index: 3;
  height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(223, 172, 64, .18), rgba(255, 224, 138, .30));
  color: #765313;
  font-size: 12px;
  font-weight: 950;
  transform: translateY(-50%);
  pointer-events: none;
}

.msb-send-modal .wr-promo-input,
.msb-send-modal input[name="name"],
.msb-send-modal input[name="phone"],
.msb-send-modal input[name="msb_name"],
.msb-send-modal input[name="msb_phone"] {
  width: 100%;
  height: 47px;
  min-height: 47px;
  border-radius: 14px;
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(238, 244, 255, .96));
  border: 1px solid rgba(255, 220, 139, .38);
  color: #0b1320 !important;
  font-size: 14px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 24px rgba(0, 0, 0, .20);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.msb-send-modal input[name="name"],
.msb-send-modal input[name="msb_name"] {
  padding: 0 14px 0 45px;
}

.msb-send-modal input[name="phone"],
.msb-send-modal input[name="msb_phone"] {
  padding: 0 14px 0 101px;
  letter-spacing: .02em;
}

.msb-send-modal .wr-promo-input::placeholder {
  color: #7d8795;
  opacity: 1;
  font-weight: 700;
}

.msb-send-modal .wr-promo-input:focus {
  border-color: #ffd978;
  box-shadow:
    0 0 0 3px rgba(255, 217, 120, .20),
    0 14px 34px rgba(0, 0, 0, .28);
  transform: translateY(-1px);
}

/* ===== BUTTON ===== */

.msb-send-modal .webform__footer {
  margin-top: 2px;
}

.msb-send-modal__submit,
.msb-send-modal__success-close {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #c98b21 0%, #ffd978 50%, #f0b23b 100%);
  color: #241700 !important;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    0 15px 34px rgba(142, 91, 10, .32);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.msb-send-modal__submit:hover,
.msb-send-modal__success-close:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .70),
    0 18px 40px rgba(142, 91, 10, .40);
}

.msb-send-modal__submit:disabled {
  cursor: wait;
  opacity: .86;
  transform: none;
}

.msb-send-modal__submit.is-loading {
  color: transparent !important;
}

.msb-send-modal__submit.is-loading::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  top: 50%;
  left: 50%;
  margin-top: -10.5px;
  margin-left: -10.5px;
  border: 3px solid rgba(45, 29, 0, .24);
  border-top-color: #2d1d00;
  border-radius: 50%;
  animation: msb-send-spin .85s linear infinite;
}

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

/* ===== MESSAGE ===== */

.msb-send-modal__message {
  min-height: 16px;
  color: rgba(245, 249, 255, .86);
  font-size: 12.5px;
  font-weight: 720;
}

.msb-send-modal__message.is-error,
.msb-send-modal .msb-consult-status.is-error {
  color: #ffd0d0;
}

.msb-send-modal__message.is-success,
.msb-send-modal .msb-consult-status.is-success {
  color: #b9ffcb;
}

/* ===== VIDEO SIDE ===== */

.msb-send-modal-right {
  position: relative;
  z-index: 2;
  min-height: 360px;
  overflow: hidden;
}

.msb-send-modal-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100px;
  bottom: 0;
  z-index: 4;
  width: 190px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7, 17, 31, .98) 0%,
      rgba(7, 17, 31, .68) 45%,
      rgba(7, 17, 31, .18) 78%,
      transparent 100%
    );
}

.msb-send-modal-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 22px 22px 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(42, 116, 210, .62), transparent 36%),
    linear-gradient(135deg, #07111f 0%, #0f3f78 55%, #102f59 100%);
}

.msb-send-modal-video video,
.msb-send-modal-video img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.04) brightness(.88);
}

.msb-send-modal-video__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .78) 0%, rgba(7, 17, 31, .24) 46%, rgba(7, 17, 31, .28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .42) 100%);
}

.msb-send-modal-video__phone {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(8, 18, 32, .48);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .90);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
}

.msb-send-modal-video__badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  min-width: 160px;
  padding: 11px 13px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(8, 18, 32, .52), rgba(255, 255, 255, .12));
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

.msb-send-modal-video__badge strong,
.msb-send-modal-video__badge span {
  display: block;
}

.msb-send-modal-video__badge strong {
  color: #ffd978;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  margin-bottom: 5px;
}

.msb-send-modal-video__badge span {
  color: rgba(255, 255, 255, .90);
  font-size: 12px;
  font-weight: 800;
}

/* ===== OPEN BUTTONS ===== */

.msb-consult-open-btn,
#msb-send-service:not(.msb-send-modal),
[data-msb-consult-open] {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c98b21 0%, #ffd978 50%, #f0b23b 100%);
  color: #241700 !important;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 15px 34px rgba(142, 91, 10, .28);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.msb-consult-open-btn:hover,
#msb-send-service:not(.msb-send-modal):hover,
[data-msb-consult-open]:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 40px rgba(142, 91, 10, .36);
}

/* ===== MEDIUM DESKTOP / SMALL LAPTOP ===== */

@media (max-width: 1100px) {
  .msb-send-modal__body {
    width: min(800px, calc(100vw - 26px));
  }

  .msb-send-modal-content,
  .msb-send-modal-columns,
  .msb-send-modal .columns {
    min-height: 340px;
  }

  .msb-send-modal-right {
    min-height: 340px;
  }

  .msb-send-modal-left {
    padding: 26px 28px;
  }

  .msb-send-modal-header h2 {
    font-size: clamp(24px, 3vw, 32px);
  }
}

/* ===== TABLET ===== */

@media (max-width: 820px) {
  .msb-send-modal {
    align-items: center;
    padding: 10px;
  }

  .msb-send-modal__body {
    width: min(560px, calc(100vw - 16px));
    max-height: calc(100vh - 14px);
    max-height: calc(100dvh - 14px);
    overflow: auto;
    border-radius: 20px;
    overscroll-behavior: contain;
  }

  .msb-send-modal__body::after {
    background:
      linear-gradient(
        180deg,
        rgba(7, 17, 31, .16) 0%,
        rgba(7, 17, 31, .70) 30%,
        rgba(7, 17, 31, .98) 52%,
        rgba(7, 17, 31, .98) 100%
      );
  }

  .msb-send-modal-columns,
  .msb-send-modal .columns {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .msb-send-modal-left {
    order: 2;
    padding: 22px 20px 20px;
  }

  .msb-send-modal-right {
    order: 1;
    min-height: 175px;
  }

  .msb-send-modal-right::before {
    display: none;
  }

  .msb-send-modal-video {
    border-radius: 20px 20px 0 0;
  }

  .msb-send-modal-video__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(7, 17, 31, .78)),
      radial-gradient(circle at 76% 20%, rgba(255, 217, 120, .13), transparent 36%);
  }

  .msb-send-modal__panel,
  .msb-send-modal-header p {
    max-width: none;
  }

  .msb-send-modal-header h2 {
    font-size: clamp(25px, 6vw, 34px);
  }
}

/* ===== PHONE ===== */

@media (max-width: 520px) {
  .msb-send-modal {
    padding: 6px;
  }

  .msb-send-modal__body {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
    max-height: calc(100dvh - 10px);
    border-radius: 17px;
  }

  .msb-send-modal__close {
    top: 9px;
    right: 9px;
    width: 34px;
    height: 34px;
    font-size: 25px;
  }

  .msb-send-modal-left {
    padding: 20px 13px 16px;
  }

  .msb-send-modal-right {
    min-height: 135px;
  }

  .msb-send-modal-video,
  .msb-send-modal-video video,
  .msb-send-modal-video img {
    border-radius: 17px 17px 0 0;
  }

  .msb-send-modal-header {
    margin-bottom: 13px;
  }

  .msb-send-modal__eyebrow {
    min-height: 22px;
    padding: 4px 9px;
    font-size: 9px;
    margin-bottom: 8px;
  }

  .msb-send-modal-header h2 {
    margin-bottom: 8px;
    font-size: clamp(22px, 7vw, 28px);
    letter-spacing: -.04em;
  }

  .msb-send-modal-header p {
    font-size: 12.5px;
    line-height: 1.42;
  }

  .msb-send-modal__form {
    gap: 9px;
  }

  .msb-send-modal .wr-promo-input,
  .msb-send-modal input[name="name"],
  .msb-send-modal input[name="phone"],
  .msb-send-modal input[name="msb_name"],
  .msb-send-modal input[name="msb_phone"] {
    height: 44px;
    min-height: 44px;
    border-radius: 12px;
    font-size: 13px;
  }

  .msb-send-modal__submit,
  .msb-send-modal__success-close {
    min-height: 45px;
    border-radius: 12px;
    font-size: 13.5px;
  }

  .msb-send-modal__field-icon {
    left: 12px;
  }

  .msb-send-modal__phone-prefix {
    left: 40px;
    height: 24px;
    font-size: 11px;
    padding: 0 7px;
  }

  .msb-send-modal input[name="name"],
  .msb-send-modal input[name="msb_name"] {
    padding-left: 42px;
  }

  .msb-send-modal input[name="phone"],
  .msb-send-modal input[name="msb_phone"] {
    padding-left: 94px;
  }

  .msb-send-modal-video__phone {
    display: none;
  }

  .msb-send-modal-video__badge {
    right: 12px;
    bottom: 12px;
    min-width: 138px;
    padding: 9px 10px;
    border-radius: 13px;
  }

  .msb-send-modal-video__badge strong {
    font-size: 16px;
  }

  .msb-send-modal-video__badge span {
    font-size: 11px;
  }
}

/* ===== VERY SMALL PHONE ===== */

@media (max-width: 380px) {
  .msb-send-modal-right {
    min-height: 115px;
  }

  .msb-send-modal-left {
    padding: 17px 11px 14px;
  }

  .msb-send-modal-header h2 {
    font-size: 21px;
  }

  .msb-send-modal-header p {
    font-size: 12px;
  }

  .msb-send-modal-video__badge {
    display: none;
  }
}

/* ===== LOW HEIGHT SCREENS / LAPTOPS ===== */

@media (max-height: 620px) and (min-width: 821px) {
  .msb-send-modal__body {
    width: min(780px, calc(100vw - 24px));
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
  }

  .msb-send-modal-content,
  .msb-send-modal-columns,
  .msb-send-modal .columns {
    min-height: 310px;
  }

  .msb-send-modal-right {
    min-height: 310px;
  }

  .msb-send-modal-left {
    padding: 20px 26px;
  }

  .msb-send-modal-header {
    margin-bottom: 12px;
  }

  .msb-send-modal-header h2 {
    font-size: clamp(23px, 2.7vw, 30px);
  }

  .msb-send-modal-header p {
    font-size: 12.5px;
    line-height: 1.35;
  }

  .msb-send-modal .wr-promo-input,
  .msb-send-modal input[name="name"],
  .msb-send-modal input[name="phone"],
  .msb-send-modal input[name="msb_name"],
  .msb-send-modal input[name="msb_phone"] {
    height: 43px;
    min-height: 43px;
  }

  .msb-send-modal__submit,
  .msb-send-modal__success-close {
    min-height: 44px;
  }
}

/* ===== FLOATING THANK YOU WINDOW — REAL CENTER FIX ===== */

.msb-send-modal.is-success-mode {
  display: flex;
  align-items: center;
  justify-content: center;
}

.msb-send-modal.is-success-mode .msb-send-modal__body {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.92);
  filter: blur(6px);
}

.msb-send-thankyou-window {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2147483100;
  width: min(360px, calc(100vw - 34px));
  padding: 26px 24px 24px;
  border-radius: 24px;
  text-align: center;
  color: #101522;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 217, 120, .38), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(235, 243, 255, .96));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .50),
    0 0 0 1px rgba(255, 255, 255, .72),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%) scale(.90);
  transition:
    opacity .28s ease,
    transform .28s ease;
}

.msb-send-thankyou-window.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.msb-send-thankyou-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(255, 217, 120, .85),
      rgba(255, 255, 255, .35),
      rgba(73, 145, 255, .35)
    );
}

.msb-send-thankyou-window__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14a767, #25d083);
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  box-shadow:
    0 16px 34px rgba(20, 167, 103, .36),
    inset 0 1px 0 rgba(255, 255, 255, .35);
}

.msb-send-thankyou-window h3 {
  margin: 0 0 9px;
  color: #101522;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -.035em;
}

.msb-send-thankyou-window p {
  margin: 0 0 7px;
  color: #2f3948;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 750;
}

.msb-send-thankyou-window span {
  display: block;
  margin-top: 8px;
  color: #697386;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.msb-send-thankyou-window .msb-send-modal__success-close {
  margin-top: 16px;
}

@media (max-width: 520px) {
  .msb-send-thankyou-window {
    width: min(330px, calc(100vw - 24px));
    padding: 23px 18px 21px;
    border-radius: 21px;
  }

  .msb-send-thankyou-window__icon {
    width: 56px;
    height: 56px;
    font-size: 31px;
  }

  .msb-send-thankyou-window h3 {
    font-size: 25px;
  }

  .msb-send-thankyou-window p {
    font-size: 14px;
  }

  .msb-send-thankyou-window span {
    font-size: 12.5px;
  }
}

/* ============================================================
   INLINE CONSULT FORM SHORTCODE / HTML BLOCK SUPPORT
   Старые shortcodes остаются рабочими, но дизайн не конфликтует с модалкой.
   ============================================================ */

.msb-consult-inline-form,
.msb-consult-inline-form * {
  box-sizing: border-box;
}

.msb-consult-inline-form {
  width: 100%;
  max-width: 760px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 217, 120, 0.32);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 217, 120, 0.18), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0b203a 48%, #07111f 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #fff;
}

.msb-consult-inline-head {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.msb-consult-inline-head strong {
  color: #fff;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.4px;
}

.msb-consult-inline-head span {
  color: rgba(242, 247, 255, .82);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

.msb-consult-inline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.msb-consult-inline-field {
  display: grid;
  gap: 6px;
}

.msb-consult-inline-field span {
  color: rgba(242, 247, 255, .86);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.msb-consult-inline-field input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 220, 139, .38);
  border-radius: 14px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(238, 244, 255, .96));
  color: #0b1320;
  font-size: 15px;
  font-weight: 750;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.msb-consult-inline-field input:focus {
  border-color: #ffd978;
  box-shadow: 0 0 0 4px rgba(255, 217, 120, .18);
}

.msb-consult-inline-submit {
  min-width: 170px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: linear-gradient(135deg, #c98b21 0%, #ffd978 50%, #f0b23b 100%);
  color: #241700;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(142, 91, 10, .28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.msb-consult-inline-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(142, 91, 10, .38);
}

.msb-consult-inline-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.msb-consult-inline-form .msb-consult-status {
  min-height: 20px;
  margin-top: 10px;
  color: #ffd978;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

.msb-consult-inline-form .msb-consult-status.is-error,
[data-msb-consult-status].is-error {
  color: #ffd0d0;
}

.msb-consult-inline-form .msb-consult-status.is-success,
[data-msb-consult-status].is-success {
  color: #b9ffcb;
}

@media (max-width: 760px) {
  .msb-consult-inline-form {
    padding: 16px;
    border-radius: 20px;
  }

  .msb-consult-inline-grid {
    grid-template-columns: 1fr;
  }

  .msb-consult-inline-submit {
    width: 100%;
  }
}


/* ============================================================
   1.7.9 — WINDOW REPAIR: FINAL ICON CENTER + PC/TABLET/MOBILE
   ============================================================ */

#msb-mosquito-consult-modal .webform__field,
#msb-mosquito-consult-modal .msb-send-modal__field {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

#msb-mosquito-consult-modal .msb-send-modal__control,
#msb-mosquito-consult-modal .webform__control {
  position: relative !important;
  width: 100% !important;
  height: 47px !important;
  min-height: 47px !important;
  display: block !important;
  line-height: 47px !important;
}

#msb-mosquito-consult-modal .wr-promo-input,
#msb-mosquito-consult-modal input[name="name"],
#msb-mosquito-consult-modal input[name="phone"],
#msb-mosquito-consult-modal input[name="msb_name"],
#msb-mosquito-consult-modal input[name="msb_phone"] {
  height: 47px !important;
  min-height: 47px !important;
  max-height: 47px !important;
  line-height: 47px !important;
  display: block !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

#msb-mosquito-consult-modal .msb-send-modal__field-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transform: translate3d(0, -50%, 0) !important;
  pointer-events: none !important;
}

#msb-mosquito-consult-modal .msb-send-modal__field-icon svg {
  position: static !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

#msb-mosquito-consult-modal .msb-send-modal__phone-prefix {
  position: absolute !important;
  left: 43px !important;
  top: 50% !important;
  bottom: auto !important;
  z-index: 5 !important;
  height: 25px !important;
  min-height: 25px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 25px !important;
  margin: 0 !important;
  transform: translate3d(0, -50%, 0) !important;
  pointer-events: none !important;
}

#msb-mosquito-consult-modal input[name="name"],
#msb-mosquito-consult-modal input[name="msb_name"] {
  padding: 0 14px 0 45px !important;
}

#msb-mosquito-consult-modal input[name="phone"],
#msb-mosquito-consult-modal input[name="msb_phone"] {
  padding: 0 14px 0 101px !important;
}

#msb-mosquito-consult-modal .msb-send-modal-video__phone {
  display: none !important;
}

/* PC / desktop */
@media (min-width: 821px) {
  #msb-mosquito-consult-modal .msb-send-modal__body {
    width: min(860px, calc(100vw - 28px)) !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-content,
  #msb-mosquito-consult-modal .msb-send-modal-columns,
  #msb-mosquito-consult-modal .columns {
    min-height: 360px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-right {
    min-height: 360px !important;
  }
}

/* Tablet */
@media (max-width: 820px) {
  #msb-mosquito-consult-modal.msb-send-modal {
    align-items: center !important;
    padding: 10px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal__body {
    width: min(560px, calc(100vw - 16px)) !important;
    max-height: calc(100dvh - 14px) !important;
    overflow: auto !important;
    border-radius: 20px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-columns,
  #msb-mosquito-consult-modal .columns {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-left {
    order: 2 !important;
    padding: 22px 20px 20px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-right {
    order: 1 !important;
    min-height: 175px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-video {
    border-radius: 20px 20px 0 0 !important;
  }
}

/* Mobile phone */
@media (max-width: 520px) {
  #msb-mosquito-consult-modal.msb-send-modal {
    padding: 6px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal__body {
    width: calc(100vw - 10px) !important;
    max-height: calc(100dvh - 10px) !important;
    border-radius: 17px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-left {
    padding: 20px 13px 16px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-right {
    min-height: 135px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal__control,
  #msb-mosquito-consult-modal .webform__control {
    height: 44px !important;
    min-height: 44px !important;
    line-height: 44px !important;
  }

  #msb-mosquito-consult-modal .wr-promo-input,
  #msb-mosquito-consult-modal input[name="name"],
  #msb-mosquito-consult-modal input[name="phone"],
  #msb-mosquito-consult-modal input[name="msb_name"],
  #msb-mosquito-consult-modal input[name="msb_phone"] {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 44px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal__field-icon {
    left: 12px !important;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal__field-icon svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal__phone-prefix {
    left: 40px !important;
    height: 24px !important;
    min-height: 24px !important;
    line-height: 24px !important;
    font-size: 11px !important;
    padding: 0 7px !important;
  }

  #msb-mosquito-consult-modal input[name="name"],
  #msb-mosquito-consult-modal input[name="msb_name"] {
    padding-left: 42px !important;
  }

  #msb-mosquito-consult-modal input[name="phone"],
  #msb-mosquito-consult-modal input[name="msb_phone"] {
    padding-left: 94px !important;
  }
}

/* Very small mobile */
@media (max-width: 380px) {
  #msb-mosquito-consult-modal .msb-send-modal-right {
    min-height: 115px !important;
  }

  #msb-mosquito-consult-modal .msb-send-modal-header h2 {
    font-size: 21px !important;
  }
}

/* Low-height desktop/laptop */
@media (max-height: 620px) and (min-width: 821px) {
  #msb-mosquito-consult-modal .msb-send-modal__control,
  #msb-mosquito-consult-modal .webform__control {
    height: 43px !important;
    min-height: 43px !important;
    line-height: 43px !important;
  }

  #msb-mosquito-consult-modal .wr-promo-input,
  #msb-mosquito-consult-modal input[name="name"],
  #msb-mosquito-consult-modal input[name="phone"],
  #msb-mosquito-consult-modal input[name="msb_name"],
  #msb-mosquito-consult-modal input[name="msb_phone"] {
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    line-height: 43px !important;
  }
}
