/* Page template div id = checkout-quote  */
#checkout-quote {
  --gf-form-spinner-fg-color: #193f2e;
  position: relative;
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: #f1e9df;
  .header-wrap {
    position: relative;
    h2 {
      margin-bottom: 15px;
      padding: 0;
      font-family: 'NT Wagner', sans-serif;
      font-size: 51px;
      font-weight: 700;
      line-height: 56px;
      letter-spacing: -0.561px;
      @media (max-width: 550px) {
        font-size: 35px;
        font-weight: 700;
        line-height: 35px;
      }
    }
    p {
      font-family: Poppins, sans-serif;
      font-size: 19px;
      font-weight: 400;
      line-height: 22px;
      letter-spacing: -0.209px;
      margin: 0;
      @media (max-width: 550px) {
        font-size: 17px;
        line-height: 19px;
      }
    }
  }
  .page-content {
    padding: 80px 74px;
    border-radius: 50px;
    @media (max-width: 550px) {
      padding: 40px 30px;
    }
  }
}

.theme-green #checkout-quote .page-content {
  background: var(--color-pale-green);
}

.theme-blue #checkout-quote .page-content {
  background: var(--color-light-blue);
}

.theme-green #checkout-quote .header-wrap h2,
.theme-green #checkout-quote .header-wrap p {
  color: var(--color-dark-green);
}

.theme-blue #checkout-quote .header-wrap h2,
.theme-blue #checkout-quote .header-wrap p {
  color: var(--color-dark-blue);
}

.theme-green #checkout-quote .header-wrap h2 span {
  color: var(--color-light-green);
}

.theme-blue #checkout-quote .header-wrap h2 span {
  color: var(--color-blue);
}

/* =========== Gravity forms =================
10 = Quote form |
12 = Booking form 
=============================================== */
#gform_wrapper_12,
#gform_wrapper_13 {
  .gform_required_legend {
    display: none;
  }
  .gf_progressbar_wrapper,
  .gf_page_steps {
    margin-bottom: 45px;
    margin-top: 45px;
  }
  .gf_page_steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  label {
    position: relative;
    font-family: Poppins;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: -0.176px;
    margin-bottom: 10px;
    margin-top: 0;
  }
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  select,
  textarea {
    border-radius: 10px !important;
    background-color: #fff !important;
    padding: 10px 14px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    height: auto !important;
    color: #000000 !important;
    &:focus {
      outline-color: #193f2e;
    }
  }
  /* .gform_previous_button {
    display: none !important;
  } */
  .gform_page_fields .gform_fields {
    --gf-form-gap-x: 45px !important;
  }

  .gform-page-footer {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr);
    inline-size: 100%;
    margin-top: 20px;
    --gf-form-footer-gap: 0 !important;
    @media (max-width: 650px) {
      grid-template-columns: repeat(1, 1fr);
    }

    .gform-theme-button {
      background-color: #faa21b !important;
      color: #193f2e !important;
      transition: all 0.3s ease-in-out;
      &:hover {
        background-color: #f5d169 !important;
      }
    }
  }
  /* Address line 2 */
  .gchoice_12_39_1,
  .gchoice_13_19_1 {
    align-items: center;
  }
  #label_12_39_1,
  #label_13_19_1 {
    margin: 0 !important;
    color: #000000 !important;
    font-weight: 400;
  }
  #choice_12_39_1,
  #choice_13_19_1 {
    background-color: #f5d169 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border-color: #f5d169 !important;
    position: relative;
    display: grid;
    place-items: center;
    &:focus {
      outline-color: #193f2e;
    }
    &::before {
      content: '+';
      position: absolute;
      color: #193f2e;
      display: block !important;
      opacity: 1 !important;
      font-size: 30px;
      line-height: 20px;
      top: 3px;
    }
    &:checked::before {
      opacity: 0 !important;
    }
    &:checked::after {
      content: '-';
      position: absolute;
      color: #193f2e;
      display: block !important;
      opacity: 1 !important;
      font-size: 30px;
      line-height: 20px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  /* Validation errors */
  .gform_validation_errors {
    margin: 10px 0;
  }
  .gfield_error {
    .validation_message {
      color: #c02b0a !important;
      font-size: 1em;
    }
    input,
    textarea,
    select {
      outline: 1px solid #c02b0a !important;
    }
  }
}

