body {
    background: #e2e7ed !important;
}

body .label {
    font-size: 13px;
}

body .busy_time_info {
    margin-left: 10px;
    background: #fb4862;
}

body .available_time_info {
    background: #2663eb;
}

body .go_back_button {
    font-weight: 500;
    font-size: 16px;
}

body .busy_time_info_google {
    background: #fb4862;
}

body .busy_time {
    background: #fb4862 !important;
    color: #fff !important;
    pointer-events: none;
}

body .has-error .form-control:focus {
    border-color: #ff0300 !important;
    box-shadow: none !important;
}

body .busy_google_time {
    background: #fb4862 !important;
    color: #fff !important;
    font-weight: 300 !important;
    pointer-events: none;
}

.appointment-header {
    display: flex;
    justify-content: center;
}

.appointment_logo img {
    max-width: 150px;
    height: auto;
    float: left;
}

.logo.img-responsive.navbar-brand.logo {
    margin-bottom: 0;
    margin-left: -20px;
}

.logo.img-responsive.navbar-brand.logo {
    margin-bottom: 0;
    margin-left: -20px;
}

.datetimepicker {
    background: #fff !important;
}

.mtop6 {
    margin-top: 6px !important;
}

.mtop35 {
    margin-top: 35px;
}

.appointment_type_holder .appointment_color_type {
    height: 30px;
    width: 30px;
    margin-top: 3px;
}

.appointment_type_holder .dropdown-menu li a:hover,
.appointment_type_holder .dropdown-menu li a {
    border: none !important;
    border-radius: 0px !important;
    padding: 8px 20px;
}

.appointment_type_holder .bootstrap-select {
    float: left;
}

.main_wrapper {
    padding: 25px;
    box-shadow: 0px 0px 0px 1px rgb(1 1 1 / 8%);
    border-radius: 4px;
    background: #fff;
}

.hwp {
    border-radius: 4px;
    padding: 4px 10px;
    color: #fff;
}

body input {
    height: 38px !important;
}

body textarea,
body input {
    border: 1px solid #ececec !important;
}

.hours_wrapper {
    display: flex;
    margin-top: 20px !important;
}

@media only screen and (max-device-width: 360px) and (-webkit-device-pixel-ratio: 3) {
    .xdsoft_datetimepicker {
        left: 2px !important;
    }

    .btn {
        width: 100%;
    }
}


/* Blocked dates in calendar */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled {
    background: #ffeeee !important; /* Light red background */
    color: #ff0000 !important; /* Red text */
    opacity: 0.6;
}

/* Current date when it's blocked */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled.xdsoft_current {
    background: #ff0000 !important;
    color: #ffffff !important;
    box-shadow: #ff0000 0 1px 3px 0 inset;
}

/* Hover effect on blocked dates */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover {
    background: #ffcccc !important;
    color: #ff0000 !important;
}

/* Busy times in time picker */
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.busy_time {
    background: #ffeeee !important;
    color: #ff0000 !important;
}

.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.busy_time:hover {
    background: #ffcccc !important;
    color: #ff0000 !important;
}

/* Improved header styling */
.appointments-external-form .main_wrapper {
    @apply tw-bg-white tw-rounded-xl tw-shadow-md;
}

