
.popup-callback-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;    
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 15px; 
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
}

.popup-callback-content {
    position: relative;
    width: 100%; 
    max-width: 340px; 
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 16px;
    padding: 20px;
    
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease-in-out;
}


.popup-callback-button {
    position: fixed;
    right: 15px; 
    bottom: 15px; 
    width: 50px; 
    height: 50px; 
    background-color: #FFFFFF;
    border-radius: 50%; 
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3003;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.popup-callback-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: #0000B4;
}

.popup-callback-button:hover .callback-button-icon img {
    filter: brightness(0) invert(1);
}

.popup-callback-button:active {
    transform: scale(0.98);
}

.callback-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.callback-button-icon img {
    width: 20px; 
    height: 20px; 
}

.popup-callback-photo {
    display: block; 
    width: 313px;
    height: 180px;
}
.popup-callback-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-callback-overlay.popup-visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.popup-callback-overlay.popup-visible .popup-callback-content {
    transform: scale(1) translateY(0); 
    opacity: 1;
}


.popup-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 24px; 
}

.popup-close-button {
    position: absolute;
    top: 15px; 
    right: 15px; 
    cursor: pointer;
    z-index: 3004;
    width: 24px; 
    height: 24px; 
    padding: 0; 
    background: none;
    border: none;
}

.popup-close-button img {
    display: block;
    width: 100%;
    height: 100%;
}


.popup-callback-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 
    width: 100%;
}

.popup-callback-form-container {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.popup-callback-header {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-self: stretch;
    text-align: center; 
}

.popup-title {
    font-size: 18px; 
    font-weight: 500;
    color: #00000A;
    line-height: 1.4;
    margin: 0;
}

.popup-subtitle {
    font-size: 14px; 
    font-weight: 400;
    color: #848484;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin: 0;
}


.popup-callback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
    width: 100%;
    padding-top: 10px; 
}

.popup-callback-form .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px; 
    align-self: stretch;
}

.popup-callback-form label {
    display: block;
    font-size: 14px; 
    font-weight: 400;
    color: #00000A;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    text-align: left; 
    align-self: stretch;
}

.popup-callback-form .input-field {
    position: relative;
    border: 1px solid #ECEAD5;
    border-radius: 4px;
    padding: 12px 14px; 
    display: flex;
    align-items: center;
    align-self: stretch;
}

.popup-callback-form input {
    width: 100%;
    padding: 0;
    font-size: 15px; 
    color: #00000A;
    border: none;
    border-radius: 0;
    background-color: transparent;
    line-height: 1.5;
    letter-spacing: -0.01em;
    outline: none;
}

.popup-callback-form input:focus {
    border-color: transparent;
}

.popup-callback-form input::placeholder {
    color: #848484;
    font-size: 15px; 
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.popup-submit-button {
    width: 100%;
    padding: 12px 10px;
    background-color: #0000B4;
    color: #FFFFFF;
    font-size: 14px; 
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.popup-submit-button:hover {
   opacity: 0.8;
}

.popup-submit-button:disabled {
    opacity: 0.5;
    cursor: default;
}


@media (min-width: 744px) {
    .popup-callback-overlay {
        padding: 20px; 
        
    }
    .popup-callback-content {
        max-width: 400px; 
    }
    .popup-callback-button {
        right: 20px;
        bottom: 20px;
        width: 55px;
        height: 55px;
    }
    .callback-button-icon img {
        width: 22px;
        height: 22px;
    }
    .popup-header {
        height: 32px;
    }
    .popup-close-button {
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
    }
    .popup-callback-main {
        gap: 25px;
    }
    .popup-title {
        font-size: 20px;
        line-height: 1.5;
    }
    .popup-subtitle {
        font-size: 16px;
    }
    .popup-callback-form label {
        font-size: 16px;
    }
    .popup-callback-form input {
        font-size: 16px;
    }
    .popup-callback-form input::placeholder {
        font-size: 16px;
    }
    .popup-callback-form .input-field {
        padding: 14px 16px;
    }
}


@media (min-width: 1440px) {
    .popup-callback-overlay {
        align-items: flex-end; 
        justify-content: flex-end; 
        padding: 40px;
    }
    .popup-callback-content {
        width: 353px; 
        max-width: none;
        align-items: flex-end; 
        padding: 20px;
        
        transform: translateX(100%) translateY(20px);
    }
    .popup-callback-overlay.popup-visible .popup-callback-content {
        transform: translateX(0) translateY(0);
    }

    .popup-callback-button {
        right: 40px;
        bottom: 40px;
        width: 60px;
        height: 60px;
    }
    .callback-button-icon img {
        width: 23px;
        height: 23px;
    }

    .popup-callback-main {
       align-items: center; 
    }

    .popup-callback-header {
        align-self: stretch;
        text-align: left; 
    }
    
    
    .popup-callback-form {
        padding-top: 14px;
    }
    .popup-callback-form .form-group {
        gap: 8px;
    }
    
    
    
    
    
}
