/* VetPro - Owners Page Styles */

/* Упрощенные стили для владельцев */
.owners-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.owners-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Используем стили как на главной странице */
.owners-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #1a1a1a;
}

.owners-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.owners-form {
    background: white;
    /* Использует .rounded-lg из components.css */
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.owners-step {
    margin-bottom: 2rem;
}

.owners-step h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    /* Использует .flex-align из components.css */
    gap: 0.5rem;
}

.step-number {
    background: var(--primary-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    /* Использует .flex-center из components.css */
    font-size: 0.9rem;
    font-weight: 600;
}

.pet-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--primary-blue);
    background: #f8f9ff;
}

.radio-option input[type="radio"] {
    width: auto;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: #f8f9ff;
}

.upload-area.drag-over {
    border-color: var(--primary-blue);
    background: #f0f9ff;
}

.upload-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
}

.price-info {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: center;
    margin: 1.5rem 0;
}

.price-info p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.price-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

.submit-btn {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    display: none;
}

.image-preview {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview-info {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.quality-tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

.quality-tips-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    cursor: pointer;
    padding: 0.375rem 0;
    border-bottom: 2px dashed #bae6fd;
    transition: all 0.3s ease;
    justify-content: center;
    font-size: 0.9rem;
}

.quality-tips-header:hover {
    color: #1d4ed8;
    border-bottom-color: var(--primary-blue);
}

.quality-tips-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.quality-tips-content.expanded {
    max-height: 500px;
}

.quality-tips-header #qualityTipsChevron {
    transition: transform 0.3s ease;
}

.quality-tips-header.expanded #qualityTipsChevron {
    transform: rotate(180deg);
}

.quality-tips-header i {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
}

.quality-tips-list {
    margin: 0;
    padding-left: 1rem;
    list-style: none;
}

.quality-tips-list li {
    margin-bottom: 0.5rem;
    color: #1f2937;
    line-height: 1.4;
}

.quality-tips-list li:last-child {
    margin-bottom: 0;
}

.quality-warning {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #92400e;
}

.text-input-option {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-text-input {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-text-input:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-text-input i {
    width: 18px;
    height: 18px;
}

.text-input-area {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

.text-input-area label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.text-input-area textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
}

.text-input-area textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.text-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

/* Медиа-запросы для заголовков как на главной */
@media (max-width: 768px) {
    .owners-header {
        margin-bottom: 1rem;
    }
    
    .owners-header h1 {
        font-size: 1.75rem;
        line-height: 1.15;
    }
    
    .animated-word {
        width: auto;
    }
    
    .ai-text {
        display: block;
        margin-top: 0.25rem;
    }
    
    .owners-header p {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    .upload-area p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .owners-header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .owners-header p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .upload-area p {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .owners-header h1 {
        font-size: 1.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .owners-header p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .upload-area p {
        font-size: 0.75rem;
    }
}

/* Мобильные стили для новых элементов */
@media (max-width: 768px) {
    .owners-container {
        padding: 1rem;
    }
    
    .owners-form {
        padding: 1.5rem;
    }
    
    .image-preview img {
        max-height: 250px;
    }
    
    .image-preview-info {
        font-size: 0.85rem;
    }
    
    .pet-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .price-info {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .price-info p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .owners-container {
        padding: 0.75rem;
    }
    
    .owners-form {
        padding: 1rem;
    }
    
    .image-preview img {
        max-height: 200px;
    }
    
    .image-preview-info {
        font-size: 0.8rem;
    }
    
    .image-preview-info button {
        margin-left: 0.5rem;
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
    
    .owners-step h3 {
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .owners-container {
        padding: 0.5rem;
    }
    
    .owners-form {
        padding: 0.75rem;
    }
    
    .image-preview img {
        max-height: 180px;
    }
    
    .image-preview-info {
        font-size: 0.75rem;
    }
    
    .image-preview-info button {
        display: block;
        margin: 0.5rem auto 0 auto;
        padding: 0.25rem 0.5rem;
    }
    
    .price-info p {
        font-size: 0.8rem;
        line-height: 1.25;
    }
    
    .quality-tips {
        padding: 0.75rem;
    }
    
    .quality-tips-list {
        font-size: 0.8rem;
    }
    
    .quality-tips-header {
        font-size: 0.8rem;
        gap: 0.25rem;
        padding: 0.25rem 0;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-option {
        justify-content: center;
    }
}

/* Стили для превью текстового анализа */
.text-analysis-preview {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.text-analysis-preview h4 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1rem;
}

.text-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.text-content pre {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #495057;
}

.text-info {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

/* Стили для отображения параметров в Step 3 */
.parameters-list {
    display: grid;
    gap: 1rem;
}

.parameter-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
}

.param-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.param-value {
    font-size: 1.1rem;
    color: #1a202c;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.param-norm {
    font-size: 0.875rem;
    color: #718096;
}

.no-parameters {
    color: #e53e3e;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Служебные классы для показа/скрытия элементов */
.step {
    display: none;
}

.step.active {
    display: block;
}

.hidden {
    display: none !important;
}