/* Custom select styling */
.selectpicker {
    @apply tw-appearance-none tw-bg-white tw-cursor-pointer;
    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/path%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* Disabled select styling */
.selectpicker:disabled {
    @apply tw-bg-neutral-50 tw-cursor-not-allowed tw-opacity-75;
}

/* Remove default select arrow in IE/Edge */
.selectpicker::-ms-expand {
    display: none;
}

/* Base styles */
.appointments-external-form {
    @apply tw-bg-neutral-50;
}

.main_wrapper {
    @apply tw-bg-white tw-rounded-xl tw-shadow-md tw-p-8 tw-max-w-3xl tw-mx-auto;
}

/* Header styling */
.appointment-header {
    @apply tw-mb-8;
}

.appointment-header h4 {
    @apply tw-text-3xl tw-font-bold tw-text-neutral-900 tw-tracking-tight;
}

.appointment-header p {
    @apply tw-text-lg tw-text-neutral-600 tw-mt-2;
    @apply tw-text-lg tw-text-neutral-600 tw-mt-2;
}

.appointment-header hr {
    @apply tw-border-t tw-border-neutral-200 tw-my-6 tw-max-w-md tw-mx-auto;
}

/* Form sections */
.form-section {
    @apply tw-mb-8 tw-p-6 tw-bg-neutral-50 tw-rounded-lg tw-border tw-border-neutral-200;
}

.form-section-title {
    @apply tw-text-lg tw-font-semibold tw-text-neutral-800 tw-mb-4;
}

/* Form controls */
.form-group {
    @apply tw-relative tw-mb-6;
}

.form-group label {
    @apply tw-block tw-text-sm tw-font-medium tw-text-neutral-700 tw-mb-2;
}

.form-group label.error,
.invalid-feedback {
    @apply tw-absolute tw-text-sm tw-text-red-600 tw-mt-1 tw-left-0 tw-bottom-0 tw-translate-y-full;
}

/* Add more space below inputs to accommodate error messages */
.form-group {
    @apply tw-mb-6;
}

/* Specific styling for select validation */
.bootstrap-select.form-control + .error {
    @apply tw-mt-1 tw-block tw-static tw-text-sm tw-text-red-600;
}

/* Error state for inputs */
.form-control.error,
.form-control.is-invalid {
    @apply tw-border-red-500 focus:tw-border-red-500 focus:tw-ring-red-500;
}

/* Error state for select */
.bootstrap-select.is-invalid .dropdown-toggle {
    @apply tw-border-red-500;
}

.form-control {
    @apply tw-w-full tw-rounded-lg tw-border-neutral-300 tw-shadow-sm;
    @apply focus:tw-ring-2 focus:tw-ring-primary-500 focus:tw-border-primary-500;
    @apply hover:tw-border-neutral-400;
    transition: all 0.2s ease;
}

/* Working hours section */
#provider_schedule {
    @apply tw-mt-6 tw-p-6 tw-bg-neutral-50 tw-rounded-lg tw-border tw-border-neutral-200;
}

.working-hours-title {
    @apply tw-text-sm tw-font-medium tw-text-neutral-700 tw-mb-4;
}

.working-hours-list {
    @apply tw-space-y-3;
}

.working-hours-item {
    @apply tw-flex tw-justify-between tw-items-center tw-text-sm tw-text-neutral-600;
}

/* Submit button */
.btn-primary {
    @apply tw-bg-primary-600 tw-text-white tw-font-medium tw-px-6 tw-py-3 tw-rounded-lg tw-shadow-sm;
    @apply hover:tw-bg-primary-700 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-offset-2 focus:tw-ring-primary-500;
    @apply disabled:tw-opacity-50 disabled:tw-cursor-not-allowed;
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .main_wrapper {
        @apply tw-p-4;
    }

    .form-section {
        @apply tw-p-4;
    }
}

/* Loading states */
.form-loading {
    @apply tw-opacity-50 tw-pointer-events-none;
}

/* Success states */
.is-valid {
    @apply tw-border-green-500 focus:tw-border-green-500 focus:tw-ring-green-500;
}

/* Date and Location styling */
.input-group.date {
    @apply tw-flex tw-items-center tw-w-full tw-relative;
}

.input-group.date input {
    @apply tw-rounded-lg tw-border-neutral-300 tw-pr-10;
}

.input-group.date .input-group-addon {
    @apply tw-absolute tw-right-3 tw-top-1/2 tw-transform -tw-translate-y-1/2 tw-pointer-events-none tw-text-neutral-500;
}

.calendar-icon {
    @apply tw-text-lg;
}

/* Datepicker styling */
.bootstrap-datetimepicker-widget {
    @apply tw-bg-white tw-shadow-lg tw-rounded-lg tw-border tw-border-neutral-200 !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    @apply tw-bg-primary-600 tw-text-white !important;
}

.bootstrap-datetimepicker-widget table td {
    @apply tw-text-center tw-p-2 tw-cursor-pointer hover:tw-bg-neutral-100 tw-rounded;
}

/* Terms and conditions styling */
.checkbox {
    @apply tw-relative;
}

.checkbox input[type="checkbox"] {
    @apply tw-h-4 tw-w-4 tw-rounded tw-border-neutral-300 tw-text-primary-600;
    @apply focus:tw-ring-primary-500;
}

.checkbox label {
    @apply tw-ml-2 tw-block tw-text-sm tw-font-medium tw-text-neutral-700;
}

/* Error state */
.has-error .checkbox input[type="checkbox"] {
    @apply tw-border-red-500;
}

.has-error .checkbox label {
    @apply tw-text-red-600;
}

/* Disabled submit button */
.btn-primary:disabled {
    @apply tw-opacity-50 tw-cursor-not-allowed;
}