.theme-green #gform_wrapper_12 label,
.theme-green #gform_wrapper_13 label {
  color: var(--color-dark-green) !important;
}

.theme-blue #gform_wrapper_12 label,
.theme-blue #gform_wrapper_13 label {
  color: var(--colr-dark-blue) !important;
}

/* ================================================= Quote form ID = 10 */
#gform_wrapper_12 {
  .gf_page_steps {
    display: flex;
    flex-wrap: nowrap !important;
    font-size: 1em;
    padding: 0;
    position: relative;
    width: 100%;
    gap: 0px !important;
    &::before {
      content: '';
      width: 426px;
      background: #faa21b;
      height: 2px;
      @media (max-width: 650px) {
        width: 176px;
      }
    }
    &::after {
      position: absolute;
      content: '';
      width: 12px;
      background: #faa21b;
      height: 12px;
      left: 0;
      border-radius: 50%;
      box-shadow: 213px 0px #faa21b;
      @media (max-width: 1270px) {
        box-shadow: 173px 0px #faa21b;
      }
      @media (max-width: 1024px) {
        box-shadow: 130px 0px #faa21b;
      }
      @media (max-width: 850px) {
        box-shadow: 110px 0px #faa21b;
      }
      @media (max-width: 768px) {
        box-shadow: 80px 0px #faa21b;
      }
      @media (max-width: 650px) {
        box-shadow: 60px 0px #faa21b;
      }
      @media (max-width: 500px) {
        box-shadow: 44px 0px #faa21b;
      }
      @media (max-width: 400px) {
        box-shadow: 34px 0px #faa21b;
      }
    }
    .gf_step {
      flex-direction: row;
      justify-content: center;
      margin: 0;
      border-radius: 50%;
      display: block;
      position: relative;
      width: 237px;
      @media (max-width: 650px) {
        width: 126px;
      }

      &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        top: 50%;
        left: 0px;
        transform: translateY(-50%);
      }

      &.gf_step_pending span,
      &.gf_step_completed span {
        width: 12px !important;
        height: 12px !important;
        min-inline-size: 12px !important;
        top: -4px;
      }

      &.gf_step_active span,
      &.gf_step_completed span {
        background: #faa21b !important;
        border-color: #faa21b !important;
      }
      &.gf_step_completed {
        &::before {
          background-color: #faa21b !important;
        }
        span::after {
          content: unset;
        }
      }
      &.gf_step_last {
        width: 32px;

        &::before {
          content: unset;
        }
      }
      .gf_step_label {
        display: none;
      }
      span {
        border: 2px solid;
        font-size: 0px;
        position: relative;
        @media (max-width: 550px) {
          width: 20px !important;
          height: 20px !important;
          min-inline-size: 20px !important;
          top: -4px;
        }
      }
    }
  }
  .gform-page-footer {
    gap: 5px;
    input[type='button'],
    input[type='submit'] {
      grid-column: span 8;
      @media (max-width: 1270px) {
        grid-column: span 6;
      }
      @media (max-width: 1024px) {
        grid-column: span 12;
      }
      @media (max-width: 650px) {
        grid-column: unset;
        width: 100%;
      }
    }
  }
}

.theme-green #gform_wrapper_12 .gf_page_steps .gf_step::before {
  background-color: var(--color-light-green);
}

.theme-green #gform_wrapper_12 .gf_page_steps .gf_step span {
  border-color: var(--color-light-green);
  background-color: var(--color-light-green);
}

.theme-blue #gform_wrapper_12 .gf_page_steps .gf_step::before {
  background-color: var(--color-blue);
}

