

/* Start:/bitrix/components/bitrix/main.feedback/templates/bootstrap_v4/style.min.css?172181288632*/
.mf-control-required{color:#f00}
/* End */


/* Start:/local/components/pcode/google.calendar/templates/.default/style.css?177004106914611*/
/* Modern Reset & Base */
.booking-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: visible;
    /* Changed to visible for popup */
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    box-sizing: border-box;
}

.booking-header {
    text-align: center;
    margin-bottom: 32px;
}

.booking-header h3 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.booking-header p {
    color: #666;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Selectors */
.booking-selectors {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 481px) {
    .booking-selectors {
        flex-direction: row;
    }
}

.selector-group {
    flex: 1;
    min-width: 0;
}

.selector-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Select CSS */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-original {
    display: none !important;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #1f2937;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.custom-select-trigger:after {
    content: '';
    width: 1.25em;
    height: 1.25em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.1s;
}

.custom-option:hover {
    background-color: #f3f4f6;
    color: #111;
}

.custom-option.selected {
    background-color: #eff6ff;
    color: #4f46e5;
    font-weight: 600;
}

.custom-option.hidden {
    display: none;
}

/* Calendar Controls Bar */
.booking-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 56px;
    box-sizing: border-box;
}

.control-btn {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    user-select: none;
}

.control-btn:hover {
    background: #f9fafb;
    color: #111;
    border-color: #e5e7eb;
}

/* Date Wrapper & Custom Calendar */
.date-display-wrapper {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    margin: 0 8px;
    background: #f9fafb;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.date-display-wrapper:hover {
    background: #f3f4f6;
}

#current-date-text {
    z-index: 1;
    text-transform: capitalize;
}

.calendar-icon {
    margin-left: 8px;
    color: #9ca3af;
    z-index: 1;
}

/* Custom Calendar Popup Styles */
/* Custom Calendar Popup Styles -> Low a Global Modal Dialog */
.custom-calendar {
    position: fixed;
    /* Fixed to viewport to prevent clipping and ensure focus */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered */
    width: 360px;
    /* Slightly wider for desktop */
    max-width: 90vw;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1000vw rgba(0, 0, 0, 0.4);
    /* Deep Shadow + Backdrop Overlay */
    padding: 24px;
    z-index: 10000;
    /* Very high z-index */
    animation: fadeInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.custom-calendar.hidden {
    display: none;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cal-month-year {
    font-weight: 700;
    font-size: 17px;
    color: #1f2937;
    text-transform: capitalize;
}

.cal-nav {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 18px;
    color: #6b7280;
    border-radius: 8px;
    transition: background 0.2s;
}

.cal-nav:hover {
    background: #f3f4f6;
    color: #111;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 12px;
    text-align: center;
}

.calendar-days-header span {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    /* Gap between days */
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    border-radius: 50%;
    /* Circle */
    transition: all 0.2s;
}

.cal-day:hover:not(.empty):not(.disabled) {
    background: #f3f4f6;
    color: #111;
}

.cal-day.selected {
    background: #4f46e5;
    color: white;
    font-weight: 600;
}

.cal-day.today {
    color: #4f46e5;
    font-weight: 700;
    border: 1px solid #4f46e5;
}

.cal-day.disabled {
    color: #e5e7eb;
    cursor: default;
}

.cal-day.empty {
    cursor: default;
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    min-height: 120px;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-content: start;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.time-slot {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.time-slot:hover {
    background: #eff6ff;
    border-color: #6366f1;
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
    z-index: 1;
}

.time-slot.busy {
    background: #f9fafb;
    border-color: transparent;
    color: #d1d5db;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
    pointer-events: none;
    box-shadow: none;
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    min-height: 120px;
    font-size: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
}

/* Modal */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    padding: 32px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.booking-modal.visible .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #111827;
    background: #e5e7eb;
}

.modal-content h4 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.selected-time-display {
    background: #eef2ff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
    color: #4338ca;
    font-size: 15px;
    border: 1px solid #e0e7ff;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #f9fafb;
    color: #111827;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Success Screen */
.booking-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.booking-success h3 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.booking-success p {
    color: #4b5563;
    font-size: 16px;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.reset-btn {
    display: inline-block;
    background: #10b981;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
}

.reset-btn:hover {
    background: #059669;
    color: white;
}

.hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .booking-widget {
        padding: 24px 20px;
        margin: 15px 10px;
        border-radius: 20px;
    }

    .booking-header h3 {
        font-size: 24px;
    }

    /* Slots fixing */
    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .time-slot {
        font-size: 14px;
        padding: 10px 4px;
        height: 44px;
        box-sizing: border-box;
    }

    /* Date Text size */
    .date-display-wrapper {
        font-size: 14px;
        margin: 0 4px;
    }

    /* Mobile Calendar adjustments */
    .custom-calendar {
        width: 100%;
        max-width: 90vw;
        padding: 20px;
    }

    /* Mobile Bottom Sheet Modal for Booking Form */
    .booking-modal {
        align-items: flex-end;
    }

    .modal-content {
        padding: 24px;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        margin: 0;
        transform: translateY(100%);
    }

    .booking-modal.visible .modal-content {
        transform: translateY(0);
    }
}

@media (max-width: 360px) {
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cols on very small screens */
    }
}
/* End */
/* /bitrix/components/bitrix/main.feedback/templates/bootstrap_v4/style.min.css?172181288632 */
/* /local/components/pcode/google.calendar/templates/.default/style.css?177004106914611 */
