.phone-input-group {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 15px;
}

.country-selector-wrapper {
  min-width: 110px;
  background-color: white !important;
  border: 1px solid black;
  border-radius: 8px;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
}

#country-select {
  width: 100%;
  border: none;
  font-size: 13px;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
  cursor: pointer;
  appearance: none;
  background-color: transparent;
  color: black;

  padding-left: 8px;
  padding-right: 24px;

  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
}

#country-select:hover {
  border-color: var(--primary-col);
}

#country-select:focus {
  outline: none;
}

#country-select option {
  padding: 10px;
  background-color: #fff;
  color: #333;
  font-size: 13px;
}

#country-flag {
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
  align-items: center;
  justify-content: center;
  height: 20px;
  width: 20px;
  min-width: 20px;
  margin-right: 6px;
}

#country-flag img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  gap: 10px;
}

#phone-input {
  flex: 0 0 160px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 10px;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
  margin-top: 10px;
}

#phone-input:focus {
  outline: none;
}

/* ===== TABLET & DESKTOP BREAKPOINT (1200px) ===== */
@media (max-width: 1200px) {
  .phone-input-group {
    gap: 8px;
    margin-bottom: 12px;
  }

  .country-selector-wrapper {
    min-width: 110px;
  }

  #country-select {
    padding: 10px 8px 10px 36px;
    font-size: 13px;
  }

  #country-flag {
    font-size: 16px;
    left: 8px;
    height: 18px;
    width: 18px;
  }

  #phone-input {
    padding: 10px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .phone-input-group {
    gap: 8px;
    margin-bottom: 12px;
  }

  .country-selector-wrapper {
    min-width: 100px;
  }

  #country-select {
    padding: 10px 8px 10px 35px;
    font-size: 12px;
  }

  #country-flag {
    font-size: 15px;
    height: 16px;
    width: 16px;
  }

  #phone-input {
    padding: 10px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .phone-input-group {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .country-selector-wrapper {
    width: 55px !important;
    min-width: 55px !important;
    padding: 2px 4px !important;
    width: 65px;
    min-width: 65px;
    padding: 2px 6px;
    position: relative;
  }

  #country-select {
    width: 35px !important;
    font-size: 11px !important;
    width: 100% !important;
    padding-right: 16px !important;
    background-position: right 4px center !important;
    background-size: 10px !important;
  }

  #country-flag {
    font-size: 15px;
    left: 8px;
    height: 16px;
    width: 16px;
  }

  #phone-input {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

/* ===== SMALL MOBILE BREAKPOINT (375px) ===== */
@media (max-width: 375px) {
  .phone-input-group {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .country-selector-wrapper {
    width: 100%;
    min-width: auto;
  }

  #country-select {
    width: 100%;
    padding: 9px 8px 9px 32px;
    font-size: 11px;
  }

  #country-flag {
    font-size: 14px;
    height: 14px;
    width: 14px;
  }

  #phone-input {
    width: 100%;
    padding: 9px;
    font-size: 11px;
  }
}
