/* intl-tel-input — Graphite Circuit design system overrides */

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

.login__label .iti {
  grid-column: 1 / -1;
}

.iti input.iti__tel-input {
  background: #0a0a0a;
  border: 1px solid rgba(161, 161, 170, 0.12) !important;
  border-radius: 10px !important;
  color: #f4f4f5 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  padding-left: 64px !important;
  padding-right: 24px !important;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 16px !important;
  line-height: 24px !important;
  width: 100%;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.iti input.iti__tel-input:focus {
  border-color: #e10600 !important;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2) !important;
}

.iti.iti--valid input.iti__tel-input {
  border-color: #4ade80 !important;
}

.iti.iti--invalid input.iti__tel-input {
  border-color: #ef4444 !important;
}

.iti input.iti__tel-input::placeholder {
  color: #71717a;
  opacity: 1;
}

.iti__selected-dial-code {
  color: #71717a !important;
  font-weight: 400;
  font-size: 16px !important;
  line-height: 24px !important;
  transition: color 0.2s ease;
}

.iti.iti--has-value .iti__selected-dial-code {
  color: #f4f4f5 !important;
}

.iti__flag-container {
  border-radius: 10px 0 0 10px;
}

.iti__selected-flag {
  background-color: transparent !important;
  border-radius: 10px 0 0 10px;
  transition: background-color 0.28s ease;
  padding: 0 6px 0 24px !important;
}

.iti__selected-flag:hover {
  background-color: rgba(225, 6, 0, 0.08) !important;
}

.iti__arrow {
  border-top-color: #71717a !important;
}

.iti__arrow.iti__arrow--up {
  border-top: none !important;
  border-bottom-color: #71717a !important;
}

.iti__dropdown-content,
.iti--inline-dropdown .iti__dropdown-content {
  background-color: #1f1f1f !important;
  border: 1px solid rgba(161, 161, 170, 0.14) !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden;
}

.iti__country-list {
  background-color: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  color: #f4f4f5 !important;
  padding: 6px 0 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(161, 161, 170, 0.22) transparent;
}

.iti__country {
  font-size: 14px !important;
  padding: 12px 16px !important;
  transition: background-color 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(161, 161, 170, 0.08);
}

.iti__country:last-child {
  border-bottom: 0;
}

.iti__country:hover,
.iti__country.iti__highlight {
  background-color: rgba(225, 6, 0, 0.12) !important;
}

.iti__country.iti__highlight {
  box-shadow: none;
}

.iti__country-name {
  color: #f4f4f5 !important;
  font-weight: 500;
}

.iti__dial-code {
  color: rgba(161, 161, 170, 0.85) !important;
}

.iti__divider {
  border-bottom-color: rgba(161, 161, 170, 0.12) !important;
}

.iti__search-input {
  background-color: #0a0a0a !important;
  color: #f4f4f5 !important;
  border: 1px solid rgba(161, 161, 170, 0.12) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin: 10px 10px 6px 10px !important;
  font-size: 16px !important;
  line-height: 24px !important;
  outline: none !important;
}

.iti__search-input::placeholder {
  color: #71717a !important;
  opacity: 1;
}

.iti__search-input:focus {
  border-color: #e10600 !important;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2) !important;
}

.iti__country-list::-webkit-scrollbar {
  width: 10px;
}

.iti__country-list::-webkit-scrollbar-track {
  background: transparent;
}

.iti__country-list::-webkit-scrollbar-thumb {
  background-color: rgba(161, 161, 170, 0.22);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(225, 6, 0, 0.35);
}

.iti input.iti__tel-input:not(:placeholder-shown) {
  color: #f4f4f5 !important;
  background: #0a0a0a !important;
}

/* Lead form overrides */
.maidel-lead-form .t-input-phonemask__select {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.maidel-lead-form .iti {
  display: block;
  width: 100%;
  position: relative !important;
}

.maidel-lead-form .iti__flag-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 60px !important;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.maidel-lead-form .iti__selected-flag {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  cursor: pointer !important;
  padding: 0 6px 0 0 !important;
  box-sizing: border-box !important;
}

.maidel-lead-form .iti__selected-dial-code,
.maidel-lead-form .iti__arrow {
  font-size: 12px !important;
}

.maidel-lead-form .iti__selected-dial-code {
  color: #f4f4f5 !important;
  line-height: 40px !important;
}

.maidel-lead-form .iti__arrow {
  border-top-color: #71717a !important;
  border-bottom-color: transparent !important;
}

.maidel-lead-form .iti__arrow.iti__arrow--up {
  border-top-color: transparent !important;
  border-bottom-color: #71717a !important;
}

.maidel-lead-form .iti input.iti__tel-input {
  height: 40px !important;
  line-height: 40px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 12px !important;
  padding-left: 60px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #f4f4f5 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box;
}

.maidel-lead-form .iti input.iti__tel-input::placeholder {
  font-size: 12px !important;
  line-height: 40px !important;
  color: #71717a !important;
}

.maidel-lead-form .iti__dropdown-content,
.maidel-lead-form .iti--inline-dropdown .iti__dropdown-content {
  background: #1f1f1f !important;
  border: 1px solid rgba(161, 161, 170, 0.12) !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
}

.maidel-lead-form .iti__search-input,
.maidel-lead-form .iti--inline-dropdown .iti__search-input {
  display: none !important;
}

.maidel-lead-form .iti__country-list {
  padding: 4px 0 !important;
  background: transparent !important;
  max-height: 280px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(161, 161, 170, 0.22) transparent;
}

.maidel-lead-form .iti__country {
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(161, 161, 170, 0.08) !important;
  color: #f4f4f5 !important;
  font-size: 13px !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.maidel-lead-form .iti__country:last-child {
  border-bottom: 0 !important;
}

.maidel-lead-form .iti__country:hover,
.maidel-lead-form .iti__country.iti__highlight {
  background: rgba(225, 6, 0, 0.14) !important;
}

.maidel-lead-form .iti__country:hover .iti__country-name,
.maidel-lead-form .iti__country:hover .iti__dial-code,
.maidel-lead-form .iti__country.iti__highlight .iti__country-name,
.maidel-lead-form .iti__country.iti__highlight .iti__dial-code {
  color: #f4f4f5 !important;
}

.maidel-lead-form .iti__country-name {
  color: #f4f4f5 !important;
  font-weight: 500;
}

.maidel-lead-form .iti__dial-code {
  color: rgba(161, 161, 170, 0.85) !important;
}

.maidel-lead-form .iti__country-list::-webkit-scrollbar {
  width: 8px;
}

.maidel-lead-form .iti__country-list::-webkit-scrollbar-track {
  background: transparent;
}

.maidel-lead-form .iti__country-list::-webkit-scrollbar-thumb {
  background-color: rgba(161, 161, 170, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.maidel-lead-form .iti__country-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(225, 6, 0, 0.4);
}