.theme-blue #gform_wrapper_12 .gf_page_steps .gf_step span {
  border-color: var(--color-blue);
  background-color: var(--color-blue);
}

/* ================================================= booking form ID = 12 */
#gform_wrapper_13 {
  .gf_page_steps {
    display: flex;
    flex-wrap: nowrap !important;
    font-size: 1em;
    padding: 0;
    position: relative;
    width: 100%;
    gap: 0px !important;

    .gf_step {
      flex-direction: row;
      justify-content: center;
      margin: 0;
      border-radius: 50%;
      display: block;
      position: relative;
      width: 31px;
      text-align: center;

      &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #27a982;
        top: 50%;
        left: 0px;
        transform: translateY(-50%);
      }

      &.gf_step_pending span,
      &.gf_step_completed span {
        width: 12px !important;
        height: 12px !important;
        min-inline-size: 12px !important;
        top: -4px;
      }

      &.gf_step_active span,
      &.gf_step_completed span {
        background: #faa21b !important;
        border-color: #faa21b !important;
      }
      &.gf_step_completed {
        &::before {
          background-color: #faa21b !important;
        }
        span::after {
          content: unset;
        }
      }

      &.gf_step_first {
        text-align: left !important;
        width: 100% !important;
      }
      &.gf_step_last {
        text-align: right !important;
        width: 100% !important;
        &.gf_step_active::before {
          background-color: #faa21b;
        }
      }
      .gf_step_label {
        display: none;
      }
      span {
        background-color: #27a982;
        border: 2px solid #27a982;
        font-size: 0px;
        position: relative;
        @media (max-width: 550px) {
          width: 20px !important;
          height: 20px !important;
          min-inline-size: 20px !important;
          top: -4px;
        }
      }
    }
  }
  .gform-page-footer {
    margin-top: 30px;
    input[type='button'],
    input[type='submit'] {
      grid-column: span 12;
    }
  }
}

/* Gravity forms, page breaks css class = quote-pages */
.quote-pages {
  position: relative;
  .quote-fields {
    display: grid;
    grid-column: span 8;
    row-gap: 20px;
    column-gap: 30px;
    @media (max-width: 1270px) {
      grid-column: span 6;
    }
    @media (max-width: 1024px) {
      grid-column: span 12;
    }
    @media (max-width: 650px) {
      column-gap: 0px;
      .gfield {
        grid-column: span 12;
      }
    }
    .content-div {
      grid-column: span 12;
    }
    h3 {
      grid-column: span 12;
      font-family: 'NT Wagner', sans-serif;
      font-size: 30px;
      font-weight: 700;
      line-height: 33px;
      letter-spacing: -0.33px;
      margin-top: 0;
      margin-bottom: 0;
      text-transform: capitalize;
      @media (max-width: 550px) {
        font-size: 25px;
        line-height: 25px;
      }
    }
    .final-dets {
      margin-bottom: 0;
      font-size: 19px;
      color: #000000;
      font-weight: 400;
    }
    .fields-wrap {
      display: none;
    }
  }
  .sidecart-html {
    grid-column: span 4;
    @media (max-width: 1270px) {
      grid-column: span 6;
    }
    /* @media (max-width: 1024px) {
      grid-column: span 6;
    } */
    @media (max-width: 900px) {
      grid-column: span 12;
    }
  }
  .end-block {
    display: none;
  }
}

.theme-green .quote-pages .quote-fields h3 {
  color: var(--color-medium-green);
}

.theme-blue .quote-pages .quote-fields h3 {
  color: var(--color-medium-blue);
}

