.modal-news-subscription-overlay-asd2 {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-news-subscription-form-asd2 {
    position: relative;
    background-color: #fff;
    width: 500px;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.form-block-asd2 {
    font-family: Arial, sans-serif;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close-btn-asd2 {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    color: #666;
}

.modal-close-btn-asd2:hover {
    background: #e9ecef;
    color: #333;
    transform: scale(1.1);
}

.form-block-asd2 {
    padding: 40px;
    font-size: 14px;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.header-block-asd2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.title-asd2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.description-asd2 {
    margin: 10px 0 20px 0;
    color: #666;
    line-height: 1.5;
    text-align: center;
}

.form-scroll-container-asd2 {
    flex: 1;
    overflow-y: auto;
    margin-right: -10px;
    padding-right: 10px;
}

.form-scroll-container-asd2::-webkit-scrollbar {
    width: 6px;
}

.form-scroll-container-asd2::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.form-scroll-container-asd2::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.form-scroll-container-asd2::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.form-grid-asd2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.input-block-asd2 {
    width: 100%;
}

.field-label-asd2 {
    display: block;
    width: 100%;
    color: #949494;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

.label-text {
    display: block;
    margin-bottom: 6px;
}

/*.required-field .label-text {*/
/*    color: #191970;*/
/*}*/

.required-star {
    color: #d63031;
    font-weight: bold;
    margin-left: 2px;
}

.input-text-asd2 {
    line-height: normal;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    background: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #1a1a1a !important;
    border: 1px solid #999;
    border-radius: 8px;
}

.input-text-asd2::placeholder {
    color: #999;
    opacity: 1;
}

.input-text-asd2:focus {
    outline: none;
    border-color: #191970;
    box-shadow: 0 0 0 2px rgba(25, 25, 112, 0.1);
}

.input-text-asd2:hover {
    border-color: #949494;
}

.field-error .input-text-asd2 {
    border-color: #d63031;
    box-shadow: 0 0 0 2px rgba(214, 48, 49, 0.1);
}

.agreement-block-asd2 {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.checkbox-block-asd2 {
    min-width: 36px;
    min-height: 36px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5px;
}

#input-agreement {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

#input-agreement:checked {
    background: #191970;
    border-color: #191970;
}

#input-agreement:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#input-agreement:hover {
    border-color: #bbb;
}

.agreement-text-asd2 {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    flex: 1;
}

.agreement-link {
    color: #191970;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

.form-footer-asd2 {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.button-asd2 {
    width: 100%;
    margin-bottom: 10px;
}

.submit-btn-asd2 {
    min-height: 48px;
    width: 100%;
    border: 1px solid #191970;
    background: #191970;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn-asd2:hover:not(:disabled) {
    background: #000080;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 25, 112, 0.3);
}

.submit-btn-asd2:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn-asd2:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-message-asd2 {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.form-message-asd2.error {
    background: #ffe6e6;
    color: #d63031;
    border: 1px solid #ffcccc;
}

.form-message-asd2.success {
    background: #e6f7e6;
    color: #27ae60;
    border: 1px solid #ccffcc;
}

.success-block-asd2 {
    text-align: center;
    padding: 20px 0;
}

.success-icon-asd2 {
    width: 60px;
    height: 60px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: successScale 0.5s ease-out;
}

@keyframes successScale {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title-asd2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.success-description-asd2 {
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

.success-btn-asd2 {
    min-height: 44px;
    padding: 0 30px;
    border: 1px solid #191970;
    background: #191970;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.success-btn-asd2:hover {
    background: #000080;
    transform: translateY(-1px);
}

.form-scroll-container-asd2 {
    flex: 1;
    overflow-y: auto;
    margin-right: -5px;
    padding-right: 5px;
}

.form-scroll-container-asd2::-webkit-scrollbar {
    width: 8px;
}

.form-scroll-container-asd2::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.form-scroll-container-asd2::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    border: 1px solid #f5f5f5;
}

.form-scroll-container-asd2::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/*Firefox */
.form-scroll-container-asd2 {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f5f5f5;
}
*/


@media (max-width: 1023px) {
    .form-block-asd2 {
        padding: 30px;
    }

    .modal-news-subscription-form-asd2 {
        width: 90%;
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .modal-news-subscription-overlay-asd2 {
        padding: 10px;
        align-items: flex-start;
    }

    .form-block-asd2 {
        padding: 25px 20px;
    }

    .title-asd2 {
        font-size: 20px;
    }

    .agreement-block-asd2 {
        flex-direction: row;
        align-items: flex-start;
    }

    .checkbox-block-asd2 {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .success-title-asd2 {
        font-size: 20px;
    }

    .form-scroll-container-asd2 {
        margin-right: -5px;
        padding-right: 5px;
    }
}

@media (max-width: 480px) {
    .form-block-asd2 {
        padding: 20px 15px;
    }

    .agreement-block-asd2 {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-block-asd2 {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .modal-close-btn-asd2 {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}