@font-face {
    font-family: 'estdad';
    src: url('fonts/estdad.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
:root {
    --sab-primary: #28666e;
    --sab-primary-hover: #0a8291;
    --sab-secondary: #6c757d;
    --sab-secondary-hover: #5a6268;
    --sab-success: #4CAF50;
    --sab-error: #d35739;
    --sab-text: #333333;
    --sab-label: #28666e;
    --sab-border: #d0d7d9;
    --sab-bg: #ffffff;
    --sab-input-bg: #ffffff;
    --sab-font: 'estdad', sans-serif;
    --sab-radius: 8px;
    --sab-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
#sab-appointment-form {
    padding: 20px;
    direction: rtl;
    font-family: 'estdad', sans-serif;
	align-items: center;
}
.swal2-popup, .swal2-title {
	font-family: 'estdad', sans-serif;
}
.swal2-html-container .swiper-container:not(.swiper-container-initialized)>.swiper-wrapper {
    overflow: visible;
}
.sab-required-star {
    color: #d35739;
    margin-right: 2px;
}
.sab-error-message {
    font-size: 14px;
    color: #d35739;
}
.pish {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: stretch;
    margin: 10px 0;
}
.pish p {
    background: rgb(129 129 129 / 5%);
    padding: 10px;
    margin: 2px;
    text-align: right;
    border-radius: 8px;
    font-size: 14px;
}
.sab-field {
    min-width: 0;
    width: calc(<?php echo esc_attr($field['width']); ?>% - 2px);
    margin-bottom: 30px;
    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: 0px 15px;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    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: #28666e;
    background: #fff;
    box-shadow: 0 0 8px rgba(40, 102, 110, 0.2);
    outline: none;
	color: #28666e;
}
.sab-file-upload-container {
    display: flex;
    gap: 15px;
}
#sab-appointment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #28666e;
    font-family: 'estdad', sans-serif;
}

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

.sab-upload-btn {
    height: 50px;
    padding: 0 20px;
    background: rgb(0 0 0 / 39%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}
button.sab-upload-btn {
    background: rgb(0 0 0 / 69%);
}
button.sab-upload-btn {
    background: rgb(0 0 0 / 39%);
}
.sab-upload-btn:hover {
     background: rgb(0 0 0 / 69%);
}

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

.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: 5px;
    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: 8px;
    border: 1px solid #d0d7d9;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    font-family: 'estdad', sans-serif;
    justify-content: center;
}
.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: #eef5f6;
    border-color: #28666e;
    box-shadow: 0 3px 6px rgba(40, 102, 110, 0.1);
}

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

.sab-select-button:disabled {
    background: #f1f1f1 !important;
    color: #bdbdbd !important;
    cursor: not-allowed !important;
    border: 1px solid #bdbdbd !important;
}
.swal2-cancel,
.plus-button, 
.swal2-confirm, 
.sab-nav-button, 
.sab-select-button {
	margin: 5px;
    height: 50px;
    padding: 0 30px !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;	
}
.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: #28666e;
    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: 8px;
}

.sab-date-radio-group::-webkit-scrollbar-thumb,
.sab-time-radio-group::-webkit-scrollbar-thumb {
    background: #28666e;
    border-radius: 8px;
}

.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;
}
.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: #2a666d !important;
}
.calendar-day {
    padding: 5px;
    border: 1px solid #fff;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 25px;
    border-radius: 8px;
}
.day-header {
    padding: 10px;
    text-align: center;
    background: rgb(129 129 129 / 20%);
    margin-top: 20px;
    border-radius: 8px;
    font-size: 13px;
    border-bottom: 3px solid #c1c1c1;
}

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

.calendar-day.empty {
    border: none;
}
.calendar-day.available {
    background-color: #d6f1ea;
}
.calendar-day.unavailable {
    background-color: #f8f8f8;
    cursor: not-allowed;
}
.calendar-day.selected {
    background-color: #2a666d;
    color: white;
}
.swiper-button-next, .swiper-button-prev {
    color: #007bff;
}

.sab-nav-button {
	height: 50px;
	padding: 0 30px;
	background: #28666e;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-family: 'estdad', sans-serif;
	cursor: pointer;
	transition: background 0.3s ease;
	margin-right: 10px;
}
.sab-nav-button:hover {
	background: #0a8291;
}
.sab-nav-button.sab-prev-step {
	background: #6c757d;
}
.sab-nav-button.sab-prev-step:hover {
	background: #5a6268;
}
.sab-step-indicator {
	display: inline-block;
	margin-left: 15px;
	font-size: 14px;
	color: #666;
	font-family: 'estdad', sans-serif;
}
.submit-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    flex-wrap: wrap;
}
.sab-step-page {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}

/* ============================================
   TIME SLOTS
============================================ */
.sab-time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 12px;
    padding: 16px 4px;
    max-height: 350px;
    overflow-y: auto;
    direction: rtl;
}

