/* Registration Page Layout */
.mg-registration-wrapper {
  display: flex;
  min-height: 90vh;
  background: #f5f5f7;
}
.mg-registration-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
.mg-registration-box {
  max-width: 600px;
  width: 100%;
  padding: 2.5rem 6rem;
}
.mg-registration-header {
  margin-bottom: 3rem;
  text-align: left;
}
.mg-login-header {
  margin: 1rem;
}
.mg-registration-subtitle-small {
  margin: 1.5rem 0 2rem 0;
  background: #d5daed;
  border: 1px solid #9aa4c9;
  padding: 8px;
  border-radius: 4px;
}
.mg-registration-logo {
  height: 110px !important;
  margin-bottom: 2rem;
  display: block;
}
.mg-registration-subtitle {
  color: #334DB5;
  font-size: 1.1rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-align: left;
}
.mg-registration-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: #2d2d5a;
  text-align: left;
}
.mg-registration-right {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #eaf0f6;
  min-height: 100vh;
}
.mg-registration-image {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gravity Form overrides for better look */
.mg-registration-box .gform_wrapper {
  margin: 0;
}
.mg-registration-box .gform_body .gfield {
  margin-bottom: 0rem;
}
.mg-registration-box .gform_footer {
  text-align: center;
}
.mg-registration-box .gform_button {
  background: #20186a;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7rem 2.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 2px 8px rgba(32,24,106,0.06);
  position: relative;
}
.mg-registration-box .gform-theme-button::after {
  content: '\203A'; /* Unicode for single right-pointing angle quotation mark (›) */
  color: #ff7a7a;
  font-size: 1.2em;
  margin-left: 0.3em;
  transition: color 0.2s;
  display: inline-block;
}
.mg-registration-box .gform-theme-button:hover::after {
  color: #ffb3b3;
}
.mg-registration-box .mg-chevron-invert {
  color: #ff7a7a;
  font-size: 1.2em;
  margin-right: 0.3em;
  transition: color 0.2s;
  display: inline-block;
  position: relative;
}
.mg-registration-box .gform-theme-button:hover .mg-chevron-invert {
  color: #ffb3b3;
}

/* Gravity Form label and input custom styles */
.mg-registration-box .gform_wrapper .gfield_label {
  color: #140D43;
  font-weight: bold;
}
.mg-registration-box .gform_wrapper .gfield_sub_label,
.mg-registration-box .gform_wrapper .sub-label,
.mg-registration-box .gform_wrapper .gform-field-label.gform-field-label--type-sub {
  color: #140D43;
  font-weight: bold;
  font-size: var(--gf-ctrl-label-font-size-primary);
}
.mg-registration-box .gform_wrapper input[type="text"],
.mg-registration-box .gform_wrapper input[type="email"],
.mg-registration-box .gform_wrapper input[type="password"],
.mg-registration-box .gform_wrapper input[type="number"],
.mg-registration-box .gform_wrapper input[type="tel"],
.mg-registration-box .gform_wrapper input[type="url"],
.mg-registration-box .gform_wrapper input[type="search"],
.mg-registration-box .gform_wrapper textarea,
.mg-registration-box .gform_wrapper select {
  border: 1px solid #1C1269;
  color: #1C1269;
}
.mg-registration-box .gform_wrapper input[type="text"]::placeholder,
.mg-registration-box .gform_wrapper input[type="email"]::placeholder,
.mg-registration-box .gform_wrapper input[type="password"]::placeholder,
.mg-registration-box .gform_wrapper input[type="number"]::placeholder,
.mg-registration-box .gform_wrapper input[type="tel"]::placeholder,
.mg-registration-box .gform_wrapper input[type="url"]::placeholder,
.mg-registration-box .gform_wrapper input[type="search"]::placeholder,
.mg-registration-box .gform_wrapper textarea::placeholder {
  color: #1C1269;
  opacity: 1;
}

/* Adjust Gravity Form Foundation theme spacing */
.gform-theme--foundation .gform_fields {
  row-gap: calc(var(--gf-form-gap-y) * 0.5) !important;
}

/* login-page */
.mg-login-content {
  margin-top: 2rem;
}
.elementor-widget-login {
  background: #f5f5f7;
  max-width: 420px;
  margin: 0 auto;
}
.elementor-widget-login .elementor-field-group {
  margin-bottom: 1.2rem !important;
}
.elementor-widget-login .elementor-field-label {
  color: #140D43;
  font-weight: bold;
  margin-bottom: 0.7rem;
  font-size: 14px;
}
.elementor-widget-login input[type="text"],
.elementor-widget-login input[type="password"] {
  border: 1px solid #1C1269;
  color: #1C1269;
  border-radius: 2px;
  padding: 0.2rem 1rem;
}
.elementor-widget-login .elementor-button {
/*  background: #20186a;*/
  color: #fff;
  font-weight: 300;
  border-radius: 8px;
  padding: 0.7rem 2.2rem;
  transition: background 0.2s;
  font-size: 14px;
  border-radius: 4px;
}
.elementor-widget-login .elementor-button:hover {
/*  background: #2d2d5a;*/
}
.elementor-widget-login .elementor-lost-password {
  color: #ff7a7a;
  font-size: 0.98em;
  margin-top: 1em;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .mg-registration-wrapper {
    flex-direction: column;
    min-height: unset;
    height: 100vh;
    justify-content: space-between;
  }
  .mg-registration-left, .mg-registration-right {
    flex: unset;
    width: 100%;
    padding: 0;
  }
  .mg-registration-right {
    justify-content: flex-start;
    min-height: 220px;
    min-height: unset;
  }
  .mg-registration-image {
    max-height: 300px;
    width: 100%;
    height: 300px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  }
}
@media (max-width: 600px) {
  .mg-registration-box {
    padding: 1.2rem 0.5rem;
    border-radius: 0;
    box-shadow: none;
  }
  .mg-registration-header {
    margin-bottom: 1.2rem;
  }
  .mg-registration-title {
    font-size: 1.3rem;
  }
  .mg-registration-logo {
    height: 24px;
  }
  .mg-registration-image {
    max-height: 180px;
    height: 180px;
    border-radius: 0 0 12px 12px;
  }
}

.gfield_required {
  display: none !important;
}

.mg-chevron-btn-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative !important;
  cursor: pointer;
}
.mg-chevron-btn-wrap span#gform_ajax_spinner_1 {
  position: absolute;
  right: -14em;
  top: 5em;
}
.mg-chevron-btn-wrap input[type="button"],
.mg-chevron-btn-wrap input[type="submit"] {
  background: var(--e-global-color-secondary) !important;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7rem 1.9rem 0.7rem 1.3rem !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(32,24,106,0.06);
  position: relative;
  z-index: 1;
}
.mg-chevron-btn-wrap input[type="button"]:hover,
.mg-chevron-btn-wrap input[type="submit"]:hover {
  background: var(--e-global-color-primary)!important;
}
.mg-chevron-btn-wrap .mg-chevron, .mg-chevron-btn-wrap .mg-chevron-invert {
  color: #ff7a7a;
  font-size: 1.5em;
  line-height: 1.5em;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 2;
  position: absolute;
  top:0;
  right: 0.6em;
  height: 100%; 
  transform: scale(1, 0.7);
  transition: transform 0.2s;
}
.mg-chevron-btn-wrap input[type="button"]:hover + .mg-chevron,
.mg-chevron-btn-wrap input[type="submit"]:hover + .mg-chevron {
  color: #ffb3b3;
  transform: scale(1, 0.7) translateX(0.1em);
}
.mg-chevron-btn-wrap .mg-chevron-invert {
  left: 0.6em;
}
.mg-chevron-btn-wrap .mg-chevron-invert + input[type="button"],
.mg-chevron-btn-wrap .mg-chevron-invert + input[type="submit"] {
  margin-left: 0;
}
.mg-chevron-btn-wrap .mg-chevron-invert:hover {
  color: #ffb3b3;
}

