/* keep joinnow.css for base styling; this file is additions/overrides */

/* --------- Step-specific eyebrows --------- */

.step[data-view="1"] .qhead::before{
  content:"Expert profile · Step 1 of 4";
}

.step[data-view="2"] .qhead::before{
  content:"Experience · Step 2 of 4";
}

.step[data-view="3"] .qhead::before{
  content:"Verification · Step 3 of 4";
}

.step[data-view="4"] .qhead::before{
  content:"Account details · Step 4 of 4";
}

/* --------- ACCORDION (Step 1) --------- */

.accordion{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));   /* 2 columns on desktop */
  gap:16px 18px;
  margin-top:4px;
}

@media (max-width:840px){
  .accordion{
    grid-template-columns:1fr;                     /* stack on mobile */
  }
}

.acc-item{
  border:1px solid #e1e2e7;
  border-radius:14px;
  background:#fff;
  overflow:hidden;

  transition:box-shadow .15s, border-color .15s, transform .1s;
}

.acc-item:hover{
  border-color:#c6d3f0;
  box-shadow:0 10px 22px rgba(22,35,74,.08);
  transform:translateY(-1px);
}

.acc-header{
  width:100%;
  padding:12px 16px;
  background: white;
  border:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  font-weight:500;
 color: #686868;
  font-size:0.98rem;
}

.acc-header span{
  display:flex;
  align-items:center;
  gap:8px;
}

.acc-header i.fa-chevron-down{
  font-size:0.86rem;

  transition:transform .15s;
}

.acc-item.open .acc-header i.fa-chevron-down{
  transform:rotate(-180deg);
}

.acc-body{
  padding:10px 16px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  background:#fff;
}

.acc-body[hidden]{display:none!important;}

.micro-row{
  display:flex;
  gap:10px;
  align-items:center;
  padding:4px 0;
  font-size:0.95rem;
  color:#40424a;
}

.micro-row input{
  width:18px;
  height:18px;
}

/* subtle bullet / left border hint */
.acc-item.open{
  border-color:#b9c8f0;
}

/* --------- EXPERIENCE SLIDER (Step 2) --------- */

.exp-slider-wrap{
  max-width:480px;
  margin-top:8px;
}

.exp-value{
  text-align:left;
  font-size:2.2rem;
  font-weight:700;
  margin-bottom:8px;
}

.exp-value span{
  color:#1f2740;
}

.exp-slider{
  width:100%;
  -webkit-appearance:none;
  appearance:none;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,#d4ddf0,#edf1fb);
  outline:none;
  position:relative;
}

.exp-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  border:3px solid #4d87de;
  box-shadow:0 6px 14px rgba(77,135,222,.45);
  cursor:pointer;
}

.exp-slider::-moz-range-thumb{
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  border:3px solid #4d87de;
  box-shadow:0 6px 14px rgba(77,135,222,.45);
  cursor:pointer;
}

.exp-slider::-moz-range-track{
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,#d4ddf0,#edf1fb);
}

.exp-labels{
  display:flex;
  justify-content:space-between;
  margin-top:6px;
  font-size:0.9rem;
  color:#767883;
}

/* --------- Validation helper (already used by JS) --------- */

[hidden]{display:none!important;}
.field-error{color:#b3261e;font-size:.9rem;margin-top:6px}
.input-error{border-color:#b3261e!important}


/* Highlight macro when it contains selected micros */
.acc-item.selected-macro .acc-header {
  background:#d7e3fb;

}


/* ============= */
/* MACRO SELECTOR */
/* ============= */

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  width: 100%;
  background: #f7f9fc;

  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease;
}

.acc-header:hover {
  background: #eef3ff;
}

.acc-item.selected-macro{
  background: #f3f5f9;
  border: 1px solid #4d87de;

}

/* Label left side */
.acc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;

}

/* Round selector on right */
.macro-indicator {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #c5cde3;
  background: white;
  flex-shrink: 0;
  transition: all 0.22s ease;
  position: relative;
}

.acc-item.selected-macro .macro-indicator {
  border-color: #4d87de;
  background: #4d87de;

}

.acc-item.selected-macro .macro-indicator::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: white;
}

