body {
  font-family: Arial;
  background: #f8fafc;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.subtitle {
  color: #64748b;
  margin-bottom: 20px;
}

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

.card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.name {
  font-weight: 600;
}

.title {
  font-size: 13px;
  color: #64748b;
}

.rating {
  color: #f59e0b;
  font-size: 14px;
}

.exp {
  font-size: 12px;
  margin-top: 4px;
}

.btn {
  margin-top: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: #0b5cff;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}


.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
}

.subtitle {
  color: #64748b;
  margin: 0 0 4px 0;
  font-size: 18px;
}

.join-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #0b5cff;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(11, 92, 255, 0.18);
  transition: all 0.2s ease;
}

.join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 92, 255, 0.24);
}

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

.card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin-bottom: 12px;
  object-fit: cover;
}

.name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.title {
  font-size: 13px;
  color: #64748b;
  min-height: 32px;
}

.rating {
  color: #f59e0b;
  font-size: 14px;
  margin-top: 6px;
}

.rating span {
  color: #b45309;
  font-weight: 600;
  margin-left: 4px;
}

.exp {
  font-size: 12px;
  margin-top: 6px;
  color: #334155;
}

.tags {
  margin-top: 10px;
  min-height: 48px;
}

.tags span {
  background: #eef2ff;
  color: #4338ca;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin: 2px;
  display: inline-block;
}

.btn {
  margin-top: 12px;
  padding: 8px 12px;
  border: none;
  border-radius: 9px;
  background: #0b5cff;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.cta {
  margin-top: 42px;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid #dbeafe;
  text-align: left;
}

.cta h2 {
  margin: 0 0 8px 0;
  font-size: 26px;
}

.cta p {
  margin: 0 0 16px 0;
  color: #64748b;
  max-width: 760px;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .container {
    padding: 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

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

  .cta {
    padding: 20px;
  }
}


.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.filters input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chips span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
  cursor: pointer;
}

.filter-chips span.active {
  background: #0b5cff;
  color: #fff;
}


.badge.verified {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: #10b981;
}



/* ===== Join Modal ===== */
.modal.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 32px));
  margin: 60px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  padding: 22px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.join-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.form-row input,
.form-row textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  outline: none;
  background: #fff;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.btn-secondary-lite {
  padding: 10px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-weight: 600;
}



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

.phone-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
}

.field-note {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.skill-suggestions {
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  max-height: 180px;
  overflow-y: auto;
  margin-top: 6px;
}

.skill-suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.skill-suggestion-item:hover {
  background: #f8fafc;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-height: 16px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.skill-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #3730a3;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

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

  .phone-row {
    grid-template-columns: 1fr;
  }
}



/* ===== FORM INPUT MODERN STYLE ===== */
.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* select arrow fix */
.join-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* label spacing */
.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #334155;
  font-weight: 600;
}


.join-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #4CAF50, #2ecc71);
  color: white;
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.join-success h3 {
  margin-bottom: 10px;
}

.join-success p {
  color: #666;
  line-height: 1.5;
}


#joinSuccessState.hidden {
  display: none !important;
}


.join-success[hidden] {
  display: none !important;
}


/* ===== MODAL SCROLL FIX ===== */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 16px;
  box-sizing: border-box;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .modal {
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 16px;
    padding: 18px;
  }
}

.card-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 12px;
}


/* ===== FEATURED CONSULTANT UI ===== */
.badge-featured {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.strength-mini {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}


/* ===== FEATURED SECTION ===== */
.featured-section {
  margin-top: 28px;
  margin-bottom: 36px;
}

.featured-section.hidden {
  display: none;
}

.all-consultants-section {
  margin-top: 12px;
}

.section-header {
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0 0 6px 0;
  font-size: 24px;
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.featured-grid .card {
  border: 1px solid #fde68a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}


.pill {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 6px 0 0;
}

#highlights {
  padding-left: 18px;
}

#highlights li {
  margin-bottom: 6px;
}
