﻿/* CFP Auto Scheduler Start */

.cio-cfp-scheduler,
.cio-cfp-scheduler *,
.cio-cfp-scheduler *::before,
.cio-cfp-scheduler *::after {
    box-sizing: border-box;
}

.cio-cfp-scheduler {
    width: 100%;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dfe5ed;
    border-radius: 14px;
    background: #f7f9fc;
    color: #263648;
}

.cio-cfp-scheduler-header {
    margin-bottom: 20px;
}

.cio-cfp-scheduler-title {
    color: #24364b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.cio-cfp-scheduler-description {
    margin-top: 5px;
    color: #68798c;
    font-size: 14px;
    line-height: 1.5;
}

.cio-cfp-scheduler-layout {
    display: grid;
    grid-template-columns: minmax(310px, 0.9fr) minmax(320px, 1.1fr);
    gap: 20px;
    align-items: stretch;
}

/* Calendar */

.cio-cfp-scheduler-calendar {
    padding: 18px;
    border: 1px solid #dce3eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(31, 48, 69, 0.06);
}

.cio-cfp-scheduler-calendar-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
    margin-bottom: 17px;
}

.cio-cfp-scheduler-calendar-month {
    min-width: 0;
    color: #293d53;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.cio-cfp-scheduler-calendar-navigation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid #d5dde7;
    border-radius: 9px;
    background: #ffffff;
    color: #43566c;
    cursor: pointer;
    font-family: inherit;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

    .cio-cfp-scheduler-calendar-navigation:hover:not(:disabled) {
        border-color: #5680e9;
        background: #f1f5ff;
        color: #365fca;
        box-shadow: 0 3px 10px rgba(86, 128, 233, 0.14);
        transform: translateY(-1px);
    }

    .cio-cfp-scheduler-calendar-navigation:focus-visible {
        border-color: #5680e9;
        outline: none;
        box-shadow: 0 0 0 3px rgba(86, 128, 233, 0.18);
    }

    .cio-cfp-scheduler-calendar-navigation:disabled {
        border-color: #e6eaf0;
        background: #f7f8fa;
        color: #b6c0cc;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.7;
        transform: none;
    }

.cio-cfp-scheduler-weekdays,
.cio-cfp-scheduler-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.cio-cfp-scheduler-weekdays {
    margin-bottom: 7px;
}

    .cio-cfp-scheduler-weekdays span {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 4px 0;
        color: #7b8998;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        text-transform: uppercase;
    }

.cio-cfp-scheduler-calendar-blank {
    display: block;
    min-width: 0;
    aspect-ratio: 1 / 1;
}

.cio-cfp-scheduler-calendar-day {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #ffffff;
    color: #34485e;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

    .cio-cfp-scheduler-calendar-day:hover:not(:disabled) {
        border-color: #b9c9f3;
        background: #edf2ff;
        color: #365fca;
        box-shadow: 0 2px 7px rgba(86, 128, 233, 0.12);
        transform: translateY(-1px);
    }

    .cio-cfp-scheduler-calendar-day:focus-visible {
        border-color: #5680e9;
        outline: none;
        box-shadow: 0 0 0 3px rgba(86, 128, 233, 0.18);
    }

.cio-cfp-scheduler-calendar-day-today:not( .cio-cfp-scheduler-calendar-day-selected ) {
    border-color: #9db3ec;
    color: #365fca;
    font-weight: 800;
}

    .cio-cfp-scheduler-calendar-day-today:not( .cio-cfp-scheduler-calendar-day-selected )::after {
        position: absolute;
        bottom: 4px;
        left: 50%;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #5680e9;
        content: "";
        transform: translateX(-50%);
    }

.cio-cfp-scheduler-calendar-day-selected,
.cio-cfp-scheduler-calendar-day-selected:hover:not(:disabled) {
    border-color: #4f73d9;
    background: #5680e9;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 5px 13px rgba(86, 128, 233, 0.28);
    transform: none;
}

    .cio-cfp-scheduler-calendar-day-selected::after {
        background: #ffffff !important;
    }

.cio-cfp-scheduler-calendar-day:disabled {
    border-color: transparent;
    background: transparent;
    color: #c4ccd5;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.72;
    transform: none;
}

/* Availability Area */

.cio-cfp-scheduler-availability {
    position: relative;
    min-height: 350px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #dce3eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(31, 48, 69, 0.06);
}

.cio-cfp-scheduler-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 308px;
    padding: 24px;
    color: #718093;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
}

    .cio-cfp-scheduler-prompt::before {
        display: block;
        margin-right: 10px;
        color: #5680e9;
        content: "\25CF";
        font-size: 11px;
    }

/* Loading */

.cio-cfp-scheduler-loading {
    position: absolute;
    z-index: 5;
    inset: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.94);
    color: #56687b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    backdrop-filter: blur(2px);
}

.cio-cfp-scheduler-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #dce5f8;
    border-top-color: #5680e9;
    border-radius: 50%;
    animation: cioCfpSchedulerSpin 0.8s linear infinite;
}

/* Messages */

.cio-cfp-scheduler-message:empty {
    display: none;
}

.cio-cfp-scheduler-message {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.cio-cfp-scheduler-message-error {
    border-color: #e8b9b9;
    background: #fff2f2;
    color: #9c3535;
}

.cio-cfp-scheduler-message-success {
    border-color: #b8dfc5;
    background: #f0fbf4;
    color: #267341;
}

.cio-cfp-scheduler-message-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border-color: #d9e0e8;
    border-style: dashed;
    background: #fafbfd;
    color: #68798c;
    text-align: center;
}

