div#paiSeoMetaFormContainer{
    display: none;
}

/* Основные стили формы */
#paiSeoMetaForm {
    padding: 25px;
    max-width: 800px;
    min-width: 500px;
    background: #fff;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

/* Стили для контейнеров полей */
.seo-field-container {
    margin-bottom: 20px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.seo-field-container:hover {
    background: #f1f3f4;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Стили для лейблов */
#paiSeoMetaForm label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    text-align: left;
}

/* Стили для текстовых полей */
#paiSeoMetaForm input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}

#paiSeoMetaForm input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}

/* Стили для textarea */
#paiSeoMetaForm textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    line-height: 1.5;
}

#paiSeoMetaForm textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}

/* Стили для чекбоксов */
.seo-field-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.seo-field-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #007bff;
}

.seo-field-checkbox input[type="hidden"] {
    display: none;
}

.seo-field-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: #2c3e50;
}

/* Стили для кнопки отправки */
.seo-form-submit {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.seoSubmit {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.seoSubmit:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.seoSubmit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

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

/* Стили для заголовка popup */
#popup-window-titlebar-paiSeoMetaPopup {
    font-weight: bold;
    margin: 0 auto;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    font-size: 22px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-radius: 0;
    letter-spacing: 1px;
}

/* Стили для кнопки вызова формы */
a#paiShowMetaForm{
    position: fixed;
    z-index: 999;
}

/* Анимация для иконки */
@keyframes rotate{
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

@-moz-keyframes rotate{
    from {-moz-transform: rotate(0);}
    to {-moz-transform: rotate(360deg);}
}

@-webkit-keyframes rotate{
    from {-webkit-transform: rotate(0);}
    to {-webkit-transform: rotate(360deg);}
}

a#paiShowMetaForm img:hover {
    animation: rotate 0.5s infinite linear;
    -moz-animation: rotate 0.5s infinite linear;
    -webkit-animation: rotate 0.5s infinite linear;
}

/* Стили для сообщений результата */
#popup-window-content-paiSeoMetaPopup .resultMsg {
    display: none; /* Скрыт по умолчанию */
    font-weight: bold;
    padding: 18px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    border: none;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#popup-window-content-paiSeoMetaPopup .resultMsg.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

#popup-window-content-paiSeoMetaPopup .resultMsg.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    #paiSeoMetaForm {
        min-width: auto;
        padding: 20px;
        width: 95vw;
        max-height: 85vh;
    }

    .seo-field-container {
        padding: 15px;
        margin-bottom: 15px;
    }

    #popup-window-titlebar-paiSeoMetaPopup {
        font-size: 18px;
        padding: 15px 20px;
    }

    .seoSubmit {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
    }

    #paiSeoMetaForm input[type="text"],
    #paiSeoMetaForm textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Стили для скролла */
#paiSeoMetaForm textarea::-webkit-scrollbar {
    width: 8px;
}

#paiSeoMetaForm textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#paiSeoMetaForm textarea::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#paiSeoMetaForm textarea::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для popup контейнера */
.popup-window-content {
    max-height: 80vh !important;
    overflow: hidden !important;
}

#paiSeoMetaPopup.popup-window.popup-window-with-titlebar {
    padding: 0;
}