/* Virtual card KYC — DOB picker & international phone */

.vc-kyc-label {
  font-size: 0.78rem;
  color: rgba(240, 240, 250, 0.55);
}

.vc-kyc-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #ff8a8a;
  line-height: 1.35;
}

.vc-dob {
  position: relative;
}

.vc-dob__popover[hidden] {
  display: none !important;
}

.vc-dob__trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 240, 250, 0.72);
}

.vc-dob__icon {
  width: 1.15rem;
  height: 1.15rem;
}

.vc-dob__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 240, 250, 0.2);
  background: #141414;
  color: #f0f0fa;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.vc-dob__trigger:focus-visible {
  outline: 2px solid rgba(120, 160, 255, 0.85);
  outline-offset: 2px;
}

.vc-dob__trigger-placeholder {
  color: rgba(240, 240, 250, 0.45);
}

.vc-dob__trigger-icon {
  opacity: 0.55;
  font-size: 1.1rem;
}

.vc-dob__popover {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 240, 250, 0.18);
  background: #0f0f12;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.vc-dob__typed {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.vc-dob__typed input,
.vc-dob__typed select,
.vc-dob__cal-head select {
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 240, 250, 0.2);
  background: #141414;
  color: #f0f0fa;
  font-size: 0.95rem;
}

.vc-dob__cal-head {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.vc-dob__nav {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 240, 250, 0.15);
  background: #141414;
  color: #f0f0fa;
  font-size: 1.25rem;
  cursor: pointer;
}

.vc-dob__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(240, 240, 250, 0.45);
  text-align: center;
}

.vc-dob__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.vc-dob__day {
  min-height: 2.5rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #f0f0fa;
  font-size: 0.88rem;
  cursor: pointer;
}

.vc-dob__day:hover:not(:disabled) {
  background: rgba(120, 160, 255, 0.15);
}

.vc-dob__day:focus-visible {
  outline: 2px solid rgba(120, 160, 255, 0.85);
  outline-offset: 1px;
}

.vc-dob__day--selected {
  background: rgba(120, 160, 255, 0.35);
  font-weight: 600;
}

.vc-dob__day--muted {
  color: rgba(240, 240, 250, 0.25);
}

.vc-dob__day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.vc-dob__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.vc-phone {
  display: grid;
  gap: 0.35rem;
}

.vc-phone__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
  align-items: start;
}

.vc-phone__country {
  position: relative;
}

.vc-phone__country-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 240, 250, 0.2);
  background: #141414;
  color: #f0f0fa;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.vc-phone__country-btn:focus-visible {
  outline: 2px solid rgba(120, 160, 255, 0.85);
  outline-offset: 2px;
}

.vc-phone__flag {
  font-size: 1.15rem;
  line-height: 1;
}

.vc-phone__national {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 240, 250, 0.2);
  background: #141414;
  color: #f0f0fa;
  font-size: 0.95rem;
}

.vc-phone__panel[hidden] {
  display: none !important;
}

.vc-phone__panel {
  position: absolute;
  z-index: 45;
  left: 0;
  top: calc(100% + 0.35rem);
  width: min(22rem, 92vw);
  max-height: min(18rem, 50vh);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(240, 240, 250, 0.18);
  background: #0f0f12;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.vc-phone__search {
  padding: 0.55rem 0.65rem;
  border: none;
  border-bottom: 1px solid rgba(240, 240, 250, 0.12);
  background: #141414;
  color: #f0f0fa;
  font-size: 0.95rem;
  min-height: 2.75rem;
}

.vc-phone__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  overflow-y: auto;
  flex: 1;
}

.vc-phone__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  color: #f0f0fa;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.vc-phone__option:hover,
.vc-phone__option[aria-selected="true"] {
  background: rgba(120, 160, 255, 0.12);
}

.vc-phone__option-dial {
  margin-left: auto;
  color: rgba(240, 240, 250, 0.55);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .vc-dob__popover {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.75rem;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }

  .vc-phone__panel {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: 15vh;
    width: auto;
    max-height: 70vh;
  }

  .vc-dob__day {
    min-height: 2.85rem;
  }
}
