/* ============================================
   Team Management Styles
   ============================================ */

/* ---------- Join Our Team Form ---------- */

.join-team-page {
  background: #f7f9fc;
}

.join-team-hero {
  padding: 84px 5vw 20px;
  background: linear-gradient(180deg, #f6f8fb 0%, #f9fbfd 100%);
}

.join-team-intro {
  padding-top: 10px;
  padding-bottom: 10px;
  background: #f9fbfd;
}

.join-team-content {
  max-width: 760px;
  margin: 0 auto;
}

.team-form-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  padding: 2.5rem 2.75rem;
}

.team-form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eaedf2;
}

.team-form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.join-team-form-section .display {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-top: .6rem;
  margin-bottom: 1rem;
}

.team-form-section-desc {
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin: -0.5rem 0 1.25rem;
}

.team-form-group-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0;
}

.team-form-field--checks {
  gap: 0.35rem;
}

.team-form-checkfield-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.team-form-field--checks .team-form-checkgroup {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d4dae2;
  border-radius: 0;
  background: #fff;
  min-height: 3rem;
  box-sizing: border-box;
}

.team-form-checkgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.team-form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  cursor: pointer;
}

.team-form-check input {
  width: auto;
  margin: 0;
}

.team-form-other-input {
  display: none;
  width: 100%;
  margin-top: 0;
}

.team-form-consent-field {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.team-form-consent-item {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: center;
  width: 100%;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.45;
  cursor: pointer;
}

.team-form-consent-item span {
  display: block;
  margin: 0;
  min-width: 0;
  line-height: 1.45;
}

.team-form-consent-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  accent-color: var(--ocean-2);
}

.team-form-error-list {
  margin: 0;
  padding-left: 1.1rem;
  text-align: left;
}

.team-form-error-list li + li {
  margin-top: 0.35rem;
}

.team-license-field {
  display: none;
}

.team-form-section-title {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ocean-2);
}

.team-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.team-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-form-full {
  grid-column: 1 / -1;
}

.team-form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}

.team-form-field .required {
  color: #dc3545;
}

.team-form-field input,
.team-form-field select,
.team-form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d4dae2;
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.team-form-field input:focus,
.team-form-field select:focus,
.team-form-field textarea:focus {
  outline: none;
  border-color: var(--ocean-2);
  box-shadow: 0 0 0 3px rgba(11, 60, 112, 0.08);
}

.team-form-field textarea {
  min-height: 80px;
  resize: vertical;
}

.team-form-field input[type="file"] {
  padding: 0.5rem 0;
  border: 0;
  font-size: 0.85rem;
}

.team-form-hint {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin: 0;
}

.team-form-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.team-form-actions .cta-primary {
  border-radius: 0;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  color: #fff;
}

.team-form-note {
  flex: 1;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}

.team-form-feedback {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.team-form-feedback.is-success {
  background: var(--sage-pale);
  color: var(--sage);
}

.team-form-feedback.is-error {
  background: #fff0f0;
  color: #c00;
}

/* ---------- Team Directory ---------- */

.team-directory-page {
  background: #f7f9fc;
}

.team-directory-hero {
  padding: 84px 5vw 20px;
  background: linear-gradient(180deg, #f6f8fb 0%, #f9fbfd 100%);
}

.team-directory-hero .section-head {
  margin-bottom: 0;
  text-align: center;
  width: min(1280px, calc(100% - 2rem));
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.team-directory-hero .display {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-top: .6rem;
  margin-bottom: 1rem;
  text-align: center;
}

.team-directory-hero .section-intro {
  margin: 0 auto;
  color: var(--ink-3);
  max-width: 760px;
}

.team-directory-main {
  padding-top: 10px;
}

.team-directory-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-category-group {
  width: min(1280px, calc(100% - 2rem));
  max-width: 1280px;
  margin: 0 auto;
}

.team-category-head {
  text-align: left;
  margin-bottom: 1.4rem;
}

.team-category-title {
  margin: 0;
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: var(--ink, #1f2d4d);
  line-height: 1.2;
}

.team-category-description {
  margin: 0.5rem 0 0;
  max-width: 860px;
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.65;
}

.team-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
  justify-content: start;
  gap: 1.25rem;
  width: 100%;
}

.team-member-card {
  background: var(--ocean-pale, #e8f4f8);
  border: 0;
  border-radius: 22px;
  padding: 1.75rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  min-height: 100%;
  transition: filter 0.2s ease;
  width: 100%;
}

.team-member-card:hover {
  filter: brightness(0.96);
}

.team-member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.25rem;
  background: rgba(11, 60, 112, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paragraph-color, #667085);
  flex-shrink: 0;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-initial {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: 2rem;
  color: var(--ink-3);
  font-weight: 700;
}

.team-member-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  width: 100%;
}

.team-member-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink, #1f2d4d);
  margin: 0;
  line-height: 1.35;
}

.team-member-role {
  font-size: 0.8rem;
  color: var(--ocean, #0b3c70);
  font-weight: 500;
  line-height: 1.4;
}

.team-member-experience {
  font-size: 0.78rem;
  color: var(--paragraph-color, #667085);
  line-height: 1.4;
}

.team-member-availability {
  display: inline-flex;
  align-self: center;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 50px;
  line-height: 1.35;
}

.team-member-availability.full_time {
  background: #d4edda;
  color: #155724;
}

.team-member-availability.part_time {
  background: #fff3cd;
  color: #856404;
}

.team-member-availability.on_call {
  background: #cce5ff;
  color: #004085;
}

.team-member-expertise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.team-member-skill {
  font-size: 0.68rem;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  border: 1px solid rgba(11, 60, 112, 0.1);
  border-radius: 50px;
  line-height: 1.3;
}

.team-member-info > * {
  max-width: 100%;
}

.team-member-skill-more {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
  font-weight: 600;
}

.team-directory-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-3);
}

.team-directory-content {
  background: #fff;
  padding: 48px 5vw;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .team-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .join-team-page .container {
    padding-left: 0;
    padding-right: 0;
  }

  .team-form-wrap {
    padding: 1.5rem;
  }

  .team-form-grid {
    grid-template-columns: 1fr;
  }

  .team-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .team-form-actions .cta-primary {
    width: 100%;
    text-align: center;
  }

  .team-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .team-category-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
