
/* =========================
   ALGEMEEN
========================= */
/* =========================
   DATUMVELD MOBIEL / IPHONE
========================= */

.vt-datepicker {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  text-align: left;
  text-align-last: left;

  -webkit-appearance: none;
  appearance: none;
}


/* Safari / iPhone datumtekst links */

.vt-datepicker::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}


/* Binnenste datumweergave Safari */

.vt-datepicker::-webkit-datetime-edit {
  text-align: left;
  display: block;
  width: 100%;
}


/* Zorg dat niets buiten de widget loopt */

.vt-search-content {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vt-search-content input {
  max-width: 100%;
  box-sizing: border-box;
}


.vt-widget {
  width: 300px;
  height: 340px;
  font-family: Arial, Helvetica, sans-serif;
  perspective: 1000px;
}

.vt-widget * {
  box-sizing: border-box;
}

.vt-widget-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .65s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}

.vt-widget.is-flipped .vt-widget-inner {
  transform: rotateY(180deg);
}

.vt-widget-face {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;

  border-radius: 14px;
 background: linear-gradient(145deg, #f7faff, #e9effc);
 /*background: linear-gradient(145deg, #f7faff, #e5f0f6);*/

  border: 1px solid #dbe5ea;

  box-shadow:
    0 7px 22px rgba(0,0,0,.12);

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  overflow: hidden;
}



/* =========================
   VOORKANT
========================= */

.vt-widget-front {
  display: flex;
  flex-direction: column;
}

.vt-header {
  display: flex;
  align-items: center;
  gap: 8px;

  padding-bottom: 12px;

  border-bottom: 1px solid #e1e8ec;
}

.vt-snowflake {
  width: 39px;
  height: 39px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #e7f5fc;
  color: #1396d4;

  font-size: 22px;
  background-color: #FFF;
    border: solid 2px #dcf1fb;
}

.vt-header h3 {
  margin: 0;

  font-size: 18px;
  line-height: 1.2;

  color: #183b4d;
}

.vt-header p {
  margin: 3px 0 0;

  font-size: 13px;

  color: #788b94;
}


/* =========================
   ZOEKFORMULIER
========================= */

.vt-search-content {
  margin-top: 18px;
}

.vt-search-content label {
  display: block;

  margin-bottom: 7px;

  font-size: 14px;
  font-weight: 600;

  color: #405762;
}




/* =========================
   DATUM
========================= */

.vt-datepicker {
  width: 100%;
  height: 44px;

  padding: 0 11px;

  border: 1px solid #ccd9df;
  border-radius: 8px;

  background: #fff;

  color: #263f4a;

  font-family: inherit;
  font-size: 16px;

  cursor: pointer;
}

.vt-datepicker:hover {
  border-color: #9fb7c3;
}

.vt-datepicker:focus {
  outline: none;

  border-color: #159bd7;

  box-shadow:
    0 0 0 2px rgba(21,155,215,.12);
}


/* =========================
   PERSONEN
========================= */

.vt-persons {
  width: 100%;
  height: 50px;

  margin-top: 12px;

  padding: 0 10px 0 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #fff;

  border: 1px solid #d8e1e7;
  border-radius: 9px;
}

.vt-persons-label {
  color: #183b4d;

  font-size: 15px;
  font-weight: 600;
}

.vt-persons-controls {
  display: flex;
  align-items: center;

  gap: 10px;
}

.vt-person-button {
  width: 32px;
  height: 32px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #b9c8d5;
  border-radius: 50%;

  background: #fff;

  color: #0d2c59;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;

  line-height: 1;

  cursor: pointer;

  transition:
    background .15s,
    border-color .15s;
}

.vt-person-button:hover:not(:disabled) {
  background: #f2f7fa;
  border-color: #7998ad;
}

.vt-person-button:disabled {
  opacity: .35;
  cursor: default;
}

.vt-person-count {
  width: 22px;

  text-align: center;

  color: #0d2c59;

  font-size: 16px;
  font-weight: 700;
}


/* =========================
   ZOEKKNOP
========================= */

.vt-search-button {
  width: 100%;
  height: 45px;

  margin-top: 12px;

  border: 0;
  border-radius: 8px;

  background: #ef8b00;

  color: #fff;

  font-family: inherit;
  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  transition:
    background .2s,
    transform .2s;
}

.vt-search-button:hover {
  background: #da7d00;
  transform: translateY(-1px);
}

.vt-search-button span {
  font-size: 18px;
}

.vt-footer {
  margin-top: auto;

  text-align: center;

  font-size: 13px;

  color: #91a0a7;
}


/* =========================
   ACHTERKANT
========================= */

.vt-widget-back {
  transform: rotateY(180deg);
}

.vt-results-header {
  padding-bottom: 4px;

  border-bottom: 1px solid #e0e8ec;
}

.vt-results-header h3 {
  margin: 0;

  color: #183b4d;

  font-size: 18px;
}

#vtResultInfo {
  margin-top: 4px;

  color: #71848d;

  font-size: 11px;
}


/* =========================
   RESULTATEN
========================= */

.vt-results {
  margin-top: 10px;

  display: flex;
  flex-direction: column;

  gap: 7px;
}

.vt-provider {
  width: 100%;
  min-height: 50px;

  padding: 8px 11px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  text-decoration: none;

  border-radius: 8px;

  background: #fff;

  border: 1px solid #d8e2e7;

  transition:
    border-color .2s,
    box-shadow .2s,
    transform .2s;
}

a.vt-provider:hover {
  border-color: #159bd7;

  box-shadow:
    0 3px 8px rgba(0,0,0,.08);

  transform: translateY(-1px);
}

.vt-provider-info {
  display: flex;
  flex-direction: column;
}

.vt-provider-info strong {
  color: #183b4d;

  font-size: 16px;
}

.vt-provider-info span {
  margin-top: 2px;

  color: #7c8d95;

  font-size: 10px;
}

.vt-provider-arrow {
  width: 27px;
  height: 27px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #ef8b00;

  color: #fff;

  font-size: 15px;
}


/* =========================
   TERUG
========================= */

.vt-back {
  position: absolute;

  left: 20px;
  bottom: 12px;

  padding: 0;

  border: 0;

  background: none;

  color: #667d88;

  font-family: inherit;
  font-size: 14px;

  cursor: pointer;
}

.vt-back:hover {
  text-decoration: underline;
}



/* =========================
   RESULTATEN KLAARZETTEN
========================= */


/* Resultaten standaard klaarzetten */
.vt-widget-back .vt-provider {
    opacity: 0;
    transform: translateY(10px);
}

/* Start animatie nadat widget is omgedraaid */
.vt-widget.is-flipped .vt-widget-back .vt-provider {
    animation: vtResultIn 0.35s ease-out forwards;
}

/* Kleine vertraging per aanbieder */
.vt-widget.is-flipped .vt-widget-back .vt-provider:nth-child(1) {
    animation-delay: 0.20s;
}

.vt-widget.is-flipped .vt-widget-back .vt-provider:nth-child(2) {
    animation-delay: 0.27s;
}

.vt-widget.is-flipped .vt-widget-back .vt-provider:nth-child(3) {
    animation-delay: 0.34s;
}

.vt-widget.is-flipped .vt-widget-back .vt-provider:nth-child(4) {
    animation-delay: 0.41s;
}

@keyframes vtResultIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* EINDE Resultaten standaard klaarzetten */

@media (max-width: 480px) {

  .vt-widget {
    width: 100%;
    max-width: 300px;
  }

  .vt-datepicker {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .vt-datepicker::-webkit-date-and-time-value {
    text-align: left;
  }
  

}
