/* ----------------------------------------------------------------------------
 * Easy!Appointments - Open Source Web Scheduler
 *
 * @package     EasyAppointments
 * @author      A.Tselegidis <alextselegidis@gmail.com>
 * @copyright   Copyright (c) 2013 - 2020, Alex Tselegidis
 * @license     http://opensource.org/licenses/GPL-3.0 - GPLv3
 * @link        http://easyappointments.org
 * @since       v1.0.0
 * ---------------------------------------------------------------------------- */

root {
    display: block;
}

html,
body {
    height: 100%;
}

body {
    background-color: #f5f8fa;
}

#main {
    min-height: 100%;
}

/* BOOK APPOINTMENT WIZARD
 ------------------------------------------------------------------------------ */

#book-appointment-wizard {
    background: #FFF;
    min-height: 480px;
    padding: 0;
    margin: auto;
}

#book-appointment-wizard #header {
    overflow: hidden;
    height: auto;
    padding: 22px 16px 18px;
    color: #17483b;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #fff8f5 0%, #f8ede8 58%, #edf6f1 100%);
    border-bottom: 1px solid #eadbd3;
}

/* Salon masthead: brand first, booking purpose second, wizard progress still visible. */
#book-appointment-wizard .booking-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#book-appointment-wizard .booking-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

#book-appointment-wizard .booking-brand-mark {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border: 1px solid #ead0ca;
    border-radius: 14px;
    background: #fffefd;
    box-shadow: 0 10px 24px rgba(70, 36, 32, 0.10);
}

/* The two polished strokes give the header a nail-studio cue without loading new assets. */
#book-appointment-wizard .booking-brand-mark::before,
#book-appointment-wizard .booking-brand-mark::after {
    content: "";
    position: absolute;
    top: 13px;
    width: 12px;
    height: 24px;
    border-radius: 8px 8px 5px 5px;
    background: #b86e73;
}

#book-appointment-wizard .booking-brand-mark::before {
    left: 14px;
    transform: rotate(-12deg);
}

#book-appointment-wizard .booking-brand-mark::after {
    right: 14px;
    background: #d9a29b;
    transform: rotate(12deg);
}

#book-appointment-wizard .booking-brand-copy {
    min-width: 0;
    text-align: left;
}

#book-appointment-wizard .booking-kicker,
#book-appointment-wizard .booking-subtitle,
#book-appointment-wizard .booking-tagline {
    display: block;
}

#book-appointment-wizard .booking-news {
    margin: 15px 15px 0;
    border: 1px solid #d97706;
    border-left: 6px solid #c45c00;
    background-color: #fff1d6;
    color: #5f2f00;
    box-shadow: 0 2px 8px rgba(196, 92, 0, 0.18);
}

#book-appointment-wizard .booking-news strong {
    margin-right: 6px;
    color: #7a3a00;
}

#book-appointment-wizard #company-name {
    display: block;
    margin: 1px 0 3px;
    color: #17483b;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

#book-appointment-wizard .booking-kicker {
    color: #9a665e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

#book-appointment-wizard .booking-subtitle {
    color: #315e52;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

#book-appointment-wizard .booking-tagline {
    margin-top: 3px;
    color: #785f58;
    font-size: 13px;
    line-height: 1.3;
}

#book-appointment-wizard #steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
}

#book-appointment-wizard #book-appointment-form #book-appointment-submit {
    width: 100%;
    margin-right: 0;
}

#book-appointment-wizard #form-message {
    text-align: center;
    margin-bottom: 30px;
}

#book-appointment-wizard .wizard-frame {
    height: auto;
    padding: 15px;
}

#book-appointment-wizard .wizard-frame .frame-container {
    height: auto;
    min-height: 500px;
    padding: 15px 0;
}

#book-appointment-wizard .frame-container .frame-title {
    font-weight: lighter;
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

/* Returning-customer cue: visible only after a complete identity cookie is validated. */
#book-appointment-wizard .returning-customer-welcome[hidden] {
    display: none;
}

