/* ----------------------------------------------------------------------------
 * Truus: custom look for the booking page.
 *
 * Ported from the 1.4 assets/css/frontend.css ("Sander SCSS voor Truus Afsprakenmodule")
 * to the Easy!Appointments 1.5 markup. Loaded after the default booking styles, so it
 * only needs to override them.
 * ---------------------------------------------------------------------------- */

/* Fonts
 ------------------------------------------------------------------------------ */

@font-face {
    font-family: 'Cotham Sans';
    src: url("../fonts/cotham-sans/cothamsans-webfont.woff2") format("woff2"),
         url("../fonts/cotham-sans/cothamsans-webfont.woff") format("woff"),
         url("../fonts/cotham-sans/cothamsans-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Futura Renner';
    src: url("../fonts/futura-renner/futurarenner-regular-webfont.woff") format("woff"),
         url("../fonts/futura-renner/futurarenner-regular-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'truusicons';
    src: url("../fonts/truusicons/truusicons.woff?-8459ab") format("woff"),
         url("../fonts/truusicons/truusicons.ttf?-8459ab") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --truus-blue: #238ee5;
    --truus-red: #f43d3d;
    --truus-line: 3px solid var(--truus-blue);
}

/* Icons
 ------------------------------------------------------------------------------ */

body.truus [class^="icon-"],
body.truus [class*=" icon-"] {
    font-family: 'truusicons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 34px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-chevron-left:before { content: "\e600"; }
.icon-chevron-right:before { content: "\e601"; }
.icon-chevron-small-left:before { content: "\e602"; }
.icon-chevron-small-right:before { content: "\e603"; }
.icon-chevron-with-circle-left:before { content: "\e604"; }
.icon-chevron-with-circle-right:before { content: "\e605"; }
.icon-calendar:before { content: "\e607"; }
.icon-check:before { content: "\e608"; }
.icon-cross:before { content: "\e60b"; }
.icon-flash:before { content: "\e60c"; }
.icon-info:before { content: "\e610"; }
.icon-mail:before { content: "\e612"; }
.icon-map:before { content: "\e613"; }
.icon-new:before { content: "\e614"; }
.icon-phone:before { content: "\e618"; }
.icon-time-slot:before { content: "\e616"; }

/* Page
 ------------------------------------------------------------------------------ */

html,
body.truus {
    font-family: 'Futura Renner', 'Futura', 'Century Gothic', sans-serif;
    font-size: 28px;
    line-height: 34px;
    color: var(--truus-blue);
}

body.truus {
    padding: 20px;
    background: #fff url(../beeld/dots2@2x.gif);
    background-size: 680px 430px;
    background-position: center;
}

body.truus *:focus,
body.truus *:active {
    box-shadow: none !important;
}

body.truus a {
    color: var(--truus-red);
    transition: all 0.1s ease;
}

body.truus #main {
    display: flex;
    min-height: calc(100vh - 40px);
    max-width: none;
    padding: 0;
}

body.truus #main > .wrapper {
    margin: auto;
    width: 100%;
}

body.truus #book-appointment-wizard {
    max-width: 660px;
    width: 100%;
    min-height: 0;
    margin: auto;
    padding: 0;
    background-color: #fff;
    box-shadow: none;
}

/* The default coloured header with the four steps is not used: every step has its own header and footer. */
body.truus #book-appointment-wizard #header {
    display: none;
}

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

span.euro {
    font-family: 'Gill Sans', Arial, sans-serif;
    line-height: 0;
}

div.colophon {
    position: fixed;
    bottom: 10px;
    right: 0;
    width: 80px;
    text-align: center;
}

div.colophon a {
    color: var(--truus-red);
    text-decoration: none;
}

div.colophon a:hover span:before {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    content: "SVDV";
    position: relative;
    bottom: 2px;
}

/* Frames: header, content and footer
 ------------------------------------------------------------------------------ */

body.truus #book-appointment-wizard .wizard-frame {
    padding: 0;
}

body.truus #book-appointment-wizard .wizard-frame .frame-container {
    min-height: 0;
    padding: 0;
    margin-bottom: 20px;
}

body.truus #book-appointment-wizard .frame-content {
    margin: 0;
}

body.truus #book-appointment-wizard .frame-content > [class*="col"] {
    padding-left: 0;
    padding-right: 0;
}

body.truus #book-appointment-wizard header,
body.truus #book-appointment-wizard footer {
    position: relative;
    width: 100%;
    text-transform: lowercase;
    letter-spacing: 1px;
}

body.truus #book-appointment-wizard header {
    font-size: 34px;
    padding: 0;
    margin-bottom: 10px;
}

body.truus #book-appointment-wizard header span {
    display: inline-block;
    padding: 10px 0;
    background-color: #fff;
}