/* Side Cart */
#sidecart {
  padding: 40px 45px;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  @media (max-width: 1024px) {
    padding: 30px 35px;
    height: 80px;
  }
  @media (max-width: 500px) {
    padding: 20px 15px;
  }
  &.active {
    height: auto;
  }
  .mobile-expand {
    display: none;
    @media (max-width: 1024px) {
      display: block;
      position: absolute;
      right: 40px;
      color: #fff;
      top: 30px;
      font-size: 30px;
      font-weight: 500;
      cursor: pointer;
    }
    @media (max-width: 500px) {
      right: 15px;
      top: 20px;
      font-size: 25px;
    }
  }
  h3 {
    border-bottom: 2px solid;
    padding-bottom: 15px;
    margin-bottom: 25px;
    @media (max-width: 500px) {
      font-size: 20px;
    }
  }
  .woocommerce-Price-amount {
    color: #fff;
    font-weight: 600;
  }
  .tax span {
    color: #fff;
    font-size: 13px;
    font-weight: 300;
    font-style: italic;
  }
  .shipping-text {
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .title {
      font-size: 16px;
      font-weight: 600;
      line-height: 19px;
      letter-spacing: -0.176px;
      margin: 0;
      padding: 0;
    }
    .amount {
      font-size: 16px;
      font-weight: 400;
      line-height: 19px;
      letter-spacing: -0.176px;
      margin: 0;
      padding: 0;
    }
  }
  .cart-items {
    margin-bottom: 25px;
    p {
      color: #fff;
    }
  }
  .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .item-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
    }
    .wrap {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 15px;
      .item-remove {
        display: grid;
        place-items: center;
        height: 100%;
      }
      svg {
        border-radius: 50%;
        border: 1px solid #f26e67;
        height: 20px;
        width: 20px;
        padding: 4px;
      }
    }
  }
  .cart-totals {
    border-top: 2px solid;
    color: #fff;
    padding-top: 20px;
    .total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      span {
        font-size: 16px;
        font-weight: 700 !important;
        color: #fff;
      }
    }
    .tax {
      text-align: right;
      color: #fff;
      font-size: 13px;
      font-weight: 300;
      font-style: italic;
    }
  }
}
.clause {
  font-style: italic;
  color: #193f2e;
  font-size: 12px;
  left: 0;
  line-height: normal;
  margin: 25px 0px;
  text-align: center;
}

.theme-green #sidecart {
  background-color: var(--color-dark-green);
}

.theme-blue #sidecart {
  background-color: var(--color-dark-blue);
}

.theme-green #sidecart h3 {
  color: var(--color-pale-green);
  border-color: var(--color-light-green);
}

.theme-blue #sidecart h3 {
  color: var(--color-light-blue);
  border-color: var(--color-blue);
}

.theme-green #sidecart .cart-totals {
  border-color: var(--color-light-green);
}

.theme-blue #sidecart .cart-totals {
  border-color: var(--color-blue);
}

body .gform_wrapper .gform_body .gform_fields .gfield .gfield_description {
  font-size: 12px;
}

.page-template-quote.theme-green header .et_pb_section_1_tb_header.et_pb_section:nth-child(2) {
  background-color: var(--color-dark-green) !important;
}

.page-template-quote.theme-blue header .et_pb_section_1_tb_header.et_pb_section:nth-child(2) {
  background-color: var(--color-dark-blue) !important;
}

.page-template-quote #mega-menu-wrap-primary-menu li.mega-menu-item img.mega-menu-logo {
  filter: invert(1);
}

.page-template-quote
  #mega-menu-wrap-primary-menu
  #mega-menu-primary-menu
  > li.mega-menu-item
  > a.mega-menu-link,
.page-template-quote
  #mega-menu-wrap-primary-menu
  #mega-menu-primary-menu
  > li.mega-menu-flyout
  ul.mega-sub-menu
  li.mega-menu-item
  a.mega-menu-link {
  color: var(--color-black);
}
.gform_confirmation_message {
  margin-top: 20px;
  font-weight: 600;
}

#gform_wrapper_12 .gform_page_footer {
	position: relative;
}

#gform_ajax_spinner_12 {
	display: block;
	margin: 20px auto 0;
	text-align: center;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
}

@media (max-width: 1120px) {
	.page-template-quote .mega-menu-logo {
		filter: brightness(0.4);
	}
}
@media (max-width: 665px) {
	#checkout-quote {
		padding-top: 200px;
	}
}