@font-face {
    font-family: 'estdad';
    src: url('fonts/estdad.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

#sab-appointment-form {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    direction: rtl;
    font-family: 'estdad', sans-serif;
	align-items: center;
}
.swal2-popup, .swal2-title {
	font-family: 'estdad', sans-serif;
}
.sab-field {
    min-width: 0;
    width: calc(<?php echo esc_attr($field['width']); ?>% - 2px);
    margin-bottom: 20px;
    padding: 0 10px;
}
.sab-form-field[width="33"] {
    flex: 1 1 calc(33.33% - 5px);
}
#sab-appointment-form input[type="text"],
#sab-appointment-form input[type="number"],
#sab-appointment-form input[type="email"],
#sab-appointment-form textarea,
#sab-appointment-form select,
.sab-select-button,
.upld {
    width: 100%;
    height: 50px; 
    padding: 12px 15px;
    border: 1px solid var(--theme-palette-color-6);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'estdad', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
	margin-top: 5px;
}
.sab-radio-container, .sab-checkbox-container, .sab-select-wrapper, .sab-file-upload-container {
	margin-top: 5px;
}
#sab-appointment-form textarea {
    height: 120px;
    resize: vertical;
}

#sab-appointment-form input:focus,
#sab-appointment-form textarea:focus,
#sab-appointment-form select:focus,
.sab-select-button:hover:not(:disabled) {
    border-color: var(--theme-palette-color-1);
    background: #fff;
    box-shadow: 0 0 8px rgba(40, 102, 110, 0.2);
    outline: none;
	color: var(--theme-palette-color-2);
}
.sab-file-upload-container {
    display: flex;
    gap: 15px;
}
#sab-appointment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-palette-color-4) !important;
    font-family: 'estdad', sans-serif;
}

.sab-custom-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sab-upload-btn {
    height: 50px;
    padding: 0 20px;
    background: var(--theme-palette-color-2);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.sab-upload-btn:hover {
    background: #1e4d54;
}

.sab-file-name {
    font-size: 13px;
}

/* .sab-radio-container,
.sab-checkbox-container {
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #d0d7d9;
    border-radius: 8px;
    margin: 15px 0;
} */

.sab-radio-options,
.sab-checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sab-radio-option,
.sab-checkbox-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sab-radio-option label,
.sab-checkbox-option label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.sab-date-radio-group,
.sab-time-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px 0;
}

.sab-date-radio-group label,
.sab-time-radio-group label {
    display: flex;
	gap: 5px;
    align-items: center;
    padding: 12px;
    border: 1px solid #d0d7d9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--theme-palette-color-4);
	font-family: 'estdad', sans-serif;
        margin: 0;
}
.form .select .option, form select option {
    border-style: unset !important;
    border-color: unset !important;
    border-width: unset !important;
    border-radius: unset !important;
    background: unset !important;
    color: unset !important;
    padding: unset !important;
    text-transform: unset !important;
    font-weight: unset !important;
    font-family: unset !important;
    font-size: unset !important;
    letter-spacing: unset !important;
    line-height: unset !important;
}
.sab-date-radio-group label:hover:not(.label-booked),
.sab-time-radio-group label:hover:not(.label-booked) {
    background: var(--theme-palette-color-2);
    border-color: var(--theme-palette-color-2);
    box-shadow: 0 3px 6px rgba(40, 102, 110, 0.1);
    border: 1px solid #d0d7d9;
    color: var(--theme-palette-color-5);
}

.label-booked {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #e7e7e7;
}

.sab-select-button {
    background: var(--theme-palette-color-2) !important;
    color: #fff !important;
}
.sab-select-button:hover {
background: var(--theme-palette-color-1) !important;
}
.sab-select-button:disabled {
    color: #bdbdbd !important;
    cursor: not-allowed !important;
}
.submit-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
	padding: 0 10px;
}

