/* Nicobay Delivery Flow Section */

.nicobay-delivery-flow {
  background-color: rgb(var(--color-background));
  overflow: hidden;
}

.nicobay-delivery-flow__container {
  margin: 0 auto;
  padding: 0 30px;
}

.nicobay-delivery-flow__grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 0;
  min-height: 200px;
  align-items: stretch;
  border-radius: 5px;
  overflow: hidden;
}

/* Left Brand Panel */
.nicobay-delivery-flow__brand-panel {
  background-color: #196e0d;
  color: white;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.nicobay-delivery-flow__brand-content {
  max-width: 280px;
  width: 100%;
  margin-left: 2rem;
}

.nicobay-delivery-flow__main-title {
  font-family: var(--font-heading-family);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
  color: #f9fad2;
}

.nicobay-delivery-flow__subtitle {
  font-family: var(--font-body-family, var(--font-body-family));
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 1px;
  color: #f9fad2;
}

/* Right Steps Panel */
.nicobay-delivery-flow__steps {
  background-color: white;
  display: flex;
  gap: 2rem;
  align-items: stretch;
  justify-content: space-between;
  padding: 3rem 3rem 2rem;
  position: relative;
}

.nicobay-delivery-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
  padding-top: 0;
}

/* Connecting lines between steps */
.nicobay-delivery-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 50%;
  right: -50%;
  height: 2px;
  background-color: #e5e5e5;
  z-index: 1;
}

.nicobay-delivery-flow__step-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: #196e0d;
  border-radius: 50%;
  position: relative;
  z-index: 3;
}

.nicobay-delivery-flow__step-icon svg {
  width: 32px;
  height: 32px;
}

/* TODO: make it bigger or use proper svg - step 1 icon appears smaller than others */

/* All icons now have consistent viewBox sizes */

.nicobay-delivery-flow__step-number {
  font-family: var(--font-heading-family, var(--font-heading-family));
  font-size: 1.4rem;
  font-weight: 600;
  color: rgb(63, 134, 39);
  margin: 0 0 0.5rem 0;
  letter-spacing: 1px;
}

.nicobay-delivery-flow__step-description {
  font-family: var(--font-body-family, var(--font-body-family));
  font-size: 1.3rem;
  font-weight: 400;
  color: #535353;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.3px;
  text-align: left;
}

/* Mobile Responsive */
@media screen and (max-width: 990px) {
  .nicobay-delivery-flow__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .nicobay-delivery-flow__brand-panel {
    padding: 2rem 1.5rem;
    align-items: center;
    text-align: center;
  }

  .nicobay-delivery-flow__brand-content {
    margin-left: 0;
    text-align: center;
  }

  .nicobay-delivery-flow__main-title {
    font-size: 2.2rem;
  }

  .nicobay-delivery-flow__subtitle {
    font-size: 1.2rem;
  }

  .nicobay-delivery-flow__steps {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nicobay-delivery-flow__step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
  }

  .nicobay-delivery-flow__step:last-child {
    margin-bottom: 0;
  }

  /* Vertical connecting lines for mobile */
  .nicobay-delivery-flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 60px;
    left: 39px;
    width: 2px;
    height: calc(100% + 2rem);
    background-color: rgb(63, 134, 39);
    z-index: 1;
  }

  .nicobay-delivery-flow__step-icon {
    margin-right: 20px;
    margin-bottom: 0;
    height: 80px;
    width: 80px;
  }

  .nicobay-delivery-flow__step-icon svg {
    width: 40px;
    height: 40px;
  }

  .nicobay-delivery-flow__step-content {
    text-align: left;
  }
}

@media screen and (max-width: 768px) {
  .nicobay-delivery-flow__container {
    padding: 0 15px;
  }
}
