/* phone-field-lock.css — ALWAYS last (after compact.bundle / cascade-fix).
   Beats compact/components-premium dual-border on .iti + .iti input (two boxes look). */

html body .iti,
html body .cs-form-1 .iti,
html body .form-group .iti,
html body .p-phone-field .iti,
html body .cs-login-form-c-1 .iti,
html body .cs-register-form-c-1 .iti {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(26, 31, 54, 0.14) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

html body .iti__flag-container,
html body .iti--separate-dial-code .iti__flag-container,
html body .iti--allow-dropdown .iti__flag-container {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  z-index: 3 !important;
}

html body .iti__selected-flag,
html body .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag,
html body .iti--separate-dial-code .iti__selected-flag {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  height: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-right: 1px solid rgba(26, 31, 54, 0.12) !important;
  border-radius: 0 !important;
  background-color: #f7f9fc !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #1a1f36 !important;
  -webkit-text-fill-color: #1a1f36 !important;
}

html body .iti__selected-dial-code,
html body .iti--separate-dial-code .iti__selected-dial-code {
  margin: 0 !important;
  padding: 0 !important;
  color: #1a1f36 !important;
  -webkit-text-fill-color: #1a1f36 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  background: transparent !important;
}

/* CRITICAL: input must NOT be a second box */
html body .iti input,
html body .iti input.form-control,
html body .iti input[type="text"],
html body .iti input[type="tel"],
html body .iti__tel-input,
html body .iti--separate-dial-code input,
html body .iti--separate-dial-code input.form-control,
html body .iti--separate-dial-code input[type="text"],
html body .iti--separate-dial-code input[type="tel"],
html body input.jsGlobalCountry1,
html body .jsGlobalCountry1.form-control,
html body .p-phone-field input.jsGlobalCountry1,
html body .cs-login-form-c-1 .iti input,
html body .cs-login-form-c-1 input.jsGlobalCountry1 {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  padding-right: 14px !important;
  padding-left: 108px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #1a1f36 !important;
  -webkit-text-fill-color: #1a1f36 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  caret-color: #0f9e96 !important;
  box-sizing: border-box !important;
}

html body .p-phone-field .iti input,
html body .p-phone-field .iti input.form-control,
html body .p-phone-field input.jsGlobalCountry1 {
  padding-right: 44px !important;
}

html body .iti--separate-dial-code.iti--sdc-3 input,
html body .iti--separate-dial-code.iti--sdc-3 input.form-control {
  padding-left: 118px !important;
}

html body .iti--separate-dial-code.iti--sdc-4 input,
html body .iti--separate-dial-code.iti--sdc-4 input.form-control {
  padding-left: 128px !important;
}

html body .iti input:focus,
html body .iti input.form-control:focus,
html body .iti__tel-input:focus,
html body input.jsGlobalCountry1:focus {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

html body .p-phone-field.is-focused .iti,
html body .p-phone-field.is-focused .p-phone-field__shell .iti {
  border-color: rgba(15, 158, 150, 0.55) !important;
  box-shadow:
    0 0 0 4px rgba(15, 158, 150, 0.14),
    0 10px 24px rgba(15, 158, 150, 0.12) !important;
}

html body .p-phone-field__shell {
  position: relative !important;
  isolation: isolate !important;
}

html body .p-phone-field__mark {
  pointer-events: none !important;
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  z-index: 4 !important;
  width: 28px !important;
  height: 28px !important;
  margin-top: -14px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(15, 158, 150, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(15, 158, 150, 0.18) !important;
  opacity: 0.55 !important;
  transform: scale(0.92) !important;
}

html body .p-phone-field.is-focused .p-phone-field__mark,
html body .p-phone-field.is-alive .p-phone-field__mark {
  opacity: 1 !important;
  background: rgba(15, 158, 150, 0.16) !important;
  animation: sharingo-phone-mark-lock 1.6s ease-in-out infinite !important;
}

html body .p-phone-field__mark img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  display: block !important;
}

html body .p-phone-field__glow {
  pointer-events: none !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 16px !important;
  z-index: 0 !important;
  opacity: 0 !important;
  background: linear-gradient(
    120deg,
    rgba(15, 158, 150, 0) 0%,
    rgba(15, 158, 150, 0.45) 45%,
    rgba(11, 130, 123, 0.2) 70%,
    rgba(15, 158, 150, 0) 100%
  ) !important;
  background-size: 220% 220% !important;
}

html body .p-phone-field.is-focused .p-phone-field__glow,
html body .p-phone-field.is-alive .p-phone-field__glow {
  opacity: 1 !important;
  animation: sharingo-phone-glow-lock 2.4s ease-in-out infinite !important;
}

html body .p-phone-field__shell > .iti {
  position: relative !important;
  z-index: 1 !important;
}

@keyframes sharingo-phone-mark-lock {
  0%, 100% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.08) rotate(-6deg); }
  70% { transform: scale(1.02) rotate(4deg); }
}

@keyframes sharingo-phone-glow-lock {
  0% { background-position: 0% 50%; opacity: 0.55; }
  50% { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 0% 50%; opacity: 0.55; }
}

@media (max-width: 479.98px) {
  html body .iti--separate-dial-code input,
  html body .iti--separate-dial-code input.form-control,
  html body input.jsGlobalCountry1 {
    padding-left: 96px !important;
    font-size: 14px !important;
  }

  html body .iti__selected-flag {
    padding: 0 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .p-phone-field__glow,
  html body .p-phone-field__mark {
    animation: none !important;
  }
}