/* Match Elementor login button to Gravity Forms chevron button style */
.elementor-widget-login .elementor-button {
/*  background: #20186a !important;*/
  color: #fff !important;
  font-weight: 300 !important;
  font-size: 14px !important;
  padding: 0.7rem 1.5rem !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5em !important;
  box-shadow: 0 2px 8px rgba(32,24,106,0.06) !important;
  position: relative !important;
}

.elementor-widget-login .elementor-button::after {
  content: '\203A';
  color: #ff7a7a;
  font-size: 14px;
  margin-left: 0.3em;
  transition: color 0.2s;
  display: inline-block;
}

.elementor-widget-login .elementor-button:hover {
  /*background: #2d2d5a !important;*/
}

.elementor-widget-login .elementor-button:hover::after {
  color: #ffb3b3;
}

.elementor-widget-login .elementor-lost-password {
  color: var(--e-global-color-secondary);
  font-size: 1.05em;
  font-weight: 700;
  margin-top: 1em;
  display: inline-block;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  padding-right: 1.1em; /* space for chevron */
}

.elementor-widget-login .elementor-lost-password::after {
  content: '\203A'; /* › chevron */
  color: #ff7a7a;
  font-size: 1.2em;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(calc(-50% - 0.1em));
  transition: color 0.2s;
}

