/*
Redesign of booking page
*/

:root {
  --booking-color-red: #C03;
  --booking-color-offwhite: #F3F3F3;
  --booking-color-lightgray: #E7E7E6;
  --booking-color-darkgray: #777;
  --booking-color-gray: #CCC;
}

.toyota-btn {
  padding: 12px 24px;
  border-radius: 4px;
  background-color: var(--booking-color-red);
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
  color: #fff;
}

.toyota-btn:hover {
  background-color: var(--booking-color-lightgray);
  color: #202020;
}

.booking-steps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 48px;
}

.booking-progress-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.step {
  flex: 1;
  height: 6px;
  background-color: var(--booking-color-lightgray);
  border-radius: 4px;
}

.step.active,
.step.complete {
  background-color: var(--booking-color-red);
}

.step-content {
  display: none;
}

.booking-content {
  min-height: 100px;
  margin-bottom: 20px;
  margin-top: 32px;
}

.booking-nav-buttons {
  display: flex;
  justify-content: flex-start;
}

.booking-prev-btn {
  display: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #4E4F54;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
  align-items: center;
  gap: 8px;
}

.booking-prev-btn:hover {
  color: var(--booking-color-red);
}

.booking-prev-btn:hover path {
  fill: var(--booking-color-red);
}

.booking-prev-btn.show {
  display: flex;
}

.booking-next-btn {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.booking-filter-box,
.booking-extras-box,
.booking-form-box {
  padding: 40px 80px 64px;
  background: var(--booking-color-offwhite);
}

.booking-filter-box h3,
.booking-extras-box h3,
.booking-form-box h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 40px;
  color: #4E4F54;
  font-family: 'toyota_displayregular';
  font-style: normal;
  margin-bottom: 32px;
  margin-top: 32px;
}

.extra-options {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  gap: 24px;
  flex-wrap: wrap;
}

.booking-extras-box .extra-option {
  flex: 1 1 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  box-sizing: border-box;
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 2px solid var(--booking-color-gray);
}

.booking-extras-box .extra-option.hide {
  display: none;
}

.booking-extras-box .extras-read-more {
  margin-top: 16px;
  width: 100%;
  font-size: 14px;
  color: #4E4F54;
  line-height: 22px;
  border-top: 1px solid var(--booking-color-lightgray);
}

.extras-label {
  color: #4E4F54;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  padding-right: 32px;
  position: relative;
  display: block;
  cursor: pointer;
}

.extras-label::after {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid var(--booking-color-darkgray);
  border-radius: 4px;
  box-sizing: border-box;
}

.extras-label:hover:after {
  background: var(--booking-color-offwhite);
}

.extras-price {
  color: var(--booking-color-red);
}

