.wmf-widget,
.wmf-widget * {
  box-sizing: border-box;
}

.wmf-overlay[hidden],
.wmf-step[hidden] {
  display: none !important;
}

.wmf-floating-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: #25d366 !important;
  color: #fff !important;
  cursor: pointer;
  z-index: 99998;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wmf-floating-button:hover,
.wmf-floating-button:focus {
  background: #25d366 !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
}

.wmf-floating-button svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.wmf-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px 24px 96px;
  background: rgba(0, 0, 0, .58);
}

.wmf-modal {
  width: min(560px, calc(100vw - 48px));
  background: #fff;
  position: relative;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  animation: wmfIn .18s ease-out;
}

@keyframes wmfIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wmf-header {
  background: #24584f;
  color: #fff !important;
  padding: 18px 46px 18px 20px;
}

.wmf-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  color: #fff !important;
  font-weight: 600;
}

.wmf-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent !important;
  color: #fff !important;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.wmf-close:hover,
.wmf-close:focus {
  background: transparent !important;
  color: #fff !important;
}

.wmf-body {
  padding: 20px;
}

.wmf-form {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}

.wmf-question {
  margin: 0 0 16px;
  color: #333;
  font-size: 16px;
  line-height: 1.45;
}

.wmf-option,
.wmf-submit,
.wmf-back {
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: filter .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;
}

.wmf-option,
.wmf-submit {
  width: 100%;
  background: #51a54b !important;
  color: #fff !important;
  padding: 15px 18px;
  margin-top: 10px;
  font-weight: 600;
}

.wmf-option.wmf-block {
  background: #5f6f6b !important;
}

.wmf-option:hover,
.wmf-option:focus,
.wmf-submit:hover,
.wmf-submit:focus {
  background: #21459e !important;
  color: #fff !important;
  filter: none !important;
}

.wmf-field {
  min-width: 0;
}

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

.wmf-field label,
.wmf-purpose-field legend {
  display: block;
  color: #000;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 7px;
  padding: 0;
}

.wmf-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  background: #fff;
  color: #333;
  padding: 10px 14px;
  margin: 0;
  font-size: 15px;
}

.wmf-field input:focus,
.wmf-purpose-field input:focus {
  outline: 2px solid rgba(33, 69, 158, .22);
  border-color: #21459e;
}

.wmf-phone-row {
  display: flex;
  width: 100%;
}

.wmf-phone-row input {
  border-radius: 0 6px 6px 0;
}

.wmf-country {
  width: 60px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe2ea;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #fff;
  font-size: 20px;
}

.wmf-purpose-field {
  border: 0;
  padding: 0;
  margin: 0;
}

.wmf-purpose-options {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wmf-purpose-field label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
  width: auto;
  flex: 1 1 0;
  min-height: 46px;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  padding: 10px 14px;
  background: #fff;
}

.wmf-purpose-field input[type="radio"] {
  width: auto !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wmf-submit {
  grid-column: 1 / -1;
  margin-top: 2px;
  min-height: 48px;
}

.wmf-back {
  width: auto;
  background: transparent !important;
  color: #24584f !important;
  padding: 0 20px 18px;
  text-align: left;
  font-size: 14px;
}

.wmf-back:hover,
.wmf-back:focus,
.wmf-back:active {
  background: transparent !important;
  color: #21459e !important;
  filter: none !important;
  box-shadow: none !important;
}

.wmf-step-thanks .wmf-back {
  padding: 14px 0 0;
}

.wmf-hidden-fields {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.wmf-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .wmf-floating-button {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
  }

  .wmf-floating-button svg {
    width: 38px;
    height: 38px;
  }

  .wmf-overlay {
    padding: 16px 16px 84px;
  }

  .wmf-modal {
    width: 100%;
  }

  .wmf-form {
    grid-template-columns: 1fr;
  }

  .wmf-purpose-options {
    flex-direction: column;
    align-items: stretch;
  }
}

.wmf-submit:disabled,
.wmf-submit[aria-disabled="true"] {
  background: #9aa7b4 !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  opacity: .72;
  transform: none !important;
  filter: none !important;
}

.wmf-submit:disabled:hover,
.wmf-submit[aria-disabled="true"]:hover,
.wmf-submit:disabled:focus,
.wmf-submit[aria-disabled="true"]:focus {
  background: #9aa7b4 !important;
  color: #ffffff !important;
  transform: none !important;
  filter: none !important;
}

.wmf-error-note {
  display: block;
  margin-top: 5px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.wmf-field-missing input,
.wmf-field-missing .wmf-phone-row input,
.wmf-field-missing .wmf-country,
.wmf-field-missing .wmf-purpose-options label {
  border-color: #d92d20 !important;
}
