/* ============================================
   COMPLETE PROFILE PAGE STYLES
   ============================================ */

.req {
  color: var(--color-danger);
}

.optional {
  color: var(--color-text-gray);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border-light);
  background: var(--color-white);
  color: var(--color-text-dark);
  font-size: 14px;
  font-family: var(--font-body);
}

.input-group select:focus {
  border-color: var(--color-gold);
}

#skipBtn {
  margin-top: 10px;
}

.photo-upload-group {
  text-align: center;
}

.photo-upload-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
}

.photo-preview,
.photo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark-2);
  color: var(--color-gold);
  font-size: 24px;
  font-weight: 700;
}

.photo-upload-btn {
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 380px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Date of Birth: custom field + calendar modal ---------- */
.dob-field-wrap {
  position: relative;
}

.dob-field-wrap input {
  cursor: pointer;
  padding-right: 42px;
  background: var(--color-white);
}

.dob-cal-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  pointer-events: none;
}

/* Centered modal backdrop — guarantees the calendar is always fully on-screen,
   no matter where the field sits on the page or how small the viewport is. */
.dob-cal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: dobFadeIn 0.15s ease;
}

.dob-cal-backdrop.hidden {
  display: none;
}

.dob-cal-popup {
  width: min(320px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px;
  animation: dobPopIn 0.18s ease;
}

@keyframes dobFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dobPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.dob-cal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.dob-cal-nav {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-light);
  background: var(--color-white);
  color: var(--color-gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.dob-cal-nav:hover {
  background: var(--color-cream);
}

.dob-cal-header select {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border-light);
  background: var(--color-white);
  color: var(--color-text-dark);
  font-size: 13px;
  font-family: var(--font-body);
}

#dobYearSelect {
  flex: 0 0 84px;
}

.dob-cal-header select:focus {
  border-color: var(--color-gold);
}

.dob-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-gray);
  padding: 4px 0 8px;
}

.dob-cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.dob-cal-day:hover {
  background: var(--color-cream);
}

.dob-cal-day.selected {
  background: var(--color-gold);
  color: var(--color-white);
  font-weight: 600;
}

.dob-cal-day.empty {
  cursor: default;
  pointer-events: none;
}