:root {
	--primario: #173557;
	--secondario: #FFCB00;
}

.nlg-booking-form {
  width: 100%;
  font-family: inherit;
}

.nlg-booking-tabs {
  width: 100%;
}

.nlg-booking-accordion {
  width: 100%;
}

.nlg-booking-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7.5rem;
  padding: 0;
  border: 0;
  color: #fff;
  text-align: left;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
}

.nlg-booking-accordion__title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.nlg-booking-accordion__icon {
  border-radius: 50%;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  background: var(--secondario);
  filter: drop-shadow(0 0 20px rgba(255, 246, 0, 0.50));
  width: 60px;
  height: 60px;
  transform: rotate(30deg);
}

.nlg-booking-accordion__trigger[aria-expanded="true"] .nlg-booking-accordion__icon {
  transform: rotate(-30deg);
}

.nlg-booking-accordion__icon i {
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%,-50%);
  display: block;
  height: 1em;
  position: relative;
  width: 1em;
  font-size: 30px;
  transition: transform 0.2s ease;
  color: var(--primario);
}

.nlg-booking-accordion__trigger:focus-visible {
  outline: 2px solid var(--secondario);
  outline-offset: -2px;
}

.nlg-booking-accordion__panel {
  padding: 22px 0 0 0;
}

.nlg-booking-accordion .nlg-booking-tabs__panel {
  margin-bottom: -44px;
}

.nlg-booking-tabs__nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.nlg-booking-tabs__trigger {
  min-width: 0;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--primario);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 18px 24px;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.15);
}

.nlg-booking-tabs__trigger:not(.is-active) {
  color: var(--primario);
}

.nlg-booking-tabs__trigger:first-child {
  border-radius: 8px 0 0 0;
}

.nlg-booking-tabs__trigger:last-child {
  border-radius: 0 8px 0 0;
}

.nlg-booking-tabs__trigger.is-active {
  background: var(--primario);
  color: #fff;
}

.nlg-booking-tabs__trigger:focus-visible {
  outline: 2px solid var(--secondario);
  outline-offset: 2px;
}

.nlg-booking-tabs__panel {
  width: 100%;
  border-radius: 0 8px 8px 8px;
  background: #FFF;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.15);
  padding: 8px 16px;
}

.nlg-booking-form .booking-homepage {
  width: 100%;
}

.nlg-booking-form .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

.nlg-booking-form [class*="col-"] {
  /*width: 100%;*/
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

/*.nlg-booking-form .col-xs-12 {
  width: 100%;
  max-width: 100%;
}*/

.nlg-booking-form--routes .booking-homepage--routes .booking-homepage__row--fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 8px;
  border: 1px solid #d7e3f1;
  border-radius: 4px;
  background: #f4f8fd;
}

.nlg-booking-form--routes .booking-homepage--routes .booking-homepage__row--fields > .booking-homepage__col {
  padding: 0;
}

.nlg-booking-form--routes .booking-homepage--routes .booking-homepage__row--cta {
  margin: 16px 0 0;
}

.nlg-booking-form--routes .booking-homepage--routes .booking-homepage__col--route-submit {
  padding: 0;
}

.nlg-booking-form .booking-homepage__subrow .booking-homepage__col {
  padding-top: 8px;
  padding-bottom: 8px;
}

.nlg-booking-form--roundtrip .booking-homepage__col--cta-inner {
  margin-left: auto;
}

.nlg-booking-form__actions--routes-submit {
  justify-content: flex-end;
}

.nlg-booking-form__field {
  min-width: 0;
}

.nlg-booking-form__field select,
.nlg-booking-form__field input[type="text"],
.nlg-booking-form__field input[type="number"],
.nlg-booking-form__field input[type="date"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #D1D1D1;
  background-color:#fff;
  color: var(--primario);
  font-size: 0.875rem;
  line-height: 40px;
  box-shadow: none;
  outline: 0;
  min-height: 40px;
}

.nlg-booking-form__field select {
  padding-right: 32px;
}

.nlg-booking-form__field input[type="number"] {
  border: 0;
  background-color: transparent;
  text-align: right;
}

/*.nlg-booking-form__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7a8393 50%), linear-gradient(135deg, #7a8393 50%, transparent 50%);
  background-position: calc(100% - 13px) 12px, calc(100% - 8px) 12px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 32px;
}*/

.nlg-booking-form__field--date {
  position: relative;
}

.nlg-booking-form__date-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primario);
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
  z-index: 2;
  width: 100%;
	height: 100%;
	background-color: #fff;
	background-image: url("/wp-content/plugins/nlg-booking-forms/assets/images/icoCalendar-booking.svg");
	background-repeat: no-repeat;
	background-position: calc(100% - 16px) center;
	padding: 0 48px 0 12px;
	border-radius: 8px;
	border: 1px solid #D1D1D1;
	background-color: #fff;
	line-height: 40px;
}

.nlg-booking-form__field--date.is-filled .nlg-booking-form__date-placeholder,
.nlg-booking-form__field--date.is-focused .nlg-booking-form__date-placeholder {
  display: none;
}

.nlg-booking-form__field--icon-date input::placeholder {
  color: var(--primario);
}

.nlg-booking-form__field.is-disabled select,
.nlg-booking-form__field.is-disabled input,
.nlg-booking-form__field.is-disabled .nlg-booking-form__date-placeholder {
  color: rgba(23, 53, 87, 0.50);
}

.nlg-booking-form__field.is-disabled input::placeholder {
  color: rgba(23, 53, 87, 0.50);
}

