/* form fields placeholder color */
.midas-form-popup input::placeholder,
.midas-form-popup textarea::placeholder {
  color: #a6a5a4 !important;
}

/* select input height */
.midas-form-popup select {
  height: 40px;
}

/* popup close button css starts */

.midas-form-popup .dialog-close-button {
  text-decoration: none;
  border-radius: 50%;
  color: #ffffff;
  padding: 4px;
  outline: none;
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
  border: 1px solid #211d1c;
}

.midas-form-popup .dialog-close-button i {
  color: #211d1c;
}

/* popup close button css ends */

/* form submit button css starts */

.midas-form-popup .elementor-field-type-submit {
  display: grid;
  grid-template-columns: repeat(2, min-content);
  align-items: center;
  column-gap: 10px;
  justify-content: end;
}

.midas-form-popup .elementor-field-type-submit button[type="submit"] {
  width: fit-content;
}

.midas-form-popup
  .elementor-field-type-submit
  button[type="submit"]
  .elementor-button-text {
  text-wrap: nowrap;
}

/* download brochure popup */

.midas-form-popup #brochure_download_submit {
  width: fit-content;
  text-wrap: nowrap;
}

.midas-form-popup .elementor-field-type-submit button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* form submit button css ends */

/* cancel button css starts */
.midas-form-popup .elementor-field-type-submit button[type="button"] {
  width: 139px;
}

.midas-form-popup .midas-popup-cancel {
  font-family: "inter";
  font-size: 14px;
  line-height: 1.4em;
  letter-spacing: -0.44px;
  font-weight: 600;
  color: #211d1c;
  border: 1px solid #ccc7c6;
  border-radius: 12px;
  height: 40px;
  background-color: #ffffff;
}

/* cancel button css ends */

/* buttons container css starts */

.midas-form-popup .elementor-field-type-submit {
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-right: -10px;
  border-top: 1px solid #e5e7eb;
  padding: 20px 20px 0px 20px !important;
}

/* buttons container css ends */

/* align content flex-start for the form field so that fields appear properly when error message appears on the left or right side field start */

/* get a quote popup */
.midas-form-popup .elementor-field-group-get_quote_full_name {
  align-content: flex-start;
}

.midas-form-popup .elementor-field-group-get_quote_country {
  align-content: flex-start;
}

/* request demo popup */
.midas-form-popup .elementor-field-group-request_demo_work_email,
.midas-form-popup .elementor-field-group-request_demo_phone_number {
  align-content: flex-start;
}

/* schedule a call popup */

.midas-form-popup .elementor-field-group-schedule_a_call_work_email,
.midas-form-popup .elementor-field-group-schedule_a_call_phone_number {
  align-content: flex-start;
}

/* align content flex-start for the form field so that fields appear properly when error message appears on the left or right side field ends */

/* phone number field css starts */

/* for get a quote form */
.midas-form-popup .elementor-field-group-get_quote_phone_number {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.midas-form-popup .iti {
  width: 100%;
}

.midas-form-popup .elementor-field-type-hidden {
  margin: 0px !important;
}

/* phone number field css ends */

/* accept terms field css starts */

.midas-form-popup .elementor-field-type-acceptance .elementor-field-option {
  display: flex;
  align-items: flex-start;
}

.midas-form-popup .elementor-field-type-acceptance input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px !important;
  border: 1px solid rgba(136, 136, 136, 0.2);
  background-color: rgba(187, 187, 187, 0.2) !important;
}

.midas-form-popup
  .elementor-field-type-acceptance
  input[type="checkbox"]::after {
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
}

.midas-form-popup
  .elementor-field-type-acceptance
  input[type="checkbox"]:checked {
  background-color: #ff7b47 !important;
  border: 1px solid #ff7b47 !important;
}

.midas-form-popup
  .elementor-field-type-acceptance
  input[type="checkbox"]:checked::after {
  border-color: #ffffff;
}

.midas-form-popup .elementor-field-type-acceptance a {
  color: #ff7b47;
}

/* privacy text with icon */
.privacy-text-container {
  display: flex;
  align-items: flex-start;
  column-gap: 8px;
}

.privacy-form-icon {
  flex-shrink: 0;
}

/* accept terms field css ends */

/* removing the extra down arrows from select input fields css starts */

.midas-form-popup .select-caret-down-wrapper {
  display: none;
}

.midas-form-popup .elementor-select-wrapper::before {
  display: none;
}

/* removing the extra down arrows from select input fields css ends */

/* country select dropdown css starts */

/* for get quote form */

.midas-form-popup #form-field-get_quote_country {
  color: #a6a5a4;
  text-overflow: ellipsis;
}

.midas-form-popup #form-field-get_quote_country:valid {
  color: #111111;
}

.midas-form-popup #form-field-get_quote_country option {
  color: #111111;
}

.midas-form-popup #form-field-get_quote_country option[value=""] {
  color: #a6a5a4;
}

/* for schedule a call popup */

.midas-form-popup #form-field-schedule_a_call_country {
  color: #a6a5a4;
  text-overflow: ellipsis;
}

.midas-form-popup #form-field-schedule_a_call_country:valid {
  color: #111111;
}

.midas-form-popup #form-field-schedule_a_call_country option {
  color: #111111;
}

.midas-form-popup #form-field-schedule_a_call_country option[value=""] {
  color: #a6a5a4;
}

/* country select dropdown css ends */

/* input fields on focus css starts */

.midas-form-popup input:focus,
.midas-form-popup textarea:focus,
.midas-form-popup select:focus {
  border: 1px solid #0099ff !important;
}

/* input fields on focus css ends */

/* privacy policy link css starts */

.form-privacy-link {
  color: #0099ff;
}

.midas-form-popup .form-privacy-link:hover {
  text-decoration: underline;
}

#brochure_download_form .elementor-field-type-html,
#midas_request_demo_form .elementor-field-type-html,
#midas_get_a_quote_form .elementor-field-type-html {
  display: inline-block;
}

/* privacy policy link css ends */

/* brochure download form html field css starts */

#brochure_download_form .elementor-field-type-html {
  margin: 0px;
}

#brochure_download_form .elementor-field-type-submit {
  margin-top: 20px;
}

/* brochure download form html field css ends */

/* popup scrollbar position css starts */

/* scrollbar appears inside the popup. shifting that scrollbar to appear on lightbox */

.midas-form-popup {
  height: 100dvh;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center !important;
  padding: 10px 0px;
}

.midas-form-popup > .dialog-widget-content {
  max-height: none;
  height: auto;
  position: relative;
  width: fit-content;
}

.midas-form-popup .dialog-message {
  max-height: none;
  overflow: visible;
}

/* popup scrollbar position css ends */

/* media query starts */

@media only screen and (max-width: 425px) {
  .midas-form-popup .elementor-field-type-submit button[type="submit"] {
    padding: 0px 10px !important;
  }

  .midas-form-popup .elementor-field-type-submit button .elementor-button-text {
    font-size: 12px;
  }

  .midas-form-popup #brochure_download_submit {
    width: 150px;
  }

  .midas-form-popup .elementor-field-type-submit button[type="button"] {
    width: 120px;
  }
}