.extras-price span {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.booking-extras-field {
  position: absolute;
  opacity: 0;
}

.extra-option:has(.booking-extras-field:checked) {
  border: 2px solid var(--booking-color-red);
}

.booking-extras-field:checked+.extras-label::before {
  content: "";
  position: absolute;
  right: 7.5px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  z-index: 1;
}

.booking-extras-field:checked+.extras-label::after {
  border: 1px solid var(--booking-color-red);
  background: var(--booking-color-red);
}

.booking-extras-box .read-more-btn {
  border: 0;
  background-color: transparent;
  color: #4E4F54;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  align-items: center;
  cursor: pointer;
}

.booking-extras-box .read-more-btn.open svg {
  transform: rotate(180deg);
}

.booking-extras-box .read-more-text {
  display: none;
}

.price-summary-head h3 {
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  color: #4E4F54;
  margin-bottom: 14px;
}

.price-summary-head p {
  color: var(--booking-color-red);
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.price-bar label {
  color: var(--booking-color-darkgray);
}

.price-bar .price-list li {
  border-top: 1px solid var(--booking-color-lightgray);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-list li label {
  flex: 1;
  margin-right: 12px;
}

.price-list li span {
  max-width: 100px;
  width: 100%;
  text-align: right;
}

.total-price-sec {
  border-top: 1px solid var(--booking-color-lightgray);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-price-sec p {
  color: var(--booking-color-red);
  text-align: right;
  font-size: 20px;
  font-weight: 700;
  line-height: 23px;
}

.price-table {
  margin-top: 36px;
}

.campain-box {
  margin-bottom: 60px;
  margin-right: 2%;
  max-width: 480px;
}

.price-table h3 {
  color: #4e4f54;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
  margin-bottom: 8px;
}

.price-table .offer-price {
  color: var(--booking-color-red);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
  margin-bottom: 8px;
}

div.price-table p {
  color: #696969;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.car-content {
  margin-top: 80px;
  border-top: 1px solid var(--booking-color-lightgray);
  padding-top: 48px;
}

.car-content .additional_fe {
  margin-top: 40px;
}

.car-content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
}

.car-content-col {
  flex: 1;
  min-width: 0;
}

.booking-main-form {
  margin-bottom: 48px;
}

.booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  /* 16px vertical, 24px horizontal */
}

.booking-form-col {
  position: relative;
}

.form-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  margin-top: 48px;
}

.form-footer-col {
  flex: 1;
  min-width: 0;
}

.coupon-fields-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.coupon-fields-group label {
  display: block;
  color: #4E4F54;

  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
}

.input-button-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.coupon-input {
  display: flex;
  align-items: center;
  width: 184px;
  border: 1px solid #777;
  border-radius: 4px;
  padding: 0px 16px;
  line-height: 46px;
  box-sizing: border-box;
}

.booking-form-col label {
  display: block;
  color: #4E4F54;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  margin-bottom: 5px;
}

.booking-form-col input,
.booking-form-col select {
  width: 100%;
  padding: 8px 16px;
  box-sizing: border-box;
  border: 1px solid #777;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: #4E4F54;
  min-height: 48px;
}

.booking-form-col input[type="checkbox"] {
  position: absolute;
  opacity: 0.1;
  height: 1px;
  width: 1px;
}

.booking-form-col input[type="checkbox"]+label {
  padding-left: 48px;
  cursor: pointer;
}

.booking-form-col input[type="checkbox"]+label::before {
  content: "";
  width: 32px;
  height: 32px;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid var(--booking-color-darkgray);
  border-radius: 4px;
  box-sizing: border-box;
}

.booking-form-col input[type="checkbox"]:checked+label::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  width: 6px;
  height: 12px;
  border: solid #ffff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  z-index: 1;
}

.booking-form-col input[type="checkbox"]:checked+label::before {
  background-color: var(--booking-color-red);
  border: 1px solid #fff;
}

.parsley-error.booking-form-col input[type="checkbox"]+label {
  color: #ff0000;
}

.parsley-error.booking-form-col input[type="checkbox"]+label::before {
  border: 1px solid #ff0000;
}

.sticky-price-bar {
  background-color: #fff;
  padding: 18px 0;
}

.sticky-price-bar.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2200000000;
  border-top: 1px solid var(--booking-color-lightgray);
}

.sticky-price-bar .bar-content {
  margin: 0 auto;
  max-width: 1110px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sticky-price-bar.sticky .bar-content {
  padding: 0px 15px;
}

.sticky-price-bar .price-description {
  color: #696969;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  margin-right: 72px;
}

.sticky-price-bar .price-description>strong {
  font-weight: 700;
}

.sticky-price-bar .price-total {
  color: var(--booking-color-red);
  margin-right: 24px;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
}

.top-filter-box label {
  display: block;
  color: #4E4F54;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  margin-bottom: 6px;
}

.facility-selector {
  margin-bottom: 16px;
}

.car-time-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.car-time-column {
  flex: 1 1 300px;
}

.top-field-group {
  display: flex;
  border: 1px solid #777;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fff;
  padding: 0 16px;
}

.date-field,
.time-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-field {
  padding-right: 8px;
}

.time-field {
  padding-left: 8px;
}

.date-field input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.divider-line {
  width: 1px;
  background-color: #777;
}

.input-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  width: 100%;
}

.input-icon-wrapper label {
  display: inline-flex;
  width: 24px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.input-icon-wrapper .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  box-sizing: border-box;
  border: 0;
  color: #4E4F54;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  height: 46px;
}

.time-field .input-icon-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.time-field .input-icon-wrapper .icon {
  left: 10px;
}

.time-field .input-icon-wrapper .time-output {
  padding-left: 36px;
  flex: 1;
}


.driver-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.driver-row.hide {
  display: none;
}

