.popup-overlay {
    font-family: "Inter", sans-serif;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    position: absolute;
    top: 20px;
    right: -100%;
    max-width: 100%;
    transition: right .5s ease;

}


.popup--right {
    right: -100%;
}

.popup-overlay.active .popup--right {
    right: 20px;
}


.popup .meeting {
    width: 744px;
    height: 734px;
    padding: 40px;
    background: #F8F7F7;
    border-radius: 24px;
    overflow-y: auto;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popup .meeting::-webkit-scrollbar {
    display: none;
}

.popup .close-button-x {
    position: absolute;
    right: 43px;
    top: 52px;
    background: none;
    border: none;
}

.popup .meeting h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 48px;
    color: #1F1000;
    margin-bottom: 24px;
}

#employeeHeading span {
    color: #F07C00;
}

.popup .meeting h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: #1F1000;
    margin: 24px 0;
}

.popup .meeting label {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #1F1000;
}

.popup #email {
    margin-bottom: 24px;
}

.popup input {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    width: 308px;
    border: 1px solid #CCC8C2;
}

.popup input.phone, .popup input.email {
    width: 640px;
}

.popup .form__group {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
    width: 640px;
}
.popup .info {
    color: #7A7267;
    font-weight: 400;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup .time {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.popup .time__day {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.time__hour {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hour-container {
    overflow-y: auto;
    border-radius: 16px;
    flex: 1;
    min-height: 0;
}

.popup .hour-group	{
    overflow-y: auto;
    overflow-x: hidden;
    height: 452px;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 16px;
}
.popup .hour-button {
    color: #1F1000;
    display: block;
    border: 2px solid #DAD7D3;
    background: transparent;
    width: 148px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.5s, border 0.5s;
}
.popup .hour-button:hover {
    background: #FFD8AD;
    border: 2px solid #F07C00;
    cursor: pointer;
}

.popup .selected-hour {
    background: #F07C00;
    border: 2px solid #F07C00;
}

.popup #employee div {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.popup .employee-button {
    border: 2px solid #DAD7D3;
    background: transparent;
    padding: 12px 16px;
    border-radius: 8px;
    text-wrap: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.5s, border 0.5s;
}

.popup .employee-button {
    color: #1F1000;
}

.popup .employee-button img {
    width: 24px;
    height: 24px;
    border-radius: 100px;
}

.popup .employee-button:hover {
    background: #FFD8AD;
    border: 2px solid #F07C00;
    cursor: pointer;
}
.popup .selected-employee {
    background: #F07C00;
    border: 2px solid #F07C00;
}

.popup .checkbox-wrapper {
    margin: 72px 0 24px;
}

.popup .custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-block;
    color: #7A7267;
    user-select: none;
}

.popup .custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    color: #1F1000;
}

input::placeholder {
    color: #7A7267;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}



.popup .custom-checkbox .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 14px;
    width: 14px;
    background-color: #FFFFFF;
    border: 1px solid #FF9A2D;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup .custom-checkbox .check-icon {
    display: none;
    width: 10px;
    height: 10px;
}

.popup .custom-checkbox input:checked ~ .checkmark .check-icon {
    display: block;
}

.popup .custom-checkbox:hover input ~ .checkmark {
    border-color: #FFC180;
}

.popup .custom-checkbox a {
    color: inherit;
    text-decoration: underline;
}

.popup .custom-checkbox a:hover {
    text-decoration: none;
}

.popup .custom-checkbox .checkmark img {
    display: none;
}

.popup .custom-checkbox input:checked ~ .checkmark img {
    display: block;
}

.popup button[type=submit] {
    margin-top: 24px;
    background: #FF9A2D;
    border: none;
    padding: 16px;
    border-radius: 100px;
    width: 100%;
    transition: background 0.5s;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #1F1000;
}
.popup button[type=submit]:hover {
    cursor: pointer;
    background: #FFC180;
}

.popup button.cancel {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    transition: color 0.5s;
    border: none;
    background: transparent;
    width: 100%;
    padding: 16px;
    cursor: pointer;
    color: #1F1000;
}

.popup button.cancel:hover {
    color: #FFC180;
    cursor: pointer;
}


.popup .success-online, .success-offline {
    display: none;
    min-height: 268px;
    padding: 24px;
    border-radius: 24px;
    border: 2px solid #F3F2F1;
    background: #FFFFFF;
    text-align: center;
}

.popup .success span {
    display: block;
    width: 100%;
    text-align: center;
    border: 2px solid #DAD7D3;
    padding: 16px;
    margin: 16px 0;
    border-radius: 8px;
}

.popup .success .success-close {
    text-align: center;
    border-radius: 100px;
    border: 2px solid #1F1000;
    padding: 12px 20px;
    background: none;
    margin-top: 24px;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    background: #F3F2F1;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tab-button {
    padding: 6px 12px;
    background-color: #F3F2F1;
    color: #BFBAB3;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: color 0.5s, background-color 0.5s, border 0.5s;
    font-size: 16px;
    line-height: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    border: 1px solid #F3F2F1;
}
.tab-button:hover {
    border: 1px solid #FFC180;
}

.tab-button.active {
    color: #1F1000;
    background-color: #FFFFFF;
}
.custom-select {
    position: relative;
    user-select: none;
    cursor: pointer;
}

.custom-select-trigger {
    background: #fff;
    border: 1px solid #CCC8C2;
    padding: 12px 30px 12px 16px;
    border-radius: 8px;
    width: 260px;
    box-sizing: content-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#customSelect {
    width: calc(100% - 72px);
}

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 5;
    width: 308px;
    overflow-y: auto;
    border-radius: 8px;
    transition: all 0.5s;
}