#book-appointment-wizard .returning-customer-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 620px;
    margin: -10px auto 28px;
    padding: 12px 16px;
    color: #17483b;
    background: linear-gradient(135deg, #fff8f5, #edf6f1);
    border: 1px solid #ead0ca;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(70, 36, 32, 0.08);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

#book-appointment-wizard .returning-customer-welcome .fa-heart {
    flex: 0 0 auto;
    color: #b86e73;
}

#book-appointment-wizard .frame-container .frame-content {
    float: none;
}

#book-appointment-wizard .wizard-frame .command-buttons {
    float: none;
    margin: 15px auto;
    text-align: center;
}

#book-appointment-wizard .wizard-frame .command-buttons .btn {
    min-width: 120px;
    margin-right: 10px;
}

#book-appointment-wizard .wizard-frame .command-buttons .btn:last-child {
    margin-right: 0;
}

#book-appointment-wizard .wizard-frame #select-date {
    max-width: 288px;
    margin: auto;
    padding: 15px 0;
}

#book-appointment-wizard .wizard-frame #select-date > .ui-datepicker {
    margin: auto;
}

#book-appointment-wizard .wizard-frame #select-time {
    max-width: 288px;
    margin: auto;
    padding: 15px 0;
}

#book-appointment-wizard .book-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 42px;
    padding: 7px 8px;
    border: 1px solid #ead0ca;
    border-radius: .25rem;
    background: rgba(255, 255, 255, 0.78);
    color: #315e52;
    box-shadow: 0 4px 12px rgba(70, 36, 32, 0.06);
    transition: all .3s linear;
}

#book-appointment-wizard .book-step:last-child {
    margin-right: 0;
}

#book-appointment-wizard .book-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5dfda;
    color: #17483b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: all .3s linear;
    cursor: default;
}

#book-appointment-wizard .book-step span {
    min-width: 0;
    color: #315e52;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#book-appointment-wizard .active-step {
    border-color: #17483b;
    background: #17483b;
    color: #FFF;
    box-shadow: 0 8px 18px rgba(23, 72, 59, 0.18);
}

#book-appointment-wizard .active-step strong {
    background: #fffefd;
    color: #17483b;
}

#book-appointment-wizard .active-step span {
    color: #fffefd;
}

#book-appointment-wizard #frame-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ebeef1;
}

#book-appointment-wizard #available-hours {
    overflow: auto;
    margin: 15px 0;
    padding-right: 10px;
    width: auto;
    max-height: 255px;
}

#book-appointment-wizard #available-hours div {
    margin-right: 30px;
}

#book-appointment-wizard #available-hours .available-hour {
    margin-bottom: 10px;
}

#book-appointment-wizard #available-hours .selected-hour {
    background-color: #439a82;
    border-color: #439a82;
    color: white;
}

#book-appointment-wizard .span3 {
    min-width: 270px; /* This is especially needed for ie8 */
}

#book-appointment-wizard #select-timezone {
    margin-bottom: 15px;
}

#book-appointment-wizard #appointment-details p,
#book-appointment-wizard #customer-details p {
    font-size: 16px;
    line-height: 28px;
}

#book-appointment-wizard #wizard-frame-1 label {
    font-size: 19px;
    margin-bottom: 12px;
}

#book-appointment-wizard #wizard-frame-1 select {
    margin-bottom: 25px;
}

#book-appointment-wizard .captcha-title {
    float: left;
    margin: 7px 0 10px 0;
}

#book-appointment-wizard .captcha-title .fa-sync-alt {
    cursor: pointer;
    transition: all 0.3s linear;
}

#book-appointment-wizard .captcha-title .fa-sync-alt:hover {
    color: #1A865F;
}

#book-appointment-wizard .captcha-image {
    float: left;
    margin-bottom: 20px;
    border-radius: 3px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

#book-appointment-wizard .captcha-text {
    width: 100%;
    margin-bottom: 20px;
}

#book-appointment-wizard #service-description {
    overflow-y: auto;
    clear: both;
    max-height: 153px;
    box-shadow: none;
}

#book-appointment-wizard #select-language,
#book-appointment-wizard .backend-link {
    display: block;
    min-width: 120px;
    margin: 15px auto;
    padding: 5px;
}

.popover .popover-title {
    text-align: center;
}

