/* Step 5: Delivery form */
.bw-step5 { position: relative; width: 100%; }

.bw-step5__card{
  width: min(1080px, 92vw);
  margin: 0 auto;
  background: #f6f0e6;
  border-radius: 26px;
  padding: 42px 46px;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 34px;
  align-items: start;
}
.bw-step5__logo_container{
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  max-width: 350px;
  margin: auto;
}

.bw-step5__divider{
  width: 2px;
  background: rgba(0,0,0,.12);
  border-radius: 2px;
  align-self: stretch;
}

.bw-step5__logo{
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  /*margin-bottom: 18px;*/
}

.bw-step5__left-title{
  font-family: "Helvetica", Sans-serif;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 18px 0;
  color: #222;
}

.bw-step5__left-sub{
  font-family: "Helvetica", Sans-serif;
  font-size: 14px;
  color: #444;
  margin-bottom: 18px;
}

.bw-step5__right-title{
  font-family: "Helvetica", Sans-serif;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 18px 0;
  color: #222;
}

.bw-step5__field{ margin: 0 0 22px 0; }
.bw-step5__label{
  display: block;
  font-family: "Helvetica", Sans-serif;
  font-size: 16px;
  color: #222;
  margin: 0 0 8px 0;
}

.bw-step5__input{
  width: 100%;
  height: 52px;
  padding: 0 16px;
  box-sizing: border-box;

  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 8px;

  font-family: "Helvetica", Sans-serif;
  font-size: 16px;
  color: #222;
  outline: none;

  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.bw-step5__input:focus{
  border-color: rgba(0,0,0,.22);
}

.bw-step5--needs-input .bw-step5__card{
  animation: bwStep5Shake .55s cubic-bezier(.2,.9,.25,1);
}

@keyframes bwStep5Shake{
  0%{ transform: translateX(0); }
  20%{ transform: translateX(-7px); }
  40%{ transform: translateX(7px); }
  60%{ transform: translateX(-5px); }
  80%{ transform: translateX(5px); }
  100%{ transform: translateX(0); }
}

@media (max-width: 768px){
  .bw-step5__card{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 18px;
    border-radius: 20px;
  }
  .bw-step5__divider{ display:none; }
  .bw-step5__left-title{ font-size: 30px; }
  .bw-step5__right-title{ font-size: 26px; }

  /* En mobile el shake interfiere con el scroll interno del formulario.
     Se mantiene el bloqueo de avance, pero sin animación. */
  .bw-step5--needs-input .bw-step5__card{
    animation: none !important;
  }
}


.bw-step5__actions{
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.bw-step5__btn{
  background: #22211F;
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 54px;
  padding: 0 70px;
  font-family: "Helvetica", Sans-serif;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

.bw-step5__btn.is-disabled,
.bw-step5__btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
}


.bw-step5__req{ margin-left:8px; color: inherit; }


@media (768px <= width <= 1485px){
  .bw-step5__logo {
    max-width: 350px!important;
    margin-left: auto!important;
    margin-right: auto!important;
  }
  .bw-step5__card {
    width: 100%!important;
    padding: 25px!important;
    gap: 15px!important;
  }
  .bw-step5__field {
    margin: 0 0 15px 0!important;
  }
}

/* Pickup local */
.bw-step5__pickup{ margin: 0 0 14px 0; }
.bw-step5__check{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Helvetica", Sans-serif;
  font-size: 16px;
  color: #222;
  cursor: pointer;
  user-select: none;
}
.bw-step5__checkbox{
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #22211F;
}
.bw-step5__pickupInfo{
  background: rgba(255,255,255,.65);
  border: 1px dashed rgba(0,0,0,.20);
  border-radius: 10px;
  margin: 0 0 14px 0;
  padding: 0 16px;
  font-family: "Helvetica", Sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #222;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);

  /* Collapsed by default (pickup unchecked) */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: max-height .25s ease, opacity .20s ease, transform .20s ease, padding .20s ease, margin .20s ease;
}

.bw-step5__pickupInfo.is-open{
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  padding: 14px 16px;
  margin: -6px 0 0 0;
}


/* Field errors (UX validation) */
.bw-step5__field.is-error .bw-step5__input{
  border-color: rgba(176,0,32,.55);
  box-shadow: 0 6px 16px rgba(176,0,32,.10);
}

.bw-step5__field-error{
  margin-top: 6px;
  font-family: "Helvetica", Sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: #b00020;
}
