* {
    user-select: none;
    --webkit-user-select: none;
}

button.disabled {
    cursor: disabled;
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}

.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8L3.4 4.93c.39.4.68.7.8 1.1.19.7-.5.8-1.1.8L2.3 6.73z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}


.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.category_element_home_page .icon-wrapper {
    width: 30px;
    height: 30px;
}

.category_element_home_page .icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media(max-width:767px) {
    .header-offcanvas {
        padding-top: 20px;
    }
}

a.apply-announcement {
    color: white !important;
}

a.apply-announcement:hover {
    color: #28a745 !important;
}

.edit-profile-top input {
    width: 100%;
}


/* Dropzone-da şəkillərin önizləməsi üçün stil */
.dz-preview {
    position: relative;
    /* Silmə düyməsini mövqeləndirmək üçün vacibdir */
}

/* Xüsusi silmə düyməsinin stili */
.dz-custom-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    /* Hündürlüyə uyğunlaşdırmaq üçün */
    text-align: center;
    cursor: pointer;
    opacity: 0;
    /* Normalda gizli olsun */
    transition: opacity 0.2s ease-in-out;
    z-index: 1000000000;
    /* Digər elementlərin üzərində görünsün */
}

/* Siçan şəklin üzərinə gəldikdə silmə düyməsini göstər */
.dz-preview:hover .dz-custom-remove {
    opacity: 1;
}

/* Standart "Remove file" linkini tamamilə gizlədirik */
.dz-preview .dz-remove {
    display: none !important;
}

.dz-preview .dz-image img,
.dz-preview .dz-details {
    height: 100% !important;
}

.dz-preview .dz-details .dz-size,
.dz-preview .dz-details .dz-filename {
    display: none;
}


.about-me .service-provider-sub {
    margin: 5px 0;
    border: 1px solid #737373;
    padding: 3px 5px;
    border-radius: 12px;
    font-size: 13px;
}


/* --- Custom Fancybox skin --- */
/* Add to your main CSS file */
.with-custom-gallery .fancybox__slide {
    padding: 0;
    background: rgba(0, 0, 0, .85);
}

.with-custom-gallery .custom-inner {
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: #fff;
}

.custom-header {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, .5);
}

.custom-image {
    flex: 1;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.custom-footer {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, .5);
}

.delete-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.delete-btn img {
    width: 20px;
    height: 20px;
}

.with-custom-gallery .fancybox__slide {
    padding: 0;
    background: rgba(0, 0, 0, .85);
}

.custom-inner {
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: #fff;
}

.custom-header,
.custom-footer {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, .5);
}

.custom-image {
    flex: 1;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.delete-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.delete-btn img {
    width: 20px;
    height: 20px;
}

.doc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Loader */
html.no-scroll {
    overflow: hidden;
}

/* 2. Loader container */
#global-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .4s ease, visibility .4s ease;
}

/* 3. Simple spinning ring */
.spinner {
    width: 98px;
    height: 98px;
    border: 15px solid #e5e5e5;
    border-top-color: #47B649;

    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.modal.fade.show {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: center !important;
}

.popular-card {
    height: max-content;
}

/* Loader */

.dropzone img,
.dropzone svg {
    width: 100px;
    height: 100px;
    margin: 0 10px;
}

.job-details-grid{
    justify-content: flex-start;
}

.job-card{
    min-height: 315px;
}
