.callback-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / .6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease
}

.callback-modal.modal-show {
    opacity: 1
}

.callback-modal-content {
    margin: auto;
    height: fit-content;
    transition: transform 0.3s ease;
    width: 90%;
    max-width: 40rem;
    max-height: 50rem;
    overflow: hidden;
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border)
}

.callback-modal.modal-show .callback-modal-content {
    transform: translateY(0)
}

.callback-modal-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid #dee2e614;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.callback-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600
}

.callback-close {
    color: #fff;
    float: right;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    opacity: .8;
    transition: opacity 0.3s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgb(255 255 255 / .1)
}

.callback-close:hover,.callback-close:focus {
    opacity: 1;
    background: rgb(255 255 255 / .2)
}

.callback-modal-body {
    padding: 30px
}

.callback-description {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5
}

.callback-form-group {
    margin-bottom: 20px
}

.callback-form-group label {
    display: block;
    margin-bottom: .4rem;
    font-weight: 500;
    color: #fff;
    font-size: 1rem
}

.callback-form-group input,.callback-form-group textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid #00000014;
    border-radius: 6px;
    font-size: .8rem;
    transition: border-color 0.3s ease;
    color: #fff;
    background: rgb(0 0 0 / 20%);
    backdrop-filter: blur(10px)
}

.callback-form-group input::placeholder,.callback-form-group textarea::placeholder {
    color: #fff
}

.callback-form-group input:focus,.callback-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgb(0 123 255 / .1)
}

.callback-form-group input.error,.callback-form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgb(220 53 69 / .1)
}

.callback-form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit
}

.callback-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg,#28a745 0%,#20c997 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 10px
}

.callback-submit-btn:hover {
    background: linear-gradient(135deg,#218838 0%,#1ea080 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(40 167 69 / .3)
}

.callback-submit-btn:active {
    transform: translateY(0)
}

.callback-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

@keyframes shake {
    0%,100% {
        transform: translateX(0)
    }

    10%,30%,50%,70%,90% {
        transform: translateX(-5px)
    }

    20%,40%,60%,80% {
        transform: translateX(5px)
    }
}

.callback-form-group input.shake,.callback-form-group textarea.shake {
    animation: shake 0.5s ease-in-out
}

@media (max-width: 768px) {
    .callback-modal-content {
        margin:10% auto;
        width: 95%;
        max-width: none
    }

    .callback-modal-header {
        padding: 20px 20px 15px
    }

    .callback-modal-title {
        font-size: 20px
    }

    .callback-modal-body {
        padding: 20px
    }

    .callback-description {
        font-size: 14px;
        margin-bottom: 20px
    }

    .callback-form-group input,.callback-form-group textarea {
        padding: 10px 14px;
        font-size: 16px
    }

    .callback-submit-btn {
        padding: 12px 20px;
        font-size: 15px
    }
}

@media (max-width: 480px) {
    .callback-modal-content {
        margin:5% auto;
        height: 93dvh;
        overflow-y: scroll;
    }

    .callback-modal-header {
        padding: 15px 15px 10px
    }

    .callback-modal-body {
        padding: 15px;
        overflow-y: scroll;
    }
}

.callback-submit-btn.loading {
    background: #6c757d;
    position: relative;
    color: #fff0
}

.callback-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: #fff0;
    animation: spin 1s ease-in-out infinite
}

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

.callback-social-divider {
    text-align: center;
    margin: 25px 0 20px;
    position: relative
}

.callback-social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    z-index: -1
}

.callback-social-divider span {
    background: rgb(222 226 230 / 20%);
    padding: .2rem .7rem;
    color: #fff;
    font-size: .8rem;
    position: relative;
    z-index: 3;
    border-radius: 1rem;
    position: relative
}

.callback-social-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px
}

.callback-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .7rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
    text-align: center
}

.callback-social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0
}

.callback-telegram-btn {
    background: linear-gradient(135deg,#0088cc 0%,#006bb3 100%)
}

.callback-telegram-btn:hover {
    background: linear-gradient(135deg,#006bb3 0%,#005a9a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(0 136 204 / .3);
    color: #fff
}

.callback-whatsapp-btn {
    background: linear-gradient(135deg,#25d366 0%,#20b358 100%)
}

.callback-whatsapp-btn:hover {
    background: linear-gradient(135deg,#20b358 0%,#1da851 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(37 211 102 / .3);
    color: #fff
}

.callback-social-btn:active {
    transform: translateY(0)
}

@media (max-width: 480px) {
    .callback-social-buttons {
        flex-direction:column;
        gap: 10px
    }

    .callback-social-btn {
        font-size: 13px;
        padding: 10px 14px
    }

    .callback-social-divider {
        margin: 20px 0 15px
    }
}
