/* Стили для форм */

.content-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.form-label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(45, 90, 45, 0.15);
}

.form-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(45, 90, 45, 0.15);
}

.form-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(45, 90, 45, 0.15);
}

.form-file {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.form-file:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(45, 90, 45, 0.15);
}

.file-help, .help-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.error-message {
    color: var(--accent-color);
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e0e0;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Color picker */
.color-picker {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.color-input {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.color-text {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.color-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(45, 90, 45, 0.15);
}

/* Current image display */
.current-image {
    margin-bottom: 0.75rem;
}

.current-image img {
    max-width: 180px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

/* Responsive forms */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .color-picker {
        flex-direction: column;
        align-items: stretch;
    }
}