.sab-time-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'estdad', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    user-select: none;
    min-height: 48px; 
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.sab-time-slot:hover:not(.sab-time-booked):not(.sab-time-passed) {
    background: #f0fdfa;
    border-color: #28666e;
    color: #28666e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 102, 110, 0.1);
}

.sab-time-slot.sab-time-selected {
    background: #28666e;
    border-color: #28666e;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 102, 110, 0.25);
    transform: scale(1.02);
}

.sab-time-slot.sab-time-selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sab-time-booked {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.sab-time-booked .sab-time-text {
    text-decoration: line-through;
    text-decoration-color: #cbd5e1;
}

.sab-time-booked::after {
    content: '✕';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 10px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sab-time-passed {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.sab-time-passed .sab-time-text {
    text-decoration: line-through;
    text-decoration-color: #cbd5e1;
}

.sab-time-slots-container::-webkit-scrollbar {
    width: 6px;
}
.sab-time-slots-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}
.sab-time-slots-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
    transition: background 0.3s ease;
}
.sab-time-slots-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.sab-file-name {
    max-width: 100px;
}
.sab-field-price-hidden {
    display: none !important;
}
/* ============================================
   Progress
   ============================================ */	
.sab-progress-container {
    margin-bottom: 30px;
    padding: 0 15px;
}
.sab-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}
.sab-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28666e, #31a4b3);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}
.sab-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 5px;
}
.sab-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    position: relative;
}
.sab-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.sab-progress-step.completed .sab-step-number {
    background-color: #14c7b6;
    color: #fff;
}
.sab-progress-step.active .sab-step-number {
	background-color: #28666e;
    color: #fff;
    box-shadow: 0 0 0 4px rgb(40 102 110 / 32%);
}
.sab-step-label {
    font-size: 11px;
    color: #6c757d;
    margin-top: 6px;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.sab-progress-step.completed .sab-step-label,
.sab-progress-step.active .sab-step-label {
    color: #14c7b6;
    font-weight: 500;
}
.sab-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
    transition: background-color 0.5s ease;
}
.sab-progress-step.completed:not(:last-child)::after {
    background-color: #4CAF50;
}
.rtl .sab-progress-step:not(:last-child)::after {
    left: auto;
    right: 50%;
}

/* ============================================
   Appointment Detailst
   ============================================ */	
.sab-appointment-details {
    margin: 20px auto;
    padding: 20px;
    font-family: estdad;
}
.sab-details-actions {
    margin-top: 20px;
    text-align: left;
}
.sab-appointment-details h3 {
    text-align: right;
    color: #28666e;
    margin-bottom: 20px;
    border-bottom: 2px solid #28666e;
    line-height: 1.8;
}
.sab-details-table {
    width: 100%;
    border-collapse: collapse;
}
.sab-details-table th,
.sab-details-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: right;
}
.sab-details-table th {
    width: 40%;
    color: #555;
    font-weight: 600;
}
.sab-details-table td {
    width: 60%;
}
.sab-payment-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #28666e;
}
.sab-payment-details h4 {
    color: #28666e;
    margin-bottom: 10px;
}
.sab-appointment-details-error {
    text-align: center;
    padding: 30px;
    background: #fff3f3;
    border-radius: 8px;
    color: #d32f2f;
}

/* ============================================
   Responsive
   ============================================ */	
@media screen and (min-width: 1024px) {
	.sab-date-radio-group, .sab-time-radio-group {
		grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
	}
	.swal2-popup {
		min-width: 60em;
		padding: 20px;
	}	
    .sab-time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
    }
    .sab-time-slot {
        font-size: 16px;
        padding: 14px 10px;
    }
}


@media screen and (min-width: 481px) and (max-width: 1023px) {
    .sab-field {
        flex: 1 1 48%;
    }
    .sab-time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }
    .sab-date-radio-group,
    .sab-time-radio-group {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .sab-step-label {
        font-size: 10px;
    }
    .sab-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .sab-progress-step:not(:last-child)::after {
        top: 14px;
    }	
	.sab-file-name {
		max-width: unset;
	}
	.sab-file-upload-container {
		flex-wrap: wrap;
	}	
	.sab-nav-button {
		width: auto;
		min-width: 100px;
	}	
    .sab-time-slots-container {
		grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        max-height: 300px;
        padding: 5px 10px;
    }
    .sab-time-slot {
        font-size: 14px;
        padding: 10px 6px;
        min-height: 44px;
        border-radius: 8px;
    }
    .sab-time-slot.sab-time-selected::after,
    .sab-time-booked::after {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: 3px;
        right: 4px;
    }
    #sab-appointment-form {
        padding: 15px;
    }
	.pish {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		justify-items: stretch;
		margin: 20px 0;
	}
    .sab-field {
        flex: 1 1 100%;
    }

    .sab-custom-upload {
        align-items: center;
    }

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

	.sab-date-radio-group, .sab-time-radio-group {
		grid-template-columns: repeat(3, 1fr);
		padding: 10px;
	}

    .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;
   }
}