.driver-label {
  flex: 1;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
}

.driver-control {
  display: flex;
  align-items: center;
  border: 1px solid #777;
  border-radius: 4px;
  padding: 7px 8px;
  gap: 8px;
}

.driver-btn {
  align-items: center;
  justify-content: center;
  display: flex;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  width: 20px;
  height: 20px;
}

.driver-count {
  width: 38px;
  text-align: center;
  border: none;
  font-size: 16px;
  line-height: 30px;
  pointer-events: none;
  background: transparent;
}

.thankyou-wrap {
  margin-bottom: 64px;
}

.thankyou-wrap.hide {
  display: none;
}

.thankyou-wrap h2 {
  margin-bottom: 24px;
}

.thankyou-wrap p {
  color: #4E4F54;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.info-section {
  margin-top: 64px;
}

.info-section h3 {
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 14px;
  color: #4E4F54;
}

.info-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}

.info-label {
  color: #696969;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 23px;
}

.info-value {
  color: #696969;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
  white-space: nowrap;
}

.send-lead-btn {
  opacity: 0;
  height: 1px;
  width: 1px;
}

.additional-radios,
.additional-checkboxes {
  margin-top: 18px;
  display: none;
}

.additional-radios label,
.additional-checkboxes label {
  display: block;
  cursor: pointer;
  color: #4E4F54;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  position: relative;
  margin-bottom: 12px;
  padding-left: 36px;
}

.additional-radios label::before,
.additional-checkboxes label::before {
  content: "";
  border: 1px solid #777;
  background: #FFF;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  box-sizing: border-box;
}

.additional-radios label::before {
  border-radius: 50%;
}

.additional-checkboxes label::before {
  border-radius: 4px;
}

.additional-radios input[type=radio],
.additional-checkboxes input[type=checkbox] {
  position: absolute;
}

.additional-radios input[type=radio]:checked+label::before,
.additional-checkboxes input[type=checkbox]:checked+label::before {
  background-color: var(--booking-color-red);
  border-color: var(--booking-color-red);
}

.additional-radios input[type=radio]:checked+label::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #fff;
  position: absolute;
  left: 7px;
  top: 7px;
  border-radius: 50%;
}


.additional-checkboxes input[type=checkbox]:checked+label::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  z-index: 1;
}

.for-radios:checked~.additional-radios,
.for-checkboxes:checked~.additional-checkboxes {
  display: block;
}

.submit-error {
  display: none;
  text-align: right;
  color: #ff0000;
}

@media screen and (max-width: 991.98px) {

  .booking-filter-box,
  .booking-extras-box,
  .booking-form-box {
    padding: 40px 40px 64px;
  }

  .booking-form-row {
    grid-template-columns: 1fr;
  }

  .form-footer-row {
    flex-direction: column;
    gap: 32px;
  }

  .car-content-row {
    flex-direction: column;
    gap: 40px;
  }

  .car-content {
    margin-top: 48px;
  }

  .sticky-price-bar.non-sticky {
    padding: 0;
  }

  .campain-box {
    max-width: 100%;
    margin-bottom: 0;
  }

  .coupon-fields-group {
    gap: 0;
    margin-bottom: 0;
  }

  .coupon-input {
    flex: 1;
  }

}

@media screen and (max-width: 768px) {
  .booking-steps-header h2 {
    font-size: 24px;
  }

  .booking-filter-box h3,
  .booking-extras-box h3,
  .booking-form-box h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .booking-filter-box,
  .booking-extras-box,
  .booking-form-box {
    padding: 20px 20px 12px;
  }

  .booking-extras-box .extra-option {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .extras-label {
    font-size: 20px;
  }

  .date-field {
    max-width: calc(60% - 8px);
  }

  .input-icon-wrapper input,
  .input-icon-wrapper select {
    padding-left: 0;
  }

  .bar-content {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }

  .price-description {
    flex: 1 1 auto;
  }

  .price-total {
    flex: 0 0 auto;
  }

  .booking-next-btn {
    width: 100%;
    /* full-width button below */
  }

  .car-time-container {
    display: block;
  }

  .car-time-container .car-time-column:first-child {
    margin-bottom: 16px;
  }

  .divider-line {
    min-width: 1px;
  }
}