.popover .popover-content #language-list .language {
    margin: 15px 0;
}

@media (max-width: 420px) {
    #book-appointment-wizard .booking-brand {
        align-items: flex-start;
        justify-content: flex-start;
    }

    #book-appointment-wizard #company-name {
        font-size: 24px;
    }

    #book-appointment-wizard .book-step {
        flex-direction: column;
        gap: 4px;
        min-height: 56px;
        padding: 6px 4px;
    }

    #book-appointment-wizard .book-step strong {
        width: 22px;
        height: 22px;
    }

    #book-appointment-wizard .book-step span {
        max-width: 100%;
        font-size: 11px;
    }

    #book-appointment-wizard .returning-customer-welcome {
        align-items: flex-start;
        margin-top: -12px;
        padding: 11px 13px;
        font-size: 15px;
        text-align: left;
    }
}

@media (min-width: 768px) {
    .wrapper {
        min-height: 100vh;
    }

    #book-appointment-wizard {
        border-radius: .25rem;
        overflow: hidden;
        box-shadow: rgba(45, 62, 80, 0.12) 0 1px 5px 0;
    }

    #book-appointment-wizard #header {
        padding: 26px 28px 22px;
    }

    #book-appointment-wizard .booking-hero {
        gap: 20px;
    }

    #book-appointment-wizard .booking-brand {
        justify-content: flex-start;
    }

    #book-appointment-wizard #company-name {
        font-size: 30px;
    }

    #book-appointment-wizard #steps {
        max-width: none;
    }

    #book-appointment-wizard .wizard-frame {
        padding: 10px 20px;
    }

    #book-appointment-wizard .wizard-frame .command-buttons {
        display: flex;
        justify-content: space-between;
    }

    #book-appointment-wizard .captcha-title {
        margin-right: 20px;
        margin-top: 7px;
    }

    #book-appointment-wizard .captcha-image {
        float: right;
    }

    #book-appointment-wizard #select-language {
        width: 100px;
        padding: 5px;
        margin: 5px auto;
    }

    #book-appointment-wizard #frame-footer small {
        display: flex;
    }

    #book-appointment-wizard .footer-powered-by,
    #book-appointment-wizard .footer-options {
        width: 50%;
    }

    #book-appointment-wizard .footer-powered-by {
        text-align: left;
        padding: 5px 5px 5px 0;
    }

    #book-appointment-wizard .footer-options {
        text-align: right;
    }

    #book-appointment-wizard #select-language {
        display: inline-block;
        margin-right: 15px;
    }

    #book-appointment-wizard .backend-link {
        display: inline-block;
        min-width: 120px;
        padding: 5px;
        margin: 5px auto;
    }
}

/* BOOK SUCCESS & MESSAGE
   ------------------------------------------------------------------------- */

#message-frame,
#success-frame {
    background: #FFF;
    border: 1px solid #DDDADA;
    padding: 70px;
}

#message-frame #message-icon,
#success-frame #success-icon {
    margin-top: 20px;
    margin-right: 20px;
}

#message-frame .alert,
#success-frame .alert {
    margin-top: 20px;
}

#message-frame,
#success-frame {
    text-align: center;
    height: auto;
    border: none;
    padding: 35px;
}

#message-frame #message-icon,
#success-frame #success-icon {
    width: 64px;
    display: block;
    margin: auto;
    float: none !important;
}

#success-frame .btn {
    margin-bottom: 10px;
    width: 80%;
    max-width: 300px;
}

@media (min-width: 768px) {
    #message-frame,
    #success-frame {
        height: 100%;
    }
}

/* CANCEL APPOINTMENT
   ------------------------------------------------------------------------- */

.booking-header-bar {
    padding: 15px 0;
    margin: 0;
    background: #f3f2e7;
    border-bottom: 1px solid #e4e1c9;
    text-align: center;
}

.ui-dialog .ui-dialog-title {
    font-size: 1.2em;
}

@media (min-width: 768px) {
    .booking-header-bar {
        padding: 15px 0;
        margin: 0;
        background: #f3f2e7;
        border-bottom: 1px solid #e4e1c9;
        text-align: left;
    }
}
