/* AI КП-Бриф с Пагинацией */

.kp-brief-modal {
    width: 900px;
    height: 700px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #333;
    overflow: hidden;
}

/* Заголовок модального окна */
.kp-modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.kp-modal-title {
    color: #0ff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Progress Bar */
.kp-progress-container {
    padding: 0 30px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.kp-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.kp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ff, #00f);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.kp-progress-text {
    color: #0ff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    display: block;
}

/* Страницы брифа */
.kp-pages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kp-page {
    flex: 1;
    display: none;
    padding: 30px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kp-page::-webkit-scrollbar {
    display: none;
}

.kp-page.active {
    display: flex;
    flex-direction: column;
    animation: pageSlideIn 0.4s ease-out;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Стартовая страница */
.kp-start-screen {
    text-align: center;
    justify-content: center;
}

.kp-start-title {
    color: #0ff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.kp-start-subtitle {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.kp-start-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kp-feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.kp-feature:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.kp-feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.kp-feature-title {
    color: #0ff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kp-feature-desc {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

/* Форма */
.kp-form-page {
    justify-content: flex-start;
}

.kp-form-header {
    margin-bottom: 25px;
    text-align: center;
}

.kp-form-title {
    color: #0ff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kp-form-subtitle {
    color: #999;
    font-size: 14px;
}

.kp-form-group {
    margin-bottom: 20px;
}

.kp-form-group label {
    display: block;
    color: #0ff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.kp-form-group input,
.kp-form-group select,
.kp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.kp-form-group input:focus,
.kp-form-group select:focus,
.kp-form-group textarea:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

/* Навигация */
.kp-navigation {
    padding: 20px 30px;
    border-top: 1px solid #333;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kp-nav-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #0ff, #00f);
    border: none;
    border-radius: 25px;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kp-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

.kp-nav-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.kp-nav-btn.secondary {
    background: transparent;
    border: 1px solid #0ff;
    color: #0ff;
}

.kp-nav-btn.secondary:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* Индикаторы страниц */
.kp-page-indicators {
    display: flex;
    gap: 8px;
}

.kp-page-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.kp-page-indicator.active {
    background: #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .kp-brief-modal {
        width: 95vw;
        height: 90vh;
    }
    
    .kp-page {
        padding: 20px;
    }
    
    .kp-navigation {
        padding: 15px 20px;
    }
    
    .kp-start-features {
        grid-template-columns: 1fr;
    }
}

/* Адаптивные размеры для разных экранов */
@media (min-width: 1200px) {
    .kp-brief-modal {
        width: 1000px;
        height: 750px;
    }
}

@media (max-width: 768px) {
    .kp-brief-modal {
        width: 95vw;
        height: 90vh;
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    .kp-brief-modal {
        width: 98vw;
        height: 95vh;
        max-height: 500px;
    }
}