body.truus #book-appointment-wizard header span:first-child {
    float: left;
    padding-right: 20px;
}

body.truus #book-appointment-wizard header span + span {
    float: right;
    padding-left: 20px;
}

body.truus #book-appointment-wizard header a {
    color: inherit;
    text-decoration: none;
}

body.truus #book-appointment-wizard header a:hover {
    color: var(--truus-red);
}

body.truus #book-appointment-wizard .frame-title {
    margin: 0;
    font-size: inherit;
    font-weight: normal;
    text-align: right;
    color: inherit;
}

/* Footer with the step indicator and the buttons. The buttons have to stay direct children of the footer,
   booking.js finds the frame with $(button).parents().eq(1). */

body.truus #book-appointment-wizard .truus-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

body.truus #book-appointment-wizard .truus-footer .steps {
    font-size: 120%;
    padding: 10px 0;
    margin-right: auto;
    white-space: nowrap;
}

body.truus #book-appointment-wizard .truus-footer .steps span {
    margin: 0 -3px;
}

body.truus #book-appointment-wizard .truus-footer .steps .active {
    color: var(--truus-red);
}

body.truus #book-appointment-wizard .truus-footer .steps .icon-chevron-right {
    font-size: 80%;
    position: relative;
    top: 4px;
}

body.truus #book-appointment-wizard .truus-footer .btn,
body.truus #book-appointment-wizard .truus-footer #book-appointment-submit {
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 5px 10px;
    font: inherit;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: var(--truus-blue);
    background-color: #fff;
    border: var(--truus-line);
    border-radius: 0;
    transition: all 0.1s ease;
}

body.truus #book-appointment-wizard .truus-footer .btn i {
    position: relative;
    top: 3px;
}

body.truus #book-appointment-wizard .truus-footer .button-back {
    color: #fff;
    background-color: var(--truus-blue);
}

body.truus #book-appointment-wizard .truus-footer .btn-primary:hover,
body.truus #book-appointment-wizard .truus-footer .button-back:hover {
    color: #fff;
    background-color: var(--truus-red);
    border-color: var(--truus-red);
}

body.truus #book-appointment-wizard #book-appointment-form {
    display: inline-block;
}

/* Step 1: service
 ------------------------------------------------------------------------------ */

body.truus .truus-native-select,
body.truus .truus-provider {
    display: none !important;
}

body.truus .truus-service-list {
    border: var(--truus-line);
}

body.truus .truus-service {
    display: block;
    position: relative;
    width: 100%;
    padding: 15px 35px 10px 10px;
    font: inherit;
    text-align: left;
    color: var(--truus-blue);
    background: #fff;
    border: none;
    border-top: var(--truus-line);
    transition: all 0.1s ease;
}

body.truus .truus-service:first-child {
    border-top: none;
}

body.truus .truus-service:hover,
body.truus .truus-service.selected {
    color: var(--truus-red);
}

body.truus .truus-service.selected:before {
    font-family: 'truusicons';
    content: "\e608";
    position: absolute;
    top: 25%;
    right: 5px;
    line-height: 1;
}

body.truus #book-appointment-wizard #service-description {
    max-height: none;
    overflow: visible;
    margin-top: 20px;
    line-height: 1;
}

body.truus #book-appointment-wizard #service-description table {
    width: 100%;
    font-size: 90%;
}

body.truus #book-appointment-wizard #service-description td {
    padding: 13px;
    border: 3px dashed var(--truus-blue);
}

body.truus #book-appointment-wizard #service-description td + td {
    width: 25%;
    text-align: center;
    white-space: nowrap;
}

/* Step 2: date and time (flatpickr calendar)
 ------------------------------------------------------------------------------ */

body.truus #book-appointment-wizard #select-date {
    border: var(--truus-line);
    background-color: #fff;
}

body.truus .flatpickr-calendar.inline {
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding-bottom: 13px;
    font-family: inherit;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
}

body.truus .flatpickr-calendar .flatpickr-months {
    position: relative;
    padding: 13px;
    margin-bottom: 10px;
    background: #fff !important;
    border-bottom: var(--truus-line);
}

body.truus .flatpickr-calendar .flatpickr-month {
    height: 40px;
    color: var(--truus-blue) !important;
    fill: var(--truus-blue) !important;
    background: #fff !important;
}

body.truus .flatpickr-calendar .flatpickr-current-month {
    font-size: 28px;
    text-transform: lowercase;
}

body.truus .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
body.truus .flatpickr-calendar .flatpickr-current-month input.cur-year {
    font: inherit;
    color: var(--truus-blue);
    background: #fff !important;
}

body.truus .flatpickr-calendar .flatpickr-prev-month,
body.truus .flatpickr-calendar .flatpickr-next-month {
    top: 13px;
    height: 40px;
    padding: 0 13px;
    color: var(--truus-blue) !important;
}

