/* ROOVI area styles: intake. Owned by the intake area owner.
   Use the tokens and components from css/app.css. Every selector is scoped under a class
   prefixed "intake-" so areas never collide. Mobile first (390px), 44px tap targets. */

.intake { display: block; min-width: 0; }

.intake-notice { margin-bottom: var(--space-4); }

.intake-slot:empty { display: none; }
.intake-slot { margin-top: var(--space-4); }

/* Woonplaats suggestion from the club (one tap, never written without it) */
.intake-suggest-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.intake-suggest-text { font-size: 15px; }

/* Step 6: people who already follow the athlete and open invites */
.intake-links { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); font-size: 15px; }

.intake-card { margin-bottom: var(--space-4); }
.intake-card .field:last-child { margin-bottom: 0; }

/* Live helper under the nationality picker */
.intake-live:empty { display: none; }
.intake-live { margin-top: calc(-1 * var(--space-2)); }

/* Searchable select (country, municipality). The list sits in the page flow. */
.intake-combo { position: relative; }
.intake-combo-list {
  list-style: none;
  margin: var(--space-1) 0 0;
  padding: var(--space-1);
  max-height: 264px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.intake-combo-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
}
.intake-combo-option:hover,
.intake-combo-option[aria-selected="true"] { background: var(--accent-tint); }
.intake-combo-option[aria-selected="true"] { outline: 2px solid var(--focus); outline-offset: -2px; }
.intake-combo-option.is-selected .intake-combo-label { font-weight: 700; }
.intake-combo-label { min-width: 0; overflow-wrap: anywhere; }
.intake-combo-hint { flex: none; font-size: 13px; color: var(--text-secondary); }
.intake-combo-empty,
.intake-combo-more {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Back and next. Sticks to the bottom edge on phones so long steps stay easy to finish. */
.intake-nav {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: var(--space-3);
  margin: 0 calc(-1 * var(--space-4));
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.intake-next { flex: 1 1 auto; justify-content: center; }
.intake-nav .btn:not(.intake-next) { flex: 0 0 auto; }

/* Step 6: invite link */
.intake-invite .field { margin-bottom: var(--space-3); }
.intake-invite-text { margin-bottom: var(--space-3); font-size: 15px; }
.intake-invite input[readonly] { font-size: 14px; text-overflow: ellipsis; }

/* Summary */
.intake-summary-card { margin-bottom: var(--space-5); }
.intake-summary-count { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.intake-summary-line { margin-top: var(--space-2); font-size: 15px; color: var(--text-secondary); }

@media (min-width: 720px) {
  .intake-nav {
    position: static;
    margin: 0;
    padding: 0;
    border-top: 0;
    background: transparent;
    justify-content: space-between;
  }
  .intake-next { flex: 0 0 auto; min-width: 160px; }
}
