/* Shared: enquiry phone = country code + national number (contact + index modal) */
.enquiry-phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.enquiry-phone-cc {
  flex: 0 1 11.5rem;
  min-width: min(100%, 10rem);
  width: auto;
  max-width: 100%;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.86rem;
  color: var(--ink, #0f1b2d);
  background: #fff;
  border: 1.5px solid var(--line2, #d1d5db);
  border-radius: 10px;
  padding: 11px 14px;
  padding-right: 36px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink3, #4b6284) 50%),
    linear-gradient(135deg, var(--ink3, #4b6284) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  background-color: #fff;
}

.enquiry-phone-cc:hover {
  border-color: rgba(29, 78, 216, 0.35);
}

.enquiry-phone-cc:focus {
  border-color: var(--blue, #1d4ed8);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
  background-color: #fdfeff;
}

.enquiry-phone-num {
  flex: 1 1 12rem;
  min-width: 0;
}

/* Modal uses same tokens as index */
.em-field .enquiry-phone-cc {
  font-size: 0.85rem;
}

/* ── Tablet + mobile: compact code column, tighter phone row ── */
@media (max-width: 1024px) {
  .enquiry-phone-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
  }

  .enquiry-phone-cc {
    flex: 0 0 auto;
    width: auto;
    min-width: 4.35rem;
    max-width: 6.35rem;
    padding: 12px 30px 12px 12px;
    padding-right: 28px;
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    text-align: center;
    background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
    line-height: 1.25;
  }

  .enquiry-phone-num {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .em-field .enquiry-phone-cc {
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .enquiry-phone-row {
    gap: 8px;
  }

  .enquiry-phone-cc {
    min-width: 4.1rem;
    max-width: 5.85rem;
    padding: 13px 26px 13px 10px;
    padding-right: 24px;
    font-size: 0.92rem;
    border-radius: 12px;
    min-height: 46px;
    box-sizing: border-box;
  }

  .enquiry-phone-num {
    min-height: 46px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .em-field .enquiry-phone-cc {
    font-size: 0.9rem;
  }
}