body.truus .flatpickr-calendar .flatpickr-prev-month svg,
body.truus .flatpickr-calendar .flatpickr-next-month svg {
    display: none;
}

body.truus .flatpickr-calendar .flatpickr-prev-month:before,
body.truus .flatpickr-calendar .flatpickr-next-month:before {
    font-family: 'truusicons';
    font-size: 34px;
    line-height: 40px;
}

body.truus .flatpickr-calendar .flatpickr-prev-month:before { content: "\e604"; }
body.truus .flatpickr-calendar .flatpickr-next-month:before { content: "\e605"; }

body.truus .flatpickr-calendar .flatpickr-prev-month:hover,
body.truus .flatpickr-calendar .flatpickr-next-month:hover {
    color: var(--truus-red) !important;
}

body.truus .flatpickr-calendar .flatpickr-prev-month.flatpickr-disabled,
body.truus .flatpickr-calendar .flatpickr-next-month.flatpickr-disabled {
    display: block;
    opacity: 0.3;
    cursor: default;
}

body.truus .flatpickr-calendar .flatpickr-weekdays {
    height: 54px;
    background: #fff !important;
}

body.truus .flatpickr-calendar span.flatpickr-weekday {
    font-size: 24px;
    font-weight: normal;
    text-transform: lowercase;
    color: var(--truus-blue) !important;
    background: #fff !important;
}

body.truus .flatpickr-calendar .flatpickr-innerContainer,
body.truus .flatpickr-calendar .flatpickr-rContainer,
body.truus .flatpickr-calendar .flatpickr-weekdaycontainer,
body.truus .flatpickr-calendar .flatpickr-days,
body.truus .flatpickr-calendar .dayContainer {
    display: flex;
    width: 100% !important;
    min-width: 0;
    max-width: none;
    border: none;
}

body.truus .flatpickr-calendar .flatpickr-rContainer {
    flex-direction: column;
}

body.truus .flatpickr-calendar .dayContainer {
    flex-wrap: wrap;
}

body.truus .flatpickr-calendar span.flatpickr-weekday {
    flex: 1;
}

body.truus .flatpickr-calendar .flatpickr-day {
    position: relative;
    max-width: none;
    height: 56px;
    line-height: 50px;
    margin: 4px calc((100% / 7 - 56px) / 2);
    flex-basis: 56px;
    font-size: 28px;
    color: var(--truus-blue);
    border: 3px solid transparent;
    border-radius: 50%;
}

body.truus .flatpickr-calendar .flatpickr-day:hover {
    background: #fff;
    border-color: var(--truus-red);
}

body.truus .flatpickr-calendar .flatpickr-day.today {
    border-color: transparent;
}

body.truus .flatpickr-calendar .flatpickr-day.selected,
body.truus .flatpickr-calendar .flatpickr-day.selected:hover {
    color: #fff;
    background: var(--truus-red) !important;
    border-color: var(--truus-red) !important;
}

body.truus .flatpickr-calendar .flatpickr-day.prevMonthDay,
body.truus .flatpickr-calendar .flatpickr-day.nextMonthDay {
    visibility: hidden;
}

/* Days that cannot be booked show a cross instead of the number, like on the old site. */
body.truus .flatpickr-calendar .flatpickr-day.flatpickr-disabled,
body.truus .flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
    color: transparent;
    background: none !important;
    border-color: transparent !important;
    cursor: default;
}

body.truus .flatpickr-calendar .flatpickr-day.flatpickr-disabled:before {
    content: "\e60b";
    position: absolute;
    inset: 0;
    font-family: 'truusicons';
    font-size: 28px;
    color: var(--truus-blue);
    opacity: 0.5;
}

body.truus #book-appointment-wizard .wizard-frame #select-time {
    max-width: none;
    padding: 0;
}

body.truus #book-appointment-wizard #available-hours {
    max-height: none;
    margin: 20px 0 0;
    padding: 0;
    font-size: 28px;
    text-align: center;
}

body.truus #book-appointment-wizard #available-hours > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

body.truus #book-appointment-wizard #available-hours .available-hour {
    width: auto !important;
    min-width: 95px;
    margin: 0;
    padding: 2px 7px 5px;
    font: inherit;
    color: var(--truus-blue);
    background-color: #fff;
    border: var(--truus-line);
    border-radius: 0;
}

body.truus #book-appointment-wizard #available-hours .available-hour:hover {
    color: var(--truus-red);
    border-color: var(--truus-red);
}

body.truus #book-appointment-wizard #available-hours .selected-hour,
body.truus #book-appointment-wizard #available-hours .selected-hour:hover {
    color: #fff;
    background-color: var(--truus-red);
    border-color: var(--truus-red);
}

body.truus #book-appointment-wizard #select-hour-prompt {
    color: var(--truus-red) !important;
    width: 100%;
    margin-bottom: 10px !important;
}