.nlg-booking-form__field--counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #D1D1D1;
  background: #fff;
}

.nlg-booking-form__counter-label {
  color: var(--primario);
  font-size: 0.875rem;
  white-space: nowrap;
}

.nlg-booking-form__counter-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nlg-booking-form__counter-input {
  width: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f3650;
  font-size: 10px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.nlg-booking-form__counter-input::-webkit-outer-spin-button,
.nlg-booking-form__counter-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.nlg-booking-form__counter-button {
  width: auto;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primario) !important;
  font-size: 0.875rem;
  line-height: 24px;
  cursor: pointer;
}

.nlg-booking-form__counter-button[data-counter-action="increment"] {
  padding-right: 12px;
  border-right: 1px solid #D1D1D1;
}

.nlg-booking-form__counter-button[data-counter-action="decrement"] {
  padding-left: 12px;
}

.nlg-booking-form__field--toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.nlg-booking-form__toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.nlg-booking-form__toggle-label {
  color: var(--primario);
  font-size: 0.875rem;
  white-space: nowrap;
}

.nlg-booking-form__toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nlg-booking-form__toggle-ui {
  position: relative;
  width: 48px;
  height: 24px;
  border-radius: 999px;
  background: rgba(51, 91, 136, 0.61);
  transition: background-color 0.2s ease;
}

.nlg-booking-form__toggle-ui::before {
  content: attr(data-before-no);
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
}

.nlg-booking-form__toggle-ui::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primario);
  transition: transform 0.2s ease;
}

.nlg-booking-form__toggle-input:checked + .nlg-booking-form__toggle-ui {
  background: rgba(51, 91, 136, 0.61);
}

.nlg-booking-form__toggle-input:checked + .nlg-booking-form__toggle-ui::before {
  content: attr(data-before-si);
  left: 8px;
  right: auto;
}

.nlg-booking-form__toggle-input:checked + .nlg-booking-form__toggle-ui::after {
  transform: translateX(24px);
}

.nlg-booking-form__actions {
  display: flex;
  justify-content: flex-end;
}

.nlg-booking-form__submit {
  width: 100%;
  height: 58px;
  line-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--primario) !important;
  color: #fff !important;
  letter-spacing: 0;
  cursor: pointer;
  padding: 0;
  max-width: 132px;
  font-size: 1.125rem;
  font-weight: 600;
  opacity: 1 !important;
  filter: none !important;
}

.to_book-template-default .nlg-booking-form [class*="col-"],
.trip-template-default .nlg-booking-form [class*="col-"] {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

.to_book-template-default .nlg-booking-form .nlg-booking-form__field--counter,
.trip-template-default .nlg-booking-form .nlg-booking-form__field--counter {
  max-width: 193px;
}

.to_book-template-default .nlg-booking-form__field--toggle,
.trip-template-default .nlg-booking-form__field--toggle {
  justify-content: flex-start;
}

.to_book-template-default .nlg-booking-form__actions,
.trip-template-default .nlg-booking-form__actions {
  justify-content: flex-start;
}

.to_book-template-default .nlg-booking-form__submit,
.trip-template-default .nlg-booking-form__submit {
  max-width: 100%;
}

@media (max-width: 1200px) {
  .nlg-booking-form--routes .booking-homepage--routes .booking-homepage__row--fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nlg-booking-form .col-lg-6,
  .nlg-booking-form .col-lg-8,
  .nlg-booking-form .col-lg-4 {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .nlg-booking-accordion__trigger {
    gap: 1rem;
  }

  .nlg-booking-accordion__panel {
    padding: 16px;
  }

  .nlg-booking-tabs__nav {
    width: 100%;
  }

  .nlg-booking-tabs__trigger {
    flex: 1;
    min-width: 0;
  }

  .nlg-booking-form--routes .booking-homepage--routes .booking-homepage__row--fields {
    grid-template-columns: 1fr;
  }

  .nlg-booking-form .col-md-2,
  .nlg-booking-form .col-md-4,
  .nlg-booking-form .col-md-6,
  .nlg-booking-form .col-md-12 {
    width: 100%;
    max-width: 100%;
  }

  .nlg-booking-form .col-md-offset-6,
  .nlg-booking-form .col-lg-offset-3 {
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .nlg-booking-form .col-md-2 {
    width: 16.66667%;
    max-width: 16.66667%;
  }

  .nlg-booking-form .col-md-4 {
    width: 33.33333%;
    max-width: 33.33333%;
  }

  .nlg-booking-form .col-md-6 {
    width: 50%;
    max-width: 50%;
  }

  .nlg-booking-form .col-md-12 {
    width: 100%;
    max-width: 100%;
  }

  .nlg-booking-form .col-md-offset-6 {
    margin-left: 50%;
  }
}

@media (min-width: 1200px) {
  .nlg-booking-form .col-lg-2 {
    width: 16.66667%;
    max-width: 16.66667%;
  }

  .nlg-booking-form .col-lg-3 {
    width: 25%;
    max-width: 25%;
  }

  .nlg-booking-form .col-lg-4 {
    width: 33.33333%;
    max-width: 33.33333%;
  }

  .nlg-booking-form .col-lg-6 {
    width: 50%;
    max-width: 50%;
  }

  .nlg-booking-form .col-lg-8 {
    width: 66.66667%;
    max-width: 66.66667%;
  }

  .nlg-booking-form .col-lg-offset-3 {
    margin-left: 25%;
  }
}