.plus-button, .swal2-confirm {
    height: 50px;
    padding: 0 30px !important;
    background: var(--theme-palette-color-2) !important;
    color: #fff !important;
    border: none;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: 'estdad', sans-serif !important;
    cursor: pointer !important;
    transition: background 0.3s ease;
}
.plus-button:hover, .swal2-confirm:hover {
    background: var(--theme-palette-color-1) !important;
}
.swal2-cancel {
	height: 50px;
    padding: 0 30px;
    background: #717171;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'estdad', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;	
}
.swal2-cancel:hover {
    background: #454545;
}

#sab-message .success {
    background: #e6f3f3;
    color: var(--theme-palette-color-2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

#sab-message .error {
    background: #fce8e8;
    color: #b91c1c;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

#sab-captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#sab-captcha-canvas {
    border: 1px solid #d0d7d9;
    border-radius: 8px;
	height: 50px;
    margin-top: 5px;
}

.refresh-btn {
    background: none;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sab-date-radio-group::-webkit-scrollbar,
.sab-time-radio-group::-webkit-scrollbar {
    width: 8px;
}

.sab-date-radio-group::-webkit-scrollbar-track,
.sab-time-radio-group::-webkit-scrollbar-track {
    background: #f1f5f6;
    border-radius: 4px;
}

.sab-date-radio-group::-webkit-scrollbar-thumb,
.sab-time-radio-group::-webkit-scrollbar-thumb {
    background: var(--theme-palette-color-2);
    border-radius: 4px;
}

.sab-date-radio-group::-webkit-scrollbar-thumb:hover,
.sab-time-radio-group::-webkit-scrollbar-thumb:hover {
    background: #1e4d54;
}

.swal2-popup.swal-rtl {
    direction: rtl;
    overflow-x: hidden;
    background: var(--theme-palette-color-8);
        color: color: var(--theme-palette-color-5);
}
.swiper-container {
    width: 100%;
    height: 370px !important;
    overflow: hidden;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
.month-pair {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px; 
}
.calendar-month {
    text-align: center;
    direction: rtl;
    padding: 5px;
}

.swiper-button-next, .swiper-button-prev {
	color: var(--theme-palette-color-1) !important;
}
.calendar-day {
    padding: 5px;
    border: 1px solid #fff;
    text-align: center;
    cursor: pointer;
	font-size: 16px;
	line-height: 25px;
}
.day-header {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    background: var(--theme-palette-color-4);
    border: 1px solid var(--theme-palette-color-8);
    color: var(--theme-palette-color-6);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day.empty {
    border: none;
}
.calendar-day.available {
    background-color: var(--theme-palette-color-1);
    border: 1px solid var(--theme-palette-color-8);
    border-radius: 3px;
    color: var(--theme-palette-color-8);
}
.calendar-day.unavailable {
    color: var(--theme-palette-color-4);
    border: 1px solid var(--theme-palette-color-8);
    cursor: not-allowed;
    background: rgb(133 133 133 / 19%);
}
.calendar-day.selected {
    background-color: var(--theme-palette-color-2);
    color: white;
}
.swiper-button-next, .swiper-button-prev {
    color: #007bff;
}

@media screen and (min-width: 1024px) {
    .sab-date-radio-group,
    .sab-time-radio-group {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
	.swal2-popup {
		min-width: 60em;
		padding: 20px;
	}	
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .sab-field {
        flex: 1 1 48%;
    }

    .sab-date-radio-group,
    .sab-time-radio-group {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media screen and (max-width: 767px) {
    #sab-appointment-form {
        padding: 15px;
    }

    .sab-field {
        flex: 1 1 100%;
    }

    .sab-custom-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .sab-upload-btn {
        width: 100%;
    }

    .sab-date-radio-group,
    .sab-time-radio-group {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .plus-button {
        width: 100%;
    }

    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }

    .calendar-day {
        padding: 6px;
        font-size: 12px;
    }
   .refresh-btn {
       margin-top: 5px;
   }
}