/* ===================================================== */
/* PAGE  ORDER OPTIONS
/* ===================================================== */

.order-options {
  margin-bottom: 30px;
  & h3 {
    color: var(--dark-green);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
  }
  & .cta {
    max-width: 100%;
    width: 100%;
  }

}

.order-options-content {
  margin-top: 30px;
}

.order-option {
  width: 100%;
  max-width: 400px;
  margin: auto;
  display: flex;;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;

  & img {
    max-width: 80px;
  }

  & p {
    margin-bottom: 0;
    font-size: 1.3rem;
  }
}

/* ===================================================== */
/*  PAGE  ORDER STEP 1
/* ===================================================== */

/* STEPS  NAVIGATION */

.order-steps {
  margin-top: 80px;
}

.row-steps{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: relative;
  gap: 10vw;
  padding: 0 10%;
}

.row-steps:after {
  position: absolute;
  content: "";
  display: block;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background-color: var(--graphite);
  margin-top: 60px;
  z-index: 0;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  flex: 1;
  position: relative;
  z-index: 1;

  & span {
    font-size: 0.9rem;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    height: 3rem
  }
  & .order-step-circle {
    width: 40px;
    aspect-ratio: 1;
    border: 3px solid #000;
    border-radius: 100%;
    transition: 0.3s ease-in-out;
    background-color: #fff;
  }

  & .order-step-circle:hover {
    cursor: pointer;
    background-color: var(--graphite);
  }
}

.order-step-current,
.order-step-completed {
  & span {
    color: var(--dark-green);
    font-weight: 700;
  }
  & .order-step-circle {
    background-color: var(--dark-green);
    border: none
  }
}




/* ===================================================== */
/*  PAGE  ORDER STEP 2 - ORDER DETAILS */
/* ===================================================== */

/* FILE DROP AREA */

.files-wrapper {
  display: flex;
  gap: 20px;
}

.files-wrapper p {
  margin-bottom: 0;
}

.file-wrappper-vertical {
  flex-direction: column;

  & .file-drop-area-green {
    height: 120px;
}
}
.file-wrappper-vertical .filer-drop-element {
  width: 100%;
}

.filer-drop-element {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 50%;
}

.filer-drop-element .form-error {
  align-self: flex-start;
  width: 100%;
}


.file-drop-area-green {
  width: 100%;
  height: 80px;
  margin: 0 auto;
  background: hsla(149, 100%, 17%, 0.25);
  transition: 300ms;
  position: relative;
  z-index: 2;
  border: 1px solid var(--dark-green);

  &:hover {
    cursor: pointer;
    background: #ffffff71;
  }
   & .drop-file-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    z-index: 5;
    fill: var(--dark-green);
    transition: opacity 0.3s ease;
  }
  & rect {
    fill: var(--dark-green);
  }
  & .file-drop-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  & .file-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-green);
    font-size: 0.85rem;
    text-align: center;
    padding: 0 10px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 6;
    word-break: break-all;
    font-weight: 500;
  }
  & .drop-file-icon.hidden {
    opacity: 0;
    pointer-events: none;
  }
}

/* QUANTITY INPUT  */
/* SLIDER */
/* --- base --- */

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
 padding: 10px;
 margin-top: 20px;
  color: white;
}

.slider-head h3 {
  font-size:1.2rem;
  color: #000;
  margin-bottom: 0;
}

.value-box {
  padding: 5px 20px;
  color: #000;
  display: flex;
  align-items: center;
}

#qty-val {
  font-weight: bold;
  margin-right: 5px;
}

.slider-wrap {
  position: relative;
  padding: 20px 0;
}

#qty {
  -webkit-appearance: none;
  width: 100%;
  height: 16px;
  background: transparent;
  margin: 0;
  padding: 0;
}

#qty:focus {
  outline: none;
}

#qty::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: hsla(149, 100%, 17%, 0.25);
}

#qty::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: var(--dark-green);
  border-radius: 50%;
  cursor: pointer;
  margin-top: -7px;
}

#qty::-moz-range-track {
  width: 100%;
  height: 4px;
  background: #d3d3d3;
}

#qty::-moz-range-thumb {
  height: 20px;
  width: 20px;
  background: var(--dark-green);
  border-radius: 50%;
  cursor: pointer;
}

