/* Phone field (js/phone-field.js, intl-tel-input). The library wraps each
   phone input in .iti; these rules keep it the full width of the form's
   other inputs and keep its country list above the site's pop-ups. */

.iti {
  display: block;
  width: 100%;
}

/* Room for the flag and "+971" beside the number. */
.iti input[type="tel"] {
  width: 100%;
}

/* The flag + "+971" button. The site styles ".form-group button" as a solid
   blue button with white text; the country button should look like part of
   the input instead. */
.iti .iti__selected-country,
.iti .iti__selected-country:hover,
.iti .iti__selected-country:focus {
  background: transparent;
  color: #555;
  border: 0;
  box-shadow: none;
  width: auto;
  height: 100%;
  margin: 0;
}

.iti .iti__selected-dial-code {
  color: #555;
}

/* The country list is placed in <body> (dropdownContainer), above
   Bootstrap's modals (z-index 1050) and the page's own pop-ups. */
.iti--container {
  z-index: 100000;
}

.iti__dropdown-content {
  color: #222;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
}

.iti__search-input {
  padding: 8px 10px;
  color: #222;
}

/* A field the check has turned down. */
.phone-field-invalid {
  border-color: #e74c3c !important;
}

/* Used only on forms without an error slot of their own. */
.phone-field-error {
  display: block;
  margin-top: 4px;
  color: #e74c3c;
  font-size: 12px;
}

.phone-field-error:empty {
  display: none;
}
