/* Модальное окно контактной формы */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 30px 15px;
}

.contact-modal-overlay.active {
    display: flex;
}

.contact-modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    animation: modalFadeIn 0.3s ease;
}

.contact-modal-content {
    position: relative;
    background: #fdf4f4;
    border-radius: 10px;
    padding: 50px 40px 40px 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    line-height: 1;
    color: #565872;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.contact-modal-close:hover {
    color: #da292a;
}

.contact-modal-content .sec-title {
    margin-bottom: 40px;
}

.contact-modal-content .sec-title h2 {
    font-size: 36px;
    line-height: 42px;
}

/* Стили для формы в модальном окне */
.contact-modal-content .default-form {
    width: 100%;
}

.contact-modal-content .default-form .row {
    margin-left: -10px;
    margin-right: -10px;
}

.contact-modal-content .default-form .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.contact-modal-content .default-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.contact-modal-content .default-form .form-group input[type='text'],
.contact-modal-content .default-form .form-group input[type='email'],
.contact-modal-content .default-form .form-group input[type='tel'],
.contact-modal-content .default-form .form-group textarea {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
    background: #fff;
    border: 2px solid #ededed;
    border-radius: 5px;
    padding: 10px 50px 10px 20px;
    font-size: 16px;
    color: #565872;
    font-family: 'Rubik', sans-serif;
    transition: all 500ms ease;
}

.contact-modal-content .default-form .form-group textarea {
    height: 190px;
    resize: none;
    padding-top: 15px;
}

.contact-modal-content .default-form .form-group input:focus,
.contact-modal-content .default-form .form-group textarea:focus {
    border-color: #da292a;
}

.contact-modal-content .default-form .form-group i {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #244a6a;
    z-index: 1;
    font-size: 16px;
}

.contact-modal-content .default-form .form-group .field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    padding-left: 5px;
}

.contact-modal-content .default-form .message-btn {
    margin-top: 30px;
    padding-top: 0;
    margin-bottom: 0;
}

.contact-modal-content .default-form .message-btn .theme-btn {
    padding: 15px 45px;
    font-size: 16px;
}

/* Уведомление об успешной отправке формы — справа внизу */
.success-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999999;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.success-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #28a745;
    color: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    font-size: 15px;
    line-height: 1.4;
    max-width: 400px;
    min-width: 300px;
}

.success-notification-content i {
    font-size: 26px;
    flex-shrink: 0;
}

.success-notification-content span {
    flex: 1;
}

.success-notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.success-notification-close:hover {
    opacity: 1;
}

/* Адаптив для мобильных */
@media only screen and (max-width: 767px) {
    .success-notification {
        bottom: 15px;
        right: 10px;
        left: 10px;
    }
    
    .success-notification-content {
        max-width: 100%;
        min-width: auto;
        font-size: 14px;
        padding: 14px 16px;
    }
}