/* Availability Results */

.cio-cfp-scheduler-results-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6ebf1;
}

.cio-cfp-scheduler-results-title {
    color: #293d53;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.cio-cfp-scheduler-results-date {
    margin-top: 4px;
    color: #6d7e91;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.cio-cfp-scheduler-periods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cio-cfp-scheduler-period {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.cio-cfp-scheduler-period-content {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}


.cio-cfp-scheduler-period-name {
    color: #293d53;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.cio-cfp-scheduler-period-time {
    margin-top: 0;
    text-align: right;
}

.cio-cfp-scheduler-book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 44px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid #4f73d9;
    border-radius: 9px;
    background: linear-gradient( 180deg, #6d90f2 0%, #5680e9 100% );
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1px;
    box-shadow: 0 3px 9px rgba(86, 128, 233, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

    .cio-cfp-scheduler-book-button:hover:not(:disabled) {
        background: linear-gradient( 180deg, #7b9cf4 0%, #416bd0 100% );
        color: #ffffff !important;
        box-shadow: 0 6px 16px rgba(65, 107, 208, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.28);
        transform: translateY(-1px);
    }

    .cio-cfp-scheduler-book-button:active:not(:disabled) {
        box-shadow: 0 2px 7px rgba(65, 107, 208, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.12);
        transform: translateY(0);
    }

    .cio-cfp-scheduler-book-button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(86, 128, 233, 0.2), 0 5px 14px rgba(65, 107, 208, 0.25);
    }

    .cio-cfp-scheduler-book-button:disabled {
        border-color: #9cadc2;
        background: #aab7c7;
        color: #ffffff;
        cursor: wait;
        box-shadow: none;
        opacity: 0.75;
        transform: none;
    }

/* Tablet */

@media screen and (max-width: 900px) {
    .cio-cfp-scheduler-layout {
        grid-template-columns: 1fr;
    }

    .cio-cfp-scheduler-calendar,
    .cio-cfp-scheduler-availability {
        width: 100%;
    }

    .cio-cfp-scheduler-availability {
        min-height: 260px;
    }

    .cio-cfp-scheduler-prompt {
        min-height: 218px;
    }

    .cio-cfp-scheduler-message-empty {
        min-height: 180px;
    }
}

/* Mobile */

@media screen and (max-width: 600px) {
    .cio-cfp-scheduler {
        margin-top: 14px;
        padding: 14px;
        border-radius: 11px;
    }

    .cio-cfp-scheduler-header {
        margin-bottom: 15px;
    }

    .cio-cfp-scheduler-title {
        font-size: 18px;
    }

    .cio-cfp-scheduler-description {
        font-size: 13px;
    }

    .cio-cfp-scheduler-layout {
        gap: 14px;
    }

    .cio-cfp-scheduler-calendar {
        padding: 12px;
        border-radius: 10px;
    }

    .cio-cfp-scheduler-calendar-header {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 7px;
        margin-bottom: 13px;
    }

    .cio-cfp-scheduler-calendar-navigation {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        font-size: 25px;
    }

    .cio-cfp-scheduler-calendar-month {
        font-size: 15px;
    }

    .cio-cfp-scheduler-weekdays,
    .cio-cfp-scheduler-calendar-days {
        gap: 3px;
    }

        .cio-cfp-scheduler-weekdays span {
            font-size: 9px;
        }

    .cio-cfp-scheduler-calendar-day {
        min-height: 38px;
        border-radius: 7px;
        font-size: 13px;
    }

    .cio-cfp-scheduler-availability {
        min-height: 240px;
        padding: 14px;
        border-radius: 10px;
    }

    .cio-cfp-scheduler-prompt {
        min-height: 198px;
        padding: 18px;
        font-size: 13px;
    }

    .cio-cfp-scheduler-period {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
        padding: 14px;
    }

    .cio-cfp-scheduler-period-name {
        font-size: 16px;
    }

    .cio-cfp-scheduler-book-button {
        width: 100%;
        min-height: 46px;
    }

    .cio-cfp-scheduler-message {
        padding: 12px 13px;
        font-size: 13px;
    }

    .cio-cfp-scheduler-message-empty {
        min-height: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cio-cfp-scheduler-calendar-navigation,
    .cio-cfp-scheduler-calendar-day,
    .cio-cfp-scheduler-period,
    .cio-cfp-scheduler-book-button {
        transition: none;
    }

    .cio-cfp-scheduler-spinner {
        animation-duration: 1.5s;
    }
}

@keyframes cioCfpSchedulerSpin {
    to {
        transform: rotate(360deg);
    }
}

/* CFP Scheduler Two-Column Containment */

.cio-cfp-scheduler {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.cio-cfp-scheduler-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.cio-cfp-scheduler-calendar,
.cio-cfp-scheduler-availability,
.cio-cfp-scheduler-results,
.cio-cfp-scheduler-period,
.cio-cfp-scheduler-period-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cio-cfp-scheduler-calendar,
.cio-cfp-scheduler-availability {
    overflow: hidden;
}

.cio-cfp-scheduler-period {
    display: flex;
    min-width: 0;
}

.cio-cfp-scheduler-period-content {
    flex: 1 1 auto;
    overflow: hidden;
}

.cio-cfp-scheduler-book-button {
    flex: 0 0 auto;
    min-width: 100px;
}

@media screen and (max-width: 700px) {
    .cio-cfp-scheduler-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* CFP Auto Scheduler End */


