/* FILE: css/how-it-works.css */

.how-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.how-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  border: 3px dashed var(--color-accent-primary);
  border-radius: 50%;
  background: white;
}

.how-toggle-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  background: #e0e6ea;
  padding: 0.5rem;
  border-radius: 999px;
  max-width: 320px;
  margin: 2rem auto 0 auto;
}

.how-tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  background-color: transparent;
  color: var(--color-dark-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

/* FILE: css/how-it-works.css (Corrected) */



.how-flow-section {
  padding: 0 1rem 0rem; /* top=0: no stacking with .block gap */
}



.how-step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
  margin: 1rem 0;
  transition: all 0.3s ease;
}


.how-step-number {
  background-color: #00709B;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}




.how-step-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 2px solid #e3eaf2;
}

.how-step-card span {
  font-weight: bold;
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(to bottom, #2C3E50, #00709B);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.how-step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.how-step-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.how-final-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.how-final-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.how-final-cta .how-btn {
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 0.5rem;
  background: linear-gradient(to right, #00FFCD, #00B8FF);
  color: white;
  text-decoration: none;
}

/* Hide inactive section */
.how-hidden {
  display: none;
}

@media (min-width: 768px) {
  .how-flow-section {
    max-width: 720px;
    margin: 0 auto;
  }
}



/* Top dark intro section for how it works page */

.how-hero-section {
  background: linear-gradient(180deg, #2C3E50 0%, #00709B 100%);
  padding: 4rem 1rem 3rem 1rem;
  color: white;
  text-align: center;
}

.how-hero-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.how-hero-icon-inner {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-dark-primary);
}

.how-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.how-hero-subtitle {
  font-size: 1rem;
  color: #cfdce7;
  max-width: 460px;
  margin: 0 auto;
}



/* Reuse global hero icon styles from index.css */

.hero-icon {
  width: 71px;
  height: 71px;
  border-radius: 50%;
  background-color: var(--white, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
}

.hero-icon-middle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: var(--color-worker, #2c3e50);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon-top {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background-color: var(--color-secondary-text, #eaecef);
}



.how-final-cta-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(to bottom, #2C3E50, #00709B);
  padding: 3rem 1.5rem 4rem 1.5rem;
  margin-bottom: 0rem;
  box-sizing: border-box;
}


.how-final-cta-box {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.how-final-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
}

.how-final-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
   background: linear-gradient(90deg, var(--color-dark-secondary), var(--color-dark-primary));
  border-radius: 999px;
  text-decoration: none;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.how-final-btn:hover {
  transform: scale(1.03);
}




/* Toggle Section as a separate block */
.how-toggle-section {
  background-color: var(--color-light-bg);
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
}

.how-toggle-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  background: #e0e6ea;
  padding: 0.5rem;
  border-radius: 999px;
  max-width: 320px;
  margin: 0 auto;
}

.how-tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  background-color: transparent;
  color: var(--color-dark-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

/* FILE: css/how-it-works.css (Corrected) */

.how-tab-btn.active {
  background: linear-gradient(90deg, var(--color-dark-secondary), var(--color-dark-primary));
  color: white;
}

/* Gradient version only for client CTA */
#client .how-final-btn {
  background: linear-gradient(to right, #00FFCD, #00B8FF);
  color: var(--color-dark-primary);
  font-weight: 600;
  box-shadow: none;
}




/* FILE: css/how-it-works.css (Add this new rule) */

.how-tab-btn.client-active {
    background: linear-gradient(to right, var(--color-accent-primary), var(--color-accent-secondary));
    color: var(--color-dark-primary);
    font-weight: 700;
}


/* FILE: css/how-it-works.css (Add this new rule) */

/* This rule targets every second step card and reverses its layout */
.how-step-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* This ensures the text in the reversed cards is aligned to the right */
.how-step-card:nth-child(even) > div {
    text-align: right;
}


/* FAQ-only: make the space under the toggle minimal */
.how-toggle-section { padding-bottom: 0 !important; }
.how-toggle-section { padding-top: 0 !important; }



/* Worker CTA (dark theme) */
#worker-cta .how-final-btn {
  background: linear-gradient(90deg, var(--color-dark-secondary), var(--color-dark-primary));
  color: #fff;
  font-weight: 700;
}

/* Client CTA (accent theme) */
#client-cta .how-final-btn {
  background: linear-gradient(to right, var(--color-accent-primary), var(--color-accent-secondary));
  color: var(--color-dark-primary);
  font-weight: 700;
  box-shadow: none; /* optional: removes inset shadow */
}
