/* Native GrowthMap forms — visual replicas of the GHL widget forms.
   Two families: --light (Apply/Workbook: white pill fields) and
   --dark (popup forms: transparent bordered fields). Values taken from the
   live widgets' rendered styles. */

.gm-form { width: 100%; }
.gm-form--light { max-width: 560px; padding: 30px 10px 30px 0; margin: 0 auto; }
.gm-form--dark { padding: 0; }
.gm-form[data-form-id="mDD72RkGdDkaZAkhGpgB"] { padding-top: 30px; }
.gm-form[data-form-id="rcThPzHf1jn7M9cGvIMI"] { padding: 30px 0; }

.gm-form .gm-field { margin-bottom: 15px; }
.gm-form--dark .gm-field { margin-bottom: 16px; }
.gm-form .gm-row { display: flex; gap: 15px; margin-bottom: 15px; }
.gm-form .gm-row .gm-field { flex: 1; margin-bottom: 0; }

/* ---------- inputs ---------- */
.gm-form .gm-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Lato', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  border: 1px solid transparent;
  outline: none;
}
.gm-form--light .gm-input {
  background: #ffffff;
  color: #143735;
  border-radius: 12px;
  padding: 15px 20px;
}
.gm-form--light .gm-input::placeholder { color: #6d6a7a; opacity: 1; }
.gm-form--dark .gm-input {
  background: transparent;
  color: #ffffff;
  border: 1px solid #d2d2d2;
  border-radius: 5px;
  padding: 12px 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}
.gm-form--dark .gm-input::placeholder { color: #ffffff; opacity: 1; }
.gm-form .gm-input:focus-visible { outline: 2px solid rgba(77, 44, 242, 0.6); outline-offset: 1px; }

/* email field icon */
.gm-form .gm-input-wrap { position: relative; }
.gm-form .gm-icon-holder {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  pointer-events: none;
}
.gm-form--light .gm-icon-holder { color: #6d6a7a; }
.gm-form--dark .gm-icon-holder { color: rgba(255, 255, 255, 0.85); }
.gm-form .gm-input--icon { padding-left: 36px; }

/* selects (Apply form dropdowns) */
.gm-form .gm-select-wrap { position: relative; }
.gm-form .gm-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.gm-form .gm-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #6d6a7a;
  border-bottom: 2px solid #6d6a7a;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.gm-form .gm-select--empty { color: #6d6a7a; }
.gm-form .gm-select option { color: #143735; }

/* intl-tel-input phone */
.gm-form .iti { width: 100%; display: block; }
.gm-form .iti input.gm-input--intl { padding-left: 50px; }
.gm-form .iti__selected-flag { background: transparent; padding-left: 14px; }
.gm-form .iti__country-list { color: #143735; z-index: 100002; }

/* consent checkbox */
.gm-form .gm-consent {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-family: 'Lato', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #ffffff;
}
.gm-form--dark .gm-consent { font-family: 'Inter', sans-serif; }
.gm-form .gm-consent input[type='checkbox'] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #4d2cf2;
}
.gm-form .gm-consent-text { margin-left: 10px; }
.gm-form .gm-consent a { color: #ffffff; text-decoration: underline; }

/* ---------- buttons ---------- */
.gm-form .gm-btn {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: #4d2cf2;
  color: #ffffff;
  text-align: center;
  margin-top: 15px;
  transition: filter 0.2s ease;
}
.gm-form .gm-btn:hover { filter: brightness(0.88); }
.gm-form .gm-btn:disabled { opacity: 0.7; cursor: wait; }
.gm-btn--apply {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 10px;
}
.gm-btn--subscribe {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  border-radius: 10px;
  padding: 9px 50px;
}
.gm-btn--popup {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  border-radius: 5px;
  padding: 9px 50px;
}

/* ---------- states ---------- */
.gm-form .gm-input.gm-invalid,
.gm-form--dark .gm-input.gm-invalid { border-color: #e5484d; }
.gm-form .gm-error {
  display: none;
  color: #e5484d;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  margin: 6px 2px 0;
}
.gm-form .gm-error.gm-show { display: block; }

.gm-success {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  padding: 24px 10px;
}
