/* ============================================
   INTL-TEL-INPUT - CUSTOM STYLES
   ============================================ */

/* Override default styles to match Bootstrap theme */
.iti {
  width: 100%;
  display: block;
}

.iti__flag-container {
  z-index: 2;
}

.iti__country-list {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  max-height: 300px;
  z-index: 1050;
}

.iti__country {
  padding: 8px 12px;
}

.iti__country:hover {
  background-color: #f8f9fa;
}

.iti__country.iti__highlight {
  background-color: #0066CC;
  color: white;
}

.iti__selected-flag {
  padding: 0 0 0 12px;
  background-color: white;
}

.iti__selected-flag:hover {
  background-color: #f8f9fa;
}

.iti__flag-box {
  margin-right: 8px;
}

.iti__country-name {
  margin-right: 6px;
}

.iti__dial-code {
  color: #6c757d;
}

/* Input styling */
.iti input[type="tel"] {
  width: 100%;
  padding: 0.75rem;
  padding-left: 60px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.iti input[type="tel"]:focus {
  border-color: #0066CC;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.iti input[type="tel"]::placeholder {
  color: #6c757d;
}

/* Error state */
.iti input[type="tel"].error {
  border-color: #dc3545;
}

.iti input[type="tel"].error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Success state */
.iti input[type="tel"].valid {
  border-color: #28a745;
}

/* Search box in dropdown */
.iti__search-input {
  width: calc(100% - 16px);
  margin: 8px;
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.iti__search-input:focus {
  border-color: #0066CC;
  outline: none;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .iti__country-list {
    max-height: 200px;
  }
}