.ends {
  display: flex;
  justify-content: space-between;
  color: #000;
  font-size: 14px;
  padding: 0 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sldier-wrap p {
  text-align: right;
}
.sldier-wrap a {
  text-decoration: underline;
}

/* ORDER DATES */
#order-step-1 {
  & .order-dates p {
    font-weight: 500;
  }
  & .order-dates-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 15px;
  }

  & .date-button {
    outline: 1px solid var(--dark-green);
    color: var(--dark-green);
    padding: 15px 30px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    width: calc(100% / 3 - 10px);
    text-align: center;
    font-weight: 500;
  }
  & .date-button:hover {
    background: hsla(149, 100%, 17%, 0.25);
    color: var(--dark-green);
  }

  & .date-button-clicked {
    background-color: var(--dark-green);
    color: #fff;
  }
}

/* ORDER SUMMARY */
.order-summary {
  & table {
    width: 100%;
    color: #575756;
  }
  & tr {
    height: 40px;
    vertical-align: middle;
  }
  & .price {
    text-align: right;
    font-size: 1.3rem;
    font-weight: 700;
  }
  & .price-total {
    font-size: 2rem;

  }
}

/* ===================================================== */
/*  PAGE  ORDER STEP 3  - DELIVERY OPTIONS
/* ===================================================== */

.delivery-options-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

  & .delivery-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--pale-green);
    border: 1px solid var(--dark-green);
    cursor: pointer;
    transition: 0.3s ease-in-out;

    &:hover {
      transform: scale(1.02);
    }
  }

  & p {
    margin-bottom: 0;
    text-align: center;
  }

  & img {
    max-width: 60px;
  }

  & .delivery-option-selected {
    transform: scale(1.02);
    border: 3px solid var(--dark-green);
    color: #fff;
  }

}

/* FORM */
.form-delivery {
  margin-top: 30px;
}

.form-delivery h3 {
  font-size: 1.5rem;
  color: var(--dark-green);
  font-weight: 600;
  text-transform: uppercase;
}


textarea {
  width: 100%;
  min-height: 200px;
  padding: 10px;
  border: 1px solid var(--graphite);
  border-radius: 0;
  transition: 0.3s ease-in-out;
}

textarea:focus {
  outline: none;
  box-shadow: 0 10px 20px hsla(149, 100%, 17%, 0.15);
}

/* ===================================================== */
/*  PAGE  ORDER STEP 4 - PAYMENT METHOD */
/* ===================================================== */

.payment-options-wrapper {
  & form {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  & .row-steps {
    width: 100%;
  }

  & .row-steps:after {
    top: -20px;;
    left: 0;
    transform: translateX(0);
  }
}

.payment-options-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;

  & .payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    background: var(--pale-green);
    border: 2px solid var(--dark-green);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px hsla(149, 100%, 17%, 0.2);
    }

    & .payment-radio {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    & .payment-option-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
      width: 100%;
    }

    & .payment-icon {
      width: 80px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 50%;
      transition: all 0.3s ease-in-out;

      & svg {
        width: 50px;
        height: 50px;
        stroke: var(--dark-green);
        transition: all 0.3s ease-in-out;
      }
    }

    & p {
      margin: 0;
      text-align: center;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--dark-green);
      transition: all 0.3s ease-in-out;
    }

    &.payment-option-selected {
      background: var(--dark-green);
      border: 3px solid var(--dark-green);
      transform: translateY(-5px);
      box-shadow: 0 10px 25px hsla(149, 100%, 17%, 0.3);

      & .payment-icon {
        background: rgba(255, 255, 255, 0.9);

        & svg {
          stroke: var(--dark-green);
        }
      }

      & p {
        color: #fff;
      }
    }
  }
}

/* ===================================================== */
/*  PAGE  ORDER STEP 5 - ORDER SUMMARY */
/* ===================================================== */

.summary-wrapper {
  gap: 10%;
  & .col-md-6 {
    display: flex;
    flex-direction: column;
    width: 40%;
  }
}

.summary-header h3 {
    font-size: 1rem;
    color: var(--graphite);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 40px;
    padding-left: 10%
  }

  .summary-header:first-child {
    margin-top: -40px
  }


