/* Add color variables to :root for consistent theming */
:root {
  --blue: #307bbf;
  --white: #fff;
  --light-blue: #c1e5f5;
  --background-grey: #f3f3f3;
  --scrollbar-bg: #e0e0e0;
  --scrollbar-thumb: #bfc9d1;
  --breadcrumb-link: #e6007e;
  --breadcrumb-link-hover: #307bbf;
  --breadcrumb-text: #3a3a3a;
}

/* --- Step Layout --- */
.steps-wrapper {
  overflow-x: hidden; /* Hide horizontal scrollbar */
  display: flex;
  flex-direction: row; /* Use flexbox to place steps next to each other */
  margin-top: 180px; /* Space from top of the page */
  margin-bottom: 80px;
}

.step {
  min-width: 100vw;
  max-width: 100vw;
}

.nav-section {
  margin-left: auto;
  margin-right: auto;
  max-width: 65%;
  height: auto;
  min-height: 350px;
  padding-bottom: 50px;
}

/* --- Step Buttons --- */
.step-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap; /* Allow buttons to wrap to new lines */
  justify-content: center; /* Center buttons horizontally */
  padding-top: 20px;
}

.btn {
  background: var(--blue);
  color: var(--white);
  border-radius: 20px;
  font-weight: 500;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: background 0.2s, opacity 0.2s;
  height: auto;
  display: flex;
  flex-direction: column;
}

.btn:hover {
  opacity: 0.8;
}

.step1 {
  width: 35%;
  height: auto;
}

.step2 {
  width: 32%;
  height: 50px;
}
.step3 {
  background: var(--light-blue); /* light-blue */
  color: #000;
  height: auto;
  width: 45%;
  align-items: flex-start;
  text-align: left;
}

/* --- Step Bottom --- */
.content-section {
  max-width: 65%;
  margin: 0 auto;
  background: var(--background-grey);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px 32px 48px 32px;
  height: 500px;
  overflow-x: hidden;
  box-sizing: border-box;
}
.content-section::-webkit-scrollbar {
  width: 8px;
  background: var(--scrollbar-bg);
  border-radius: 8px;
}
.content-section::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  width: 100%;
  height: 45px;
  background: var(--background-grey);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 0 0 60px;
  position: absolute; /* Always stuck to bottom of navbar */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%); /* Start hidden above the navbar */
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.breadcrumbs.visible {
  top: 90px; /* height of navbar */
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.breadcrumbs a {
  color: var(--breadcrumb-link);
  text-decoration: underline;
  font-weight: 600;
}
.breadcrumbs span {
  font-weight: bold;
  color: var(--breadcrumb-text);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--breadcrumb-link-hover);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-section h1,
  .step-content,
  .content-section > * {
    max-width: 95vw;
    width: 98%;
  }
  .step-content {
    flex-direction: column;
    gap: 20px;
  }
  .step-buttons {
    min-width: unset;
  }
  .progress-bar-container {
    top: 320px;
  }
}
@media (max-width: 600px) {
  .nav-section,
  .content-section {
    padding: 30px 0 30px 0;
  }
  .progress-bar-container {
    top: 220px;
  }
  .progress-bar {
    width: 90vw;
    min-width: 120px;
  }
  .step {
    min-width: 100vw;
  }
  .nav-section h1,
  .step-content,
  .content-section > *,
  .step:not(.first-step) .nav-section > *:not(.breadcrumbs) {
    max-width: 99vw;
    width: 99%;
  }
  .step-arrow {
    left: 10px;
    top: 80px;
    width: 40px;
    height: 40px;
  }
  .breadcrumbs {
    font-size: 0.95em;
    padding-left: 20px;
    height: 20px;
  }
}
