.site-footer {
    background-color: #171F24;
    color: #F5F5F0;
    padding: 40px 0;
    font-family: sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 100%;
}

@media (max-width: 425px){
    .footer-container {
        gap: 30px;
    }
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-title {
    color: #F5F5F0;
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 10px;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
}

.association-number {
    margin-top: 15px;
    opacity: 0.7;
}

/* Форма рассылки */
/* .wpcf7-form {
    justify-content: space-between;
}

.wpcf7-form p {
    display: flex;
    align-items: flex-start;
} */


.wpcf7-form p{
    display: flex;
}

@media (max-width: 425px){
    .wpcf7-form p{
        max-width: 280px !important;
        box-sizing: border-box !important; /* Учитывает padding в общей ширине */
    }
}

.wpcf7-form-control-wrap {
    display: flex;
    flex-wrap: wrap;
    margin-right: 3px;
    width: 60%;
}

.wpcf7-form input {
    padding: 10px;
    border: none;
    max-width: 100%;
    color: #1a1a1a;
}

.wpcf7-form .wpcf7-submit{
    padding: 5px !important;
    width: fit-content;
    height: 40px;
    background-color: #D2232A !important;
    color: #F5F5F0 !important; /* Ваш акцентный цвет */
    border: none;
    cursor: pointer;
}

.newsletter-form input {
    color: #1a1a1a;
}

.newsletter-form .submit-btn {
    padding: 10px 20px;
    background-color: #D2232A; /* Ваш акцентный цвет */
    border: none;
    cursor: pointer;
    border-radius: 4px;
    color: #F5F5F0;
}

/* Адаптивность (наш брейкпоинт) */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
}

/* Оверлей (фон) */
.sf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Мягкое затемнение */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* Состояние когда окно открыто */
.sf-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Само окно */
.sf-modal-content {
    background: #F5F5F0;
    padding: 50px 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    border: 1px solid #eee;
}

.sf-modal-overlay.is-active .sf-modal-content {
    transform: translateY(0);
}

/* Кнопка закрытия (крестик) */
.sf-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

/* Заголовок и текст */
.sf-modal-title {
    font-family: "Garamond", "Baskerville", serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.sf-modal-text {
    font-family: "Garamond", serif;
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Кнопка внутри */
.sf-modal-btn {
    font-family: "Garamond", serif;
    background: #800000; /* Твой брендовый красный из футера */
    color: #F5F5F0;
    border: none;
    padding: 10px 40px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.sf-modal-btn:hover {
    opacity: 0.8;
}

.submit-btn.is-loading {
    color: transparent !important; /* Прячем текст "OK" */
    position: relative;
    pointer-events: none; /* Отключаем повторные клики */
    opacity: 0.8;
}

/* Сам крутящийся элемент */
.submit-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #F5F5F0; /* Цвет завихрения */
    animation: sf-spin 0.8s linear infinite;
}

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