.elementor-widget-login .elementor-lost-password:hover {
  color: #2d2d5a;
  text-decoration: underline;
}

.elementor-widget-login .elementor-lost-password:hover::after {
  color: #ffb3b3;
}

/* Hide Gravity Forms progress bar only on first step */
.gf_progressbar_wrapper:has(.gf_progressbar_percentage.percentbar_33) {
  display: none !important;
}

@media screen and (min-width: 1024px) {
.gf_progressbar_wrapper { 
  position: fixed !important;
  bottom: 1em !important;
  width: 100% !important;
  max-width: 26em !important;
}
}

.mg-chevron-btn-wrap .gform_previous_button,
.mg-chevron-btn-wrap input.gform_previous_button[type="button"],
.mg-chevron-btn-wrap input.gform_previous_button[type="submit"] {
  background: none !important;
  color: #888 !important;
  border: none !important;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: none !important;
  padding: 0.7rem 1.7rem 0.7rem 1.2rem !important;
  border-radius: 8px;
  transition: color 0.2s, text-decoration 0.2s;
  display: inline-block;
}
.mg-chevron-btn-wrap .gform_previous_button:focus,
.mg-chevron-btn-wrap .gform_previous_button:hover,
.mg-chevron-btn-wrap input.gform_previous_button[type="button"]:hover,
.mg-chevron-btn-wrap input.gform_previous_button[type="submit"]:hover {
  color: #444 !important;
  text-decoration: underline;
}
.mg-chevron-btn-wrap .mg-chevron-invert {
  color: #888;
  font-size: 1.5em;
  left: 0.1em;
  position: absolute;
  top: 0;
  height: 100%;
  transform: scale(1, 0.7);
  transition: color 0.2s, text-decoration 0.2s;
}
.mg-chevron-btn-wrap .gform_previous_button:hover ~ .mg-chevron-invert,
.mg-chevron-btn-wrap input.gform_previous_button[type="button"]:hover ~ .mg-chevron-invert,
.mg-chevron-btn-wrap input.gform_previous_button[type="submit"]:hover ~ .mg-chevron-invert {
  color: #444;
  text-decoration: underline;
}

.gform-page-footer {
  justify-content: space-between;
}

.ginput_complex.ginput_container_password.gform-grid-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.2em;
}
.ginput_complex.ginput_container_password.gform-grid-row > span.ginput_password {
  width: 100% !important;
  max-width: 100%;
  display: block;
}
.ginput_complex.ginput_container_password.gform-grid-row .gf_clear_complex {
  display: none !important;
}

.gform-field-label.gfield_consent_label {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 5px !important;
}

.page-template-page-login header .elementor-element-3caefb64,
.page-template-page-register header .elementor-element-3caefb64,
.page-template-page-forgot-password header .elementor-element-3caefb64,
.page-template-page-new-password header .elementor-element-3caefb64 {
  display: none;
}

.page-template-page-login header .elementor-element-432f87a0,
.page-template-page-register header .elementor-element-432f87a0,
.page-template-page-forgot-password header .elementor-element-432f87a0,
.page-template-page-new-password header .elementor-element-432f87a0 {
  display: none;
}

.page-template-page-login .elementor-widget-container .e-flex,
.page-template-page-register .elementor-widget-container .e-flex,
.page-template-page-forgot-password .elementor-widget-container .e-flex,
.page-template-page-new-password .elementor-widget-container .e-flex {
  padding-left: calc( var(--container-default-padding-left) / 2);
  padding-right: calc( var(--container-default-padding-right) / 2);
}

.page-template-page-login header .elementor-hidden-mobile,
.page-template-page-register header .elementor-hidden-mobile,
.page-template-page-forgot-password header .elementor-hidden-mobile,
.page-template-page-new-password header .elementor-hidden-mobile {
  display: flex !important;
}