.summary-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  & p {
    margin-bottom: -0.5rem;
  }
  & .summary-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* ⬅ centers the SVG + text vertically */
  }
  & .summary-copy svg {
      display: block;
    }

}
  #summary-delivery {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Summary table */
  .summary-table {
    width: 100%;
    color: var(--graphite);

    & tr {
      height: 30px;
      vertical-align: middle;
    }

    & .summary-table-label {
      font-weight: 600;
    }
    & .summary-table-value {
      font-weight: 400;
      text-align: right;
    }
  }
  #summary-courier-logo {
    width: 80px;
  }

  /* Consents */

  .consent-wrapper {
    margin-top: 30px;
    & p, label {
      font-size: 0.9rem;
      font-weight: 300;
    }
  }

/* ===================================================== */
/*  PAGE  ORDER STEP 6 - ORDER PROCESS TRACKING */
/* ===================================================== */

  .order-steps-process {

    & .order-step-icon {
      width: 80px;
      height: 80px;
      margin-bottom: 30px;
      fill: var(--graphite);
    }

    & .row-steps {
      padding: 0 10%;
    }

    & .row-steps:after {
      margin-top: 33px;
      width: 80%;
    }

    & span {
      margin-top: 20px;
    }

  }

  /* ===================================================== */
/* PAGE  ORDER OPTIONS CUSTOM STEP 1
/* ===================================================== */

.custom-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.order-custom-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 280px;
  gap: 20px;

  & .order-custom-option-icons {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  & span {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-green);
  }

  & img {
    width: 60px;
  }
  & p {
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
  }
  & .cta {
    margin-top: 0;
  }
}

  /* ===================================================== */
/* PAGE  ORDER OPTIONS CUSTOM STEP 2
/* ===================================================== */

.order-custom-steps {
  margin-top: 80px;

  & .row-steps:after {
    /* margin-top: 33px; */
    width: 60%;
  }
}

.custom-quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  & label {
    font-weight: 500;
  }
  & #qty-custom {
    width: min(100%, 500px);
  }
}

  /* ===================================================== */
/* PAGE  ORDER OPTIONS CUSTOM STEP 3 - SUMMARY
/* ===================================================== */
.summary-file-list {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--graphite);
}


/* ===================================================== */
/* ===================================================== */
/* MEDIA QUERIES */
/* ===================================================== */
/* ===================================================== */

@media (max-width: 1200px) {
  .order-steps-process {

    & .row-steps {
      overflow: scroll;
    }

    & .row-steps:after {
      width: calc(80% + 40px);
      left: 0;
      min-width: 450px;
      transform: translateX(15%);
    }

    & span {
      margin-top: 20px;
    }

  }
}

@media (max-width: 992px) {

  .order-summary {
    margin-top: 60px;
  }
  .summary-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5%;

    & .col-md-6 {
      width: 100%;
      padding-inline: 5%;
    }
  }
}

@media (max-width: 768px) {
  .order-option {
    & img {
      max-width: 60px;
    }

    & p {
      margin-bottom: 0;
      font-size: 1.1rem;
    }
  }
  .order-step span {
    font-size: 0.7rem;
  }

  /* Order summary steps */
  .order-steps-process {
    & span {
      margin-top: 20px;
    }
    & .order-step-icon {
      width: 50px;
      margin-bottom: 10px;
    }

    & .row-steps:after {
      margin-top: 15px;
    }

  }
  /* CUSTOMER ORDER OPTIONS */
  .custom-options-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .order-custom-options {
    width: min(100%, 400px);
    margin: auto;
  }

}

@media (max-width: 576px) {
  .order-step {
    & .order-step-circle {
      width: 30px;
    }
  }
  .row-steps {
    gap: 30px;
  }
  .order-step {
    flex: 0.75;
  }

  /* ORDER SUMMARY */
  .order-summary {
    margin-top: 50px;
    & td {
      font-size: 0.9rem;
    }
    & tr {
      height: 40px;
      vertical-align: middle;
    }
    & .price {
      text-align: right;
      font-size: 1rem;
      font-weight: 700;
    }
    & .price-total {
      font-size: 1.2rem;
    }
  }

    /* Delivery options */
  .delivery-options-content {
    grid-template-columns: repeat(2, 1fr);

    & p {
      margin-bottom: 0;
      text-align: center;
    }

    & img {
      max-width: 40px;
    }

  }

}
