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

/* ===== WRAPPER (acts as the bordered trigger container) ===== */
.country-selector-wrapper {
  flex: 1;
  position: relative;
  border: none;
  border-bottom: 1px solid #000;  
  border-radius: 4px;
  transition: border-color 0.2s;
}

.country-selector-wrapper.open,
.country-selector-wrapper:focus-within {
  border-color: var(--primary-col);
}

/* ===== CUSTOM DROPDOWN CONTAINER ===== */
.custom-country-dropdown {
  width: 100%;
}

/* ===== TRIGGER BUTTON ===== */
.country-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 11px 8px 11px 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
  color: var(--fourth-col);
  white-space: nowrap;
}

.trigger-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.trigger-flag img {
  width: 28px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.trigger-code {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  color: #999;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-left: auto;
}

.country-selector-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* ===== DROPDOWN PANEL ===== */
.country-dropdown-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #ebebeb;
  z-index: 9999;
  overflow: hidden;
}

/* ===== SEARCH ===== */
.country-search-wrapper {
  position: relative;
  padding: 10px 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-60%);
  width: 13px;
  height: 13px;
  color: #aaa;
  pointer-events: none;
}

.country-search-input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}

.country-search-input:focus {
  border-color: var(--primary-col);
  background: #fff;
}

/* ===== OPTIONS LIST ===== */
.country-options-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.country-options-list::-webkit-scrollbar {
  width: 4px;
}

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

.country-options-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

/* ===== OPTION CARD ===== */
.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.country-option:hover {
  background: #f5f5f5;
  border-color: #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.country-option.selected {
  background: #f0f5ff;
  border-color: #c8daff;
}

.option-flag {
  width: 36px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f0f0f0;
  padding: 1px;
  box-sizing: border-box;
}

.option-name {
  flex: 1;
  font-size: 13px;
  color: #2c2c2c;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-code {
  font-size: 12px;
  color: #888;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.no-results {
  padding: 12px 10px;
  font-size: 13px;
  color: #999;
  text-align: center;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
}

/* ===== PHONE INPUT ===== */
#phone-input {
  flex: 9;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Cera Godrej Interio", Arial, sans-serif;
  margin-top: 15px;
}

#phone-input:focus {
  outline: none;
  border-color: var(--primary-col);
  box-shadow: 0 0 0 3px rgba(65, 65, 65, 0.1);
}

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

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

  .country-dropdown-trigger {
    padding: 10px 6px 10px 8px;
    font-size: 13px;
  }

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

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

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

  .country-dropdown-trigger {
    padding: 9px 6px 9px 8px;
    font-size: 12px;
  }

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

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

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

  .country-dropdown-trigger {
    padding: 10px;
    font-size: 12px;
  }

  .country-dropdown-panel {
    width: 100%;
  }

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

/* ===== 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-dropdown-trigger {
    padding: 9px 8px;
    font-size: 11px;
  }

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