.mhsp {
  width: 100%;
  font-family: Montserrat, sans-serif;
}

.mhsp .mhsp-trigger-wrap {
  display: flex;
}

.mhsp--responsive .mhsp-trigger-wrap {
  justify-content: center;
}

.mhsp .mhsp-submit {
  background-image: linear-gradient(90deg, #f05c6a 0%, #ff995a 100%);
}

.mhsp .mhsp-trigger,
.mhsp-trigger-shortcode .mhsp-trigger,
.mhsp .mhsp-submit {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  padding: 8px 16px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  font-family: "Varela Round", sans-serif;
}

.mhsp--responsive .mhsp-trigger {
  padding: 10px 24px;
  background-color: #ff7658;
}

.mhsp-trigger-shortcode.mhsp--responsive .mhsp-trigger {
  padding: 10px 24px;
  background-color: #ff7658;
}

.mhsp--popup .mhsp-trigger,
.mhsp-trigger-shortcode.mhsp--popup .mhsp-trigger {
  padding: 8px 20px;
  border: 1px solid #ff7658;
  background-color: #fff;
  color: #ff7658;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-transform: none;
}

.mhsp--popup .mhsp-trigger:hover,
.mhsp--popup .mhsp-trigger:focus,
.mhsp-trigger-shortcode.mhsp--popup .mhsp-trigger:hover,
.mhsp-trigger-shortcode.mhsp--popup .mhsp-trigger:focus {
  background-color: #ff7658;
  color: #fff;
}

.mhsp .mhsp-trigger:hover,
.mhsp .mhsp-trigger:focus,
.mhsp-trigger-shortcode .mhsp-trigger:hover,
.mhsp-trigger-shortcode .mhsp-trigger:focus,
.mhsp .mhsp-submit:hover,
.mhsp .mhsp-submit:focus {
  opacity: 0.92;
}

.mhsp .mhsp-trigger:active,
.mhsp-trigger-shortcode .mhsp-trigger:active,
.mhsp .mhsp-submit:active {
  transform: translateY(1px);
}

.mhsp .mhsp-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.mhsp .mhsp-modal[hidden] {
  display: none;
}

.mhsp .mhsp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.mhsp .mhsp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 24, 0.48);
  backdrop-filter: blur(1px);
}

.mhsp .mhsp-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 680px);
  max-height: 90vh;
  overflow: auto;
  margin: 0;
  padding: 30px 36px 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  box-sizing: border-box;
  box-shadow: 0 18px 50px rgba(29, 24, 20, 0.22);
}

.mhsp .mhsp-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: transparent;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
}

.mhsp .mhsp-close::before,
.mhsp .mhsp-close::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 10px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ff7658;
}

.mhsp .mhsp-close::before {
  transform: rotate(45deg);
}

.mhsp .mhsp-close::after {
  transform: rotate(-45deg);
}

.mhsp .mhsp-header {
  margin-bottom: 24px;
}

.mhsp .mhsp-success[hidden] {
  display: none;
}

.mhsp .mhsp-success {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  text-align: center;
}

.mhsp .mhsp-success-logo {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
}

.mhsp .mhsp-success-text {
  max-width: 430px;
  margin: 0;
  color: #404041;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.mhsp .mhsp-title {
  margin: 0 0 8px;
  color: #404041;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.mhsp .mhsp-intro {
  margin: 0;
  color: #404041;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.mhsp--popup .mhsp-intro {
  color: #a0a0a0;
  font-weight: 600;
}

.mhsp .mhsp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mhsp .mhsp-field {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.mhsp .mhsp-field-full {
  margin: 0;
  padding: 0;
  border: 0;
}

.mhsp .mhsp-field label,
.mhsp .mhsp-field legend {
  display: block;
  margin: 0 0 8px;
  color: #404041;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.mhsp .mhsp-field label span {
  color: #dc2627;
}

.mhsp .mhsp-optional {
  color: #b6b6b6;
  font-weight: 600;
}

.mhsp .mhsp-field input[type="text"],
.mhsp .mhsp-field input[type="email"],
.mhsp .mhsp-field input[type="tel"],
.mhsp .mhsp-field input[type="url"],
.mhsp .mhsp-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  color: #404041;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mhsp .mhsp-field input::placeholder,
.mhsp .mhsp-field textarea::placeholder {
  color: #c7c7c7;
}

.mhsp .mhsp-field textarea {
  min-height: 104px;
  resize: none;
  overflow: auto;
}

.mhsp .mhsp-field input:focus,
.mhsp .mhsp-field textarea:focus {
  outline: none;
  border-color: #ee7c1b;
  box-shadow: 0 0 0 3px rgba(240, 92, 106, 0.12);
}

.mhsp .mhsp-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mhsp .mhsp-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  padding: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  color: #404041;
  font-size: 15px;
  font-weight: 600 !important;
  line-height: 1.25;
  box-sizing: border-box;
}

.mhsp .mhsp-checkbox input {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
}

.mhsp .mhsp-checkbox input:checked {
  border-color: #ee7c1b;
  background: #ee7c1b;
}

.mhsp .mhsp-checkbox input:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.grecaptcha-badge {
  visibility: hidden;
}

.mhsp .mhsp-recaptcha-card {
  display: flex;
  width: 256px;
  height: 60px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 2px;
  background: #f9f9f9;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
  box-sizing: border-box;
}

.mhsp .mhsp-recaptcha-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
  background: #1a73e8;
  color: #fff;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  box-sizing: border-box;
}

.mhsp .mhsp-recaptcha-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 70px;
  width: 70px;
  height: 60px;
  background: #f9f9f9;
}

.mhsp .mhsp-recaptcha-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.mhsp .mhsp-actions {
  margin-top: 24px;
}

.mhsp .mhsp-hubspot-branding {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: #404041;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.mhsp .mhsp-hubspot-branding strong {
  font-weight: 700;
}

.mhsp .mhsp-hubspot-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mhsp .mhsp-message {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.mhsp .mhsp-message.is-error {
  color: #b42318;
}

.mhsp .mhsp-message.is-success {
  color: #067647;
}

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

@media (max-width: 767px) {
  .mhsp .mhsp-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .mhsp .mhsp-dialog {
    width: 92vw;
    max-height: 90vh;
    overflow: auto;
    margin: 0;
    padding: 48px 16px 32px;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .mhsp .mhsp-close {
    top: 10px;
    right: 10px;
  }

  .mhsp .mhsp-title {
    font-size: 20px !important;
  }

  .mhsp .mhsp-intro {
    font-size: 14px;
  }

  .mhsp--popup .mhsp-intro {
    color: #404041;
    font-weight: 400;
  }

  .mhsp .mhsp-grid {
    grid-template-columns: 1fr;
  }

  .mhsp .mhsp-field,
  .mhsp .mhsp-field-full {
    margin-bottom: 8px;
  }

  .mhsp .mhsp-submit {
    width: 100%;
    min-height: 32px;
    padding: 6px;
  }

  .mhsp .mhsp-hubspot-branding {
    align-items: flex-start;
    margin-top: 16px;
    text-align: left;
  }
}
