/* =========================================================================
   LEVTRON INSTRUMENTS - CONTACT US STYLESHEET (contact.css)
   ========================================================================= */

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-card-box {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* =========================================================================
   PHONE NUMBER & COUNTRY SELECTOR WITH REAL FLAG ICONS
   ========================================================================= */
.ups-phone-group {
  display: flex !important;
  align-items: stretch !important;
  position: relative !important;
  overflow: visible !important;
}

.ups-country-select-wrapper {
  position: relative !important;
  flex: 0 0 auto !important;
  user-select: none;
}

.ups-country-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px;
  height: 100%;
  padding: 0.75rem 0.7rem 0.75rem 0.8rem;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
  box-sizing: border-box;
}

.ups-country-btn:hover,
.ups-country-select-wrapper.open .ups-country-btn {
  background: #ffffff;
  border-color: #2563eb;
}

.ups-flag-icon {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
  display: inline-block;
}

.ups-dial-code {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
}

.ups-arrow-icon {
  font-size: 0.65rem;
  color: #64748b;
  transition: transform 0.2s ease;
  margin-left: 1px;
}

.ups-country-select-wrapper.open .ups-arrow-icon {
  transform: rotate(180deg);
}

/* Floating Dropdown */
.ups-country-dropdown {
  display: none;
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: 0 !important;
  width: 290px !important;
  max-width: 90vw !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 38px -6px rgba(15, 23, 42, 0.22), 0 6px 16px rgba(0, 0, 0, 0.08) !important;
  z-index: 1050 !important;
  overflow: hidden !important;
}

.ups-country-select-wrapper.open .ups-country-dropdown {
  display: flex !important;
  flex-direction: column !important;
}

.ups-country-search-wrap {
  position: relative;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
}

.ups-country-search-wrap i {
  position: absolute;
  left: 19px;
  color: #94a3b8;
  font-size: 0.82rem;
  pointer-events: none;
}

.ups-country-search {
  width: 100% !important;
  padding: 0.45rem 0.6rem 0.45rem 1.95rem !important;
  font-size: 0.82rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  outline: none !important;
  height: 32px !important;
  color: #0f172a !important;
  box-sizing: border-box;
}

.ups-country-search:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

.ups-country-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ups-country-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0.55rem 0.85rem !important;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.86rem;
  color: #1e293b;
}

.ups-country-item:hover,
.ups-country-item.active {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.ups-country-item .item-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.ups-country-item .item-name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ups-country-item .item-code {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ups-country-item:hover .item-code,
.ups-country-item.active .item-code {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.hidden-native-select {
  display: none !important;
}

.ups-phone-group input[type="tel"] {
  flex: 1 !important;
  border-radius: 0 10px 10px 0 !important;
  padding-left: 0.95rem !important;
}
