/* Modal */
.utzo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow-y: auto;
}

.utzo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.utzo-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    margin: 6vh auto;
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

.utzo-modal-content h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.utzo-modal-content p {
    margin-bottom: 20px;
}

.utzo-modal-close {
    position: absolute;
    right: 15px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.utzo-form-group {
    margin-bottom: 15px;
}

.utzo-form-group input {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.utzo-submit-btn {
    /*width: 100%;*/
    padding: 10px;
    background: #f6ac3d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.utzo-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.utzo-success-message {
    margin-top: 15px;
    padding: 12px;
    background: #e7f7ed;
    color: #16733a;
    border-radius: 5px;
}

.utzo-error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fdeaea;
    color: #b42318;
    border-radius: 5px;
}

@media(max-width: 480px) {
    .utzo-modal-content {
        padding: 25px 18px;
        margin: 10vh auto;
    }
}

.utzo-field-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.utzo-form-group input.is-invalid {
    border-color: #dc3545;
}


#utzoStickyBookingWrapper {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 999999;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* Toggle button */
#utzoBookingToggle {
    position: relative;
    flex-shrink: 0;
    background: #f6ac3d;
    color: #fff;
    border: none;
    padding: 18px 13px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    writing-mode: sideways-lr;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .35s ease;
}

/* Appointment form */
.utzo-sticky-booking {
    width: 340px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 22px;
    box-sizing: border-box;
    box-shadow: 0 5px 30px rgba(0,0,0,.2);
    border-radius: 10px 0 0 10px;

    margin-right: -340px;
    opacity: 0;
    visibility: hidden;

    transition:
        margin-right .4s ease,
        opacity .3s ease,
        visibility .4s ease;
}

/* Open animation */
#utzoStickyBookingWrapper.active .utzo-sticky-booking {
    margin-right: 0;
    opacity: 1;
    visibility: visible;
}

/* Button moves left automatically */
#utzoStickyBookingWrapper.active #utzoBookingToggle {
    border-radius: 8px 0 0 8px;
}

/* Header */
.utzo-sticky-header {
    background: #f6ac3d;
    color: #fff;
    padding: 18px;
    margin: -22px -22px 20px;
    position: relative;
}

.utzo-sticky-header h3 {
    color: #fff;
    margin: 0 25px 5px 0;
    font-size: 21px;
}

.utzo-sticky-header p {
    color: #fff;
    margin: 0;
    font-size: 13px;
}

#utzoBookingClose {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* Mobile */
@media(max-width: 767px) {
    .utzo-sticky-booking {
        width: min(340px, calc(100vw - 50px));
        margin-right: calc(-1 * min(340px, 100vw - 50px));
        max-height: 85vh;
    }

    #utzoStickyBookingWrapper.active .utzo-sticky-booking {
        margin-right: 0;
    }
}

/* Form fields */
.utzo-sticky-field {
    margin-bottom: 13px;
}

.utzo-sticky-field input,
.utzo-sticky-field select,
.utzo-sticky-field textarea {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.utzo-sticky-field textarea {
    height: 80px;
}

.utzo-sticky-field .utzo-field-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
}

.utzo-sticky-submit {
    /*width: 100%;*/
    padding: 10px;
    background: #f6ac3d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px !important;
}

.utzo-sticky-date-time {
    display: flex;
    gap: 10px;
    width: 100%;
}

.utzo-sticky-date-time .utzo-sticky-field {
    flex: 1;
    min-width: 0;
}

.utzo-sticky-date-time input,
.utzo-sticky-date-time select {
    width: 100%;
    box-sizing: border-box;
}

/* Form fields */
.utzo-appointment-field {
    margin-bottom: 13px;
}

.utzo-appointment-field input,
.utzo-appointment-field select,
.utzo-appointment-field textarea,
.utzo-appointment-field select {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.utzo-appointment-field textarea {
    height: 80px;
}

.utzo-appointment-field-select{
    background: #fff !important;
}

.utzo-appointment-field label {
    color: #fff;
    font-weight: bold;
}

.utzo-appointment-field .contact-label{
    color: red;
}

.utzo-appointment-field .utzo-field-error {
    display: block;
    color: #dc3545;
    font-size: 16px;
}

.utzo-appointment-submit {
    /*width: 100%;*/
    padding: 10px;
    background: #f6ac3d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.utzo-appointment-date-time {
    display: flex;
    gap: 10px;
    width: 100%;
}

.utzo-appointment-date-time .utzo-appointment-field {
    flex: 1;
    min-width: 0;
}

.utzo-appointment-date-time input,
.utzo-appointment-date-time select {
    width: 100%;
    box-sizing: border-box;
}

.flatpickr-calendar{
    z-index: 99999999 !important;
}

.utzo-field-processing{
    background: #e3a47f !important;
}


/* Success Popup */
.utzo-success-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.utzo-success-popup.active {
    display: flex;
}

.utzo-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.utzo-success-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    min-height: 400px;
    padding: 65px 35px 35px;
    background: #fff;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    animation: utzoPopupShow 0.3s ease;
}

.utzo-success-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.utzo-success-icon {
    width: 115px;
    height: 115px;
    margin: 0 auto 35px;
}

.utzo-success-icon svg {
    width: 100%;
    height: 100%;
}

.utzo-success-icon circle {
    fill: none;
    stroke: #70d348;
    stroke-width: 3.5;
    stroke-dasharray: 277;
    stroke-dashoffset: 277;
    animation: utzoCircleDraw 0.7s ease forwards;
}

.utzo-success-icon path {
    fill: none;
    stroke: #70d348;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 75;
    stroke-dashoffset: 75;
    animation: utzoCheckDraw 0.5s 0.5s ease forwards;
}

.utzo-success-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: #444;
    margin: 0 0 15px;
}

.utzo-success-description {
    font-size: 19px;
    line-height: 1.55;
    color: #444;
    margin-bottom: 15px;
}

.utzo-success-description strong {
    font-weight: 600;
}

.utzo-success-footer {
    font-size: 19px;
    color: #444;
    margin: 15px 0 0;
}

@keyframes utzoCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes utzoCheckDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes utzoPopupShow {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media(max-width: 600px) {
    .utzo-success-content {
        padding: 55px 20px 30px;
        min-height: auto;
    }

    .utzo-success-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
    }

    .utzo-success-content h2 {
        font-size: 27px;
    }

    .utzo-success-description,
    .utzo-success-footer {
        font-size: 16px;
    }
}

.utzo-form-loader {
    display: none;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.utzo-spinner {
    width: 22px;
    height: 22px;
    border: 10px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: utzoSpin 0.7s linear infinite;
    float: left;
    margin-right: 5px;
}

.utzo-spinner-txt {
    color: red;
}

@keyframes utzoSpin {
    to {
        transform: rotate(360deg);
    }
}