#customSelect .custom-options {
    width: 100%;
    max-height: 300px;
}

.custom-option {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    box-sizing: content-box;
    width: 274px;
}
#customSelect .custom-option {
    width: calc(100% - 32px);
}

.custom-option:hover {
    background-color: #f2f2f2;
}

.custom-select.open .custom-options {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.chevron-icon {
    position: absolute;
    right: 10px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.custom-select.open .chevron-icon {
    transform: rotate(180deg);
}
.calendar {
    font-family: sans-serif;
    background: #FFFFFF;
    border: 1px solid #F3F2F1;
    padding: 24px;
    border-radius: 24px;
    box-sizing: content-box;
}

.calendar-header {
    display: flex;
    gap: 24px;
    align-items: center;
    font-weight: 600;
    margin-bottom: 24px;
}
.calendar-header button {
    border: none;
    background: none;
}

.calendar-weekdays {
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 24px;
    margin-bottom: 24px;
    font-weight: 600;
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 10px;
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 10px;
}

.calendar-days div {
    padding: 8px;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s;
}
.calendar-days div:hover {
    background: #FFC180;
    cursor: pointer;
}
.today {
    border: 1px solid #FFC180;
}

.other-month {
    color: #bbb;
}

.selected {
    background: #F07C00;
    border: 1px solid #F07C00;
    color: white;
    font-weight: bold;
}
.disabled {
    background: #E5E3E1;
    color: #BFBAB3;
}

@media (max-width: 768px) {
    .popup .close-button-x {
        top: 16px;
        right: 16px;
    }
    .popup .meeting {
        padding: 56px 16px 40px;
        width: 327px;
    }
    .popup-overlay.active .popup--right {
        right: 20px;
    }
    .popup {
        transition: right 0s ease;
    }
    .popup .meeting h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    .popup .meeting h3 {
        font-size: 20px;
        line-height: 1.4;
    }
    .tab-button {
        height: 52px;
    }
    .custom-select-trigger {
        width: 100%;
        box-sizing: border-box;
    }
    .popup .form__group {
        flex-direction: column;
        width: 100%;
    }
    .popup .time {
        flex-direction: column;
    }
    .calendar-days div {
        aspect-ratio: unset;
        width: 16px;
        padding: 8px 6px 7px 7px;
        box-sizing: content-box;
    }
    .calendar {
        padding: 16px;
    }
    .popup input.phone, .popup input.email {
        width: 100%;
    }
    .popup input {
        width: 100%;
    }
    #customSelect {
        width: 100%;
    }
}