/* Step 3: customer details
 ------------------------------------------------------------------------------ */

body.truus #wizard-frame-3 label {
    display: block;
    font-size: 76%;
    line-height: 28px;
    margin-bottom: 5px;
}

body.truus #wizard-frame-3 .input-container {
    border-bottom: var(--truus-line);
    margin-bottom: 13px;
}

body.truus #wizard-frame-3 .input-container.last {
    margin-bottom: 20px;
}

body.truus #wizard-frame-3 .input-container input {
    float: left;
    width: 90%;
    font: inherit;
    line-height: 34px;
    color: var(--truus-red);
    background: none;
    border: none;
    outline: none;
}

body.truus #wizard-frame-3 .input-container .icon-new {
    display: none;
}

body.truus #wizard-frame-3 .input-container input.is-invalid + .icon-new {
    display: inline-block;
    float: right;
    color: var(--truus-red);
}

body.truus #wizard-frame-3 textarea {
    width: 100%;
    padding: 10px;
    font: inherit;
    color: var(--truus-red);
    border: var(--truus-line);
    resize: none;
    outline: none;
}

body.truus #book-appointment-wizard #form-message {
    margin: 10px 0 0;
    font-size: 70%;
    color: var(--truus-red) !important;
    text-align: left;
}

/* Step 4: confirmation
 ------------------------------------------------------------------------------ */

body.truus .truus-summary table {
    width: 100%;
    margin-bottom: 20px;
    font-size: 90%;
    border: var(--truus-line);
}

body.truus .truus-summary td {
    padding: 10px;
    border: var(--truus-line);
}

body.truus .truus-summary td.iconic {
    width: 1%;
    text-align: center;
    border-right-color: #fff;
}

body.truus .truus-summary .not-yet-confirmed {
    padding-bottom: 20px;
    font-size: 75%;
    text-align: center;
}

body.truus #wizard-frame-4 .policies {
    font-size: 70%;
}

/* Cancel / delete bar shown when a customer opens their appointment link
 ------------------------------------------------------------------------------ */

body.truus #book-appointment-wizard .booking-header-bar {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 15px 20px;
    font-size: 70%;
    line-height: 1.4;
    color: var(--truus-blue);
    background-color: #fff;
    border: var(--truus-line);
}

body.truus #book-appointment-wizard .booking-header-bar > [class*="col"] {
    padding: 0;
}

body.truus #book-appointment-wizard .booking-header-bar small {
    font-size: inherit;
}

body.truus #book-appointment-wizard .booking-header-bar .btn {
    width: auto;
    padding: 5px 10px;
    font: inherit;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: var(--truus-blue);
    background-color: #fff;
    border: var(--truus-line);
    border-radius: 0;
}

body.truus #book-appointment-wizard .booking-header-bar .btn:hover {
    color: #fff;
    background-color: var(--truus-red);
    border-color: var(--truus-red);
}

/* Message pages (booking success, cancelled, errors)
 ------------------------------------------------------------------------------ */

body.truus #message-frame {
    max-width: 660px;
    margin: auto;
    padding: 30px 20px;
    text-align: center;
    background-color: #fff;
    border: var(--truus-line) !important;
    border-radius: 0;
}

body.truus #message-frame h3,
body.truus #message-frame h4 {
    font-family: inherit;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: var(--truus-red);
}

body.truus #message-frame p {
    font-size: 70%;
    line-height: 1.4;
    color: var(--truus-blue);
}

body.truus #message-frame .btn {
    margin: 5px;
    padding: 5px 10px;
    font: inherit;
    font-size: 70%;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: var(--truus-blue);
    background-color: #fff;
    border: var(--truus-line);
    border-radius: 0;
}

body.truus #message-frame .btn:hover {
    color: #fff;
    background-color: var(--truus-red);
    border-color: var(--truus-red);
}

/* Small screens
 ------------------------------------------------------------------------------ */

@media (max-width: 600px) {
    html,
    body.truus {
        font-size: 20px;
        line-height: 26px;
    }

    body.truus {
        padding: 16px;
    }

    body.truus #book-appointment-wizard header {
        font-size: 24px;
    }

    body.truus .flatpickr-calendar .flatpickr-day {
        height: 40px;
        line-height: 34px;
        flex-basis: 40px;
        margin: 3px calc((100% / 7 - 40px) / 2);
        font-size: 20px;
    }

    body.truus .flatpickr-calendar .flatpickr-current-month {
        font-size: 20px;
    }

    body.truus .flatpickr-calendar span.flatpickr-weekday {
        font-size: 18px;
    }

    body.truus #book-appointment-wizard #available-hours {
        font-size: 20px;
    }

    body.truus .truus-summary td {
        padding: 6px;
    }

    div.colophon {
        display: none;